comparison docs/conf.py @ 121:a3ed7d8231d7

Comment
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 06 May 2026 15:39:03 +0200
parents 9be446a43b81
children a3e765f1ad23
comparison
equal deleted inserted replaced
120:ef68b3769be5 121:a3ed7d8231d7
51 51
52 52
53 # -- Options for HTML output ------------------------------------------------- 53 # -- Options for HTML output -------------------------------------------------
54 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output 54 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
55 55
56 html_theme = 'alabaster' 56 #html_theme = 'alabaster'
57 html_theme = 'haiku' 57 html_theme = 'haiku'
58 html_static_path = ['_static'] 58 html_static_path = ['_static']
59 #pygments_style = "sphinx" 59 #pygments_style = "sphinx"
60 pygments_style = "default" 60 pygments_style = "default"
61 61
62 62
63 def setup(app): 63 def setup(app):
64 # 64 #
65 # Add a custom lexer: AlgPseudocodeLexer with custom init option "no_end" 65 # Add a custom lexer: AlgPseudocodeLexer with custom init option "no_end"
66 # Given lexer must be callable: so use an indirection with "partial" 66 # Given lexer must be callable: so use an indirection with "partial".
67 #
68 # See also:
69 # - https://stackoverflow.com/questions/11413203/sphinx-pygments-lexer-filter-extension
67 # 70 #
68 app.add_lexer("NoEndAlgPseudocode", 71 app.add_lexer("NoEndAlgPseudocode",
69 functools.partial(AlgPseudocodeLexer, no_end=True)) 72 functools.partial(AlgPseudocodeLexer, no_end=True))