Skip to content

Commit

Permalink
Merge pull request #84 from htfab/tt10-i78
Browse files Browse the repository at this point in the history
feat(docs): parse info.md as github-flavored markdown
  • Loading branch information
htfab authored Dec 12, 2024
2 parents 69b12dd + 525e0a5 commit b242943
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docs/project_header.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ geometry: "left=2cm,right=2cm,top=2cm,bottom=3cm"
fontsize: 14pt
mainfont: Latin Modern Sans
header-includes:
- \usepackage{hyperref}
- \hypersetup{colorlinks=false,
- |
```{=latex}
\usepackage{hyperref}
\hypersetup{colorlinks=false,
allbordercolors={0 0 0},
pdfborderstyle={/S/U/W 1}}
```
---

4 changes: 2 additions & 2 deletions project.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@ def create_pdf(self):
try:
doc = chevron.render(doc_template, template_args)
fh.write(doc)
fh.write("\n\\pagebreak\n")
fh.write("\n```{=latex}\n\\pagebreak\n```\n")
except IndexError:
logging.warning("missing pins in info.yaml, skipping")

pdf_cmd = "pandoc --pdf-engine=xelatex --resource-path=docs -i datasheet.md -o datasheet.pdf"
pdf_cmd = "pandoc --pdf-engine=xelatex --resource-path=docs -i datasheet.md -o datasheet.pdf --from gfm+raw_attribute+smart"
logging.info(pdf_cmd)
p = subprocess.run(pdf_cmd, shell=True)
if p.returncode != 0:
Expand Down

0 comments on commit b242943

Please sign in to comment.