mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
Merge pull request #84 from htfab/tt10-i78
feat(docs): parse info.md as github-flavored markdown
This commit is contained in:
@@ -4,9 +4,12 @@ geometry: "left=2cm,right=2cm,top=2cm,bottom=3cm"
|
|||||||
fontsize: 14pt
|
fontsize: 14pt
|
||||||
mainfont: Latin Modern Sans
|
mainfont: Latin Modern Sans
|
||||||
header-includes:
|
header-includes:
|
||||||
- \usepackage{hyperref}
|
- |
|
||||||
- \hypersetup{colorlinks=false,
|
```{=latex}
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\hypersetup{colorlinks=false,
|
||||||
allbordercolors={0 0 0},
|
allbordercolors={0 0 0},
|
||||||
pdfborderstyle={/S/U/W 1}}
|
pdfborderstyle={/S/U/W 1}}
|
||||||
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -886,11 +886,11 @@ class Project:
|
|||||||
try:
|
try:
|
||||||
doc = chevron.render(doc_template, template_args)
|
doc = chevron.render(doc_template, template_args)
|
||||||
fh.write(doc)
|
fh.write(doc)
|
||||||
fh.write("\n\\pagebreak\n")
|
fh.write("\n```{=latex}\n\\pagebreak\n```\n")
|
||||||
except IndexError:
|
except IndexError:
|
||||||
logging.warning("missing pins in info.yaml, skipping")
|
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)
|
logging.info(pdf_cmd)
|
||||||
p = subprocess.run(pdf_cmd, shell=True)
|
p = subprocess.run(pdf_cmd, shell=True)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user