summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-02-19 19:19:13 +0100
committerpennae <github@quasiparticle.net>2023-02-21 18:26:41 +0100
commit7a74ce51a1643aa6e83c912203bb6c3a987376b9 (patch)
tree402e036249588bd9c12ecfc04673f887d26af95c /pkgs/development/python-modules/rangehttpserver
parent23dc31a9755cf34a2040fe574798c09d1c857df0 (diff)
nixos-render-docs: add toc generator
the docbook toolchain uses docbook-xsl to generate its TOC, our html renderer will have to do this on its own. this generator uses a very straight-forward algorithm of only inspecting headings, but anything else could be inspected as well. (examples come to mind, but those do not have titles and would thus make for bad toc entries) we also use path information (that will be taken from include block args in the html renderer) to produce navigation information. the algorithm we use mirrors what docbook does, linking to the next/previous files in depth-first toc order. toc entries are linked to the tokens they refer to for easy use later.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions