Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/conf.py @ 171:4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Using lualatex and the IBM Plex fonts.
BUGS:
- line-breaks
- missing symbols
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 11 May 2026 14:38:59 +0200 |
| parents | f761694373e0 |
| children | 551c3421bccb |
comparison
equal
deleted
inserted
replaced
| 170:f761694373e0 | 171:4b87a9ecffdd |
|---|---|
| 20 """2.1: - :py:meth:Sphinx.add_lexer` takes a class as argument | 20 """2.1: - :py:meth:Sphinx.add_lexer` takes a class as argument |
| 21 | 21 |
| 22 """ | 22 """ |
| 23 | 23 |
| 24 today = datetime.date.today().isoformat() | 24 today = datetime.date.today().isoformat() |
| 25 | |
| 26 master_doc = "index" | |
| 25 | 27 |
| 26 # -- Project information ----------------------------------------------------- | 28 # -- Project information ----------------------------------------------------- |
| 27 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | 29 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 28 | 30 |
| 29 project = 'Pygments Pseudocode Lexer' | 31 project = 'Pygments Pseudocode Lexer' |
| 124 html_short_title = html_title | 126 html_short_title = html_title |
| 125 html_last_updated_fmt = "%s (rv:%s)" % (today, release_rev) | 127 html_last_updated_fmt = "%s (rv:%s)" % (today, release_rev) |
| 126 #pygments_style = "sphinx" | 128 #pygments_style = "sphinx" |
| 127 pygments_style = "default" | 129 pygments_style = "default" |
| 128 | 130 |
| 131 # --- Options for LaTeX output ----------------------------------------------- | |
| 132 # https://www.sphinx-doc.org/en/master/latex.html | |
| 133 latex_engine = 'lualatex' | |
| 134 latex_elements = { | |
| 135 "papersize": "a4paper", | |
| 136 "babel": r"\usepackage{babel}", | |
| 137 "fontpkg": r"\usepackage{plex-otf}", | |
| 138 "releasename": "Version", | |
| 139 } | |
| 140 latex_theme = "manual" | |
| 141 latex_show_urls = "footnote" | |
| 142 latex_show_pagerefs = True | |
| 143 latex_domain_indices = False | |
| 144 latex_documents = [ | |
| 145 ("index-latex", "PygmentsPseudocodeLexer.tex", "The Pygments Pseudocode Lexer", "Franz Glasner", "manual", True), | |
| 146 ] | |
| 147 | |
| 129 | 148 |
| 130 def setup(app): | 149 def setup(app): |
| 131 # | 150 # |
| 132 # Custom release_date and commit id variables with a custom substitution | 151 # Custom release_date and commit id variables with a custom substitution |
| 133 # |release_date| and |release_rev|'. | 152 # |release_date| and |release_rev|'. |
