Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #77 from samdoshi/pdf-fixes
- Loading branch information
|
|
@@ -81,8 +81,8 @@ def common_md(): |
|
|
print(f"Using ops docs directory: {OP_DOCS_DIR}") |
|
|
print() |
|
|
|
|
|
op_table_template = env.get_template("op_table.jinga2.md") |
|
|
op_extended_template = env.get_template("op_extended.jinga2.md") |
|
|
op_table_template = env.get_template("op_table.jinja2.md") |
|
|
op_extended_template = env.get_template("op_extended.jinja2.md") |
|
|
|
|
|
output = "" |
|
|
output += Path(DOCS_DIR / "whats_new.md").read_text() + "\n\n" |
|
|
@@ -172,8 +172,8 @@ def main(): |
|
|
"--toc-depth=2", |
|
|
"--css=" + str(TEMPLATE_DIR / "docs.css")]) |
|
|
elif ext == ".pdf" or ext == ".tex": |
|
|
latex_preamble = env.get_template("latex_preamble.jinga2.md") |
|
|
latex = latex_preamble.render(fonts_dir=FONTS_DIR) |
|
|
latex_preamble = env.get_template("latex_preamble.jinja2.md") |
|
|
latex = latex_preamble.render(fonts_dir=FONTS_DIR) + "\n\n" |
|
|
latex += output |
|
|
pypandoc.convert_text( |
|
|
latex, |
|
|
|
Oops, something went wrong.
|
|
@@ -1,19 +1,19 @@ |
|
|
--- |
|
|
title: Teletype Documenation |
|
|
title: Teletype Documentation |
|
|
documentclass: report |
|
|
geometry: margin=1in |
|
|
links-as-notes: true |
|
|
subparagraph: true |
|
|
fontsize: 12pt |
|
|
mainfont: Roboto-Regular.ttf |
|
|
mainfontoptions: |
|
|
- Path={{fonts_dir}}roboto-hinted/ |
|
|
- Path={{fonts_dir}}/roboto-hinted/ |
|
|
- BoldFont=Roboto-Bold.ttf |
|
|
- ItalicFont=Roboto-Italic.ttf |
|
|
- BoldItalicFont=Roboto-BoldItalic.ttf |
|
|
monofont: RobotoMono-Regular.ttf |
|
|
monofontoptions: |
|
|
- Path={{fonts_dir}}roboto-mono/ |
|
|
- Path={{fonts_dir}}/roboto-mono/ |
|
|
- BoldFont=RobotoMono-Bold.ttf |
|
|
- ItalicFont=RobotoMono-Italic.ttf |
|
|
- BoldItalicFont=RobotoMono-BoldItalic.ttf |
|
|
@@ -24,5 +24,3 @@ header-includes: |
|
|
- \AtBeginEnvironment{longtable}{\small}{}{} |
|
|
- \renewcommand\arraystretch{1.3} |
|
|
--- |
|
|
|
|
|
|
File renamed without changes.
File renamed without changes.