doc: fix pdf build

This commit is contained in:
Milanka Ringwald 2021-05-21 18:27:21 +02:00
parent 3b261e460e
commit 0db2ac53f3
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,4 @@
\UseRawInputEncoding
\documentclass[a4paper,titlepage,oneside,12pt]{amsart} %amsart
\usepackage{graphicx}
\usepackage[colorlinks=true]{hyperref}

View File

@ -1,4 +1,4 @@
#
#
## General Tools

View File

@ -65,8 +65,11 @@ def main(argv):
title = list(page.keys())[0]
md_file = list(page.values())[0]
with open(docs_folder +"/"+ md_file, 'r') as mdin:
aout.write("\n\n#"+ title +"\n\n")
for line in mdin:
if line == "#\n":
aout.write("\n\n#"+ title +"\n\n")
continue
# remove path from section reference
# e.g. [the SPP Counter example](examples/generated/#sec:sppcounterExample)
# replace with [the SPP Counter example](#sec:sppcounterExample)