aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-07-01 18:33:24 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-07-01 18:33:24 +0200
commit3186e8a583896596ffacaf8d7cc6cd541a4ca69d (patch)
treee3f27e9f043688b666355d5e1e9db86c3220d1f8
parentDon't render non-markdown files. (diff)
downloadmuppet-strings-3186e8a583896596ffacaf8d7cc6cd541a4ca69d.tar.gz
muppet-strings-3186e8a583896596ffacaf8d7cc6cd541a4ca69d.tar.xz
Breadcrumb on module index.
-rw-r--r--muppet/output.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/muppet/output.py b/muppet/output.py
index 9f7f54f..20ffd43 100644
--- a/muppet/output.py
+++ b/muppet/output.py
@@ -249,8 +249,14 @@ def setup_module_index(*,
'list': [],
})
+ crumbs = breadcrumbs(
+ ('Environment', ''),
+ module.name,
+ )
+
with open(os.path.join(base, 'index.html'), 'w') as f:
f.write(template.render(module_name=module.name,
+ breadcrumbs=crumbs,
content=content,
path_base=path_base,
doc_files=doc_files.items()))