aboutsummaryrefslogtreecommitdiff
path: root/muppet/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'muppet/output.py')
-rw-r--r--muppet/output.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/muppet/output.py b/muppet/output.py
index 0aae7ed..676bbb4 100644
--- a/muppet/output.py
+++ b/muppet/output.py
@@ -29,6 +29,7 @@ from collections.abc import (
)
from .util import group_by
from .puppet.strings import isprivate
+from .breadcrumbs import breadcrumbs
# TODO replace 'output' with base, or put this somewhere else
@@ -301,8 +302,15 @@ def setup_module(base: str, module: ModuleEntry, *, path_base: str) -> None:
with open(os.path.join(dir, 'index.html'), 'w') as f:
template = jinja.get_template('code_page.html')
+ crumbs = breadcrumbs(
+ ('Environment', ''),
+ module.name,
+ (puppet_class['name'],
+ 'manifests/' + '/'.join(puppet_class['name'].split('::')[1:])),
+ )
f.write(template.render(content=format_class(puppet_class),
- path_base=path_base))
+ path_base=path_base,
+ breadcrumbs=crumbs))
# puppet_class['file']
# puppet_class['line']