# HG changeset patch # User Franz Glasner # Date 1779209424 -7200 # Node ID e5ea2f9559863976ed74394404bb8255c4941c1e # Parent 3dce08f06eccf701c191091bfe3fd9bd3901bc1a Optimize documentation layout: use a local ToC where appropriate (lexers, filters) diff -r 3dce08f06ecc -r e5ea2f955986 docs/conf.py --- a/docs/conf.py Tue May 19 18:37:32 2026 +0200 +++ b/docs/conf.py Tue May 19 18:50:24 2026 +0200 @@ -126,7 +126,7 @@ html_static_path = ['_static'] html_extra_path = ['../LICENSES'] html_copy_source = True -html_show_sourcelink = False +html_show_sourcelink = False # place a manual link on some selected pages only #html_sidebars = { # '**': [ # 'localtoc.html', # a fine-grained table of contents of the diff -r 3dce08f06ecc -r e5ea2f955986 docs/filters.rst --- a/docs/filters.rst Tue May 19 18:37:32 2026 +0200 +++ b/docs/filters.rst Tue May 19 18:50:24 2026 +0200 @@ -4,6 +4,10 @@ Filters ********* +.. only:: html + + .. contents:: + The package contains the following filters: .. raw:: latex diff -r 3dce08f06ecc -r e5ea2f955986 docs/index.rst --- a/docs/index.rst Tue May 19 18:37:32 2026 +0200 +++ b/docs/index.rst Tue May 19 18:50:24 2026 +0200 @@ -6,7 +6,7 @@ .. toctree:: :maxdepth: 2 - :caption: Contents: + :caption: Site Contents: lexers filters diff -r 3dce08f06ecc -r e5ea2f955986 docs/lexer-algpseudocode.rst --- a/docs/lexer-algpseudocode.rst Tue May 19 18:37:32 2026 +0200 +++ b/docs/lexer-algpseudocode.rst Tue May 19 18:50:24 2026 +0200 @@ -7,6 +7,10 @@ .. only:: html + .. contents:: + +.. only:: html + .. hint:: The reST source of this documentation page can be found `here <_sources/lexer-algpseudocode.rst.txt>`_. diff -r 3dce08f06ecc -r e5ea2f955986 docs/lexers.rst --- a/docs/lexers.rst Tue May 19 18:37:32 2026 +0200 +++ b/docs/lexers.rst Tue May 19 18:50:24 2026 +0200 @@ -5,6 +5,7 @@ ******** .. toctree:: + :maxdepth: 1 lexer-algpseudocode lexer-frpseudocode