Add new idea for docs
This commit is contained in:
parent
81c3966627
commit
5b63d93df3
2 changed files with 13 additions and 0 deletions
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docs.pdf
|
12
docs/build.py
Normal file
12
docs/build.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import glob
|
||||||
|
import os
|
||||||
|
|
||||||
|
# https://tex.stackexchange.com/questions/101717/converting-markdown-to-latex-in-latex/246871#246871
|
||||||
|
|
||||||
|
outfilename = '/tmp/out.md'
|
||||||
|
with open(outfilename, 'w') as outfile:
|
||||||
|
for filepath in glob.iglob('../src/modules/*/doc/index.md'):
|
||||||
|
with open(filepath) as infile:
|
||||||
|
outfile.write(infile.read())
|
||||||
|
outfile.write("\n\\newpage{}\n")
|
||||||
|
os.system(f"pandoc --from=markdown --output=docs.pdf {outfilename} --highlight-style=espresso")
|
Loading…
Reference in a new issue