mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
doc: fix pdf build
This commit is contained in:
parent
3b261e460e
commit
0db2ac53f3
@ -1,3 +1,4 @@
|
|||||||
|
\UseRawInputEncoding
|
||||||
\documentclass[a4paper,titlepage,oneside,12pt]{amsart} %amsart
|
\documentclass[a4paper,titlepage,oneside,12pt]{amsart} %amsart
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage[colorlinks=true]{hyperref}
|
\usepackage[colorlinks=true]{hyperref}
|
||||||
|
@ -65,8 +65,11 @@ def main(argv):
|
|||||||
title = list(page.keys())[0]
|
title = list(page.keys())[0]
|
||||||
md_file = list(page.values())[0]
|
md_file = list(page.values())[0]
|
||||||
with open(docs_folder +"/"+ md_file, 'r') as mdin:
|
with open(docs_folder +"/"+ md_file, 'r') as mdin:
|
||||||
aout.write("\n\n#"+ title +"\n\n")
|
|
||||||
for line in mdin:
|
for line in mdin:
|
||||||
|
if line == "#\n":
|
||||||
|
aout.write("\n\n#"+ title +"\n\n")
|
||||||
|
continue
|
||||||
# remove path from section reference
|
# remove path from section reference
|
||||||
# e.g. [the SPP Counter example](examples/generated/#sec:sppcounterExample)
|
# e.g. [the SPP Counter example](examples/generated/#sec:sppcounterExample)
|
||||||
# replace with [the SPP Counter example](#sec:sppcounterExample)
|
# replace with [the SPP Counter example](#sec:sppcounterExample)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user