Skip to content

Commit

Permalink
Fix the version not being exposed to the module template.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Oct 26, 2023
1 parent 15b3820 commit 55d8415
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions mkdocs_inspircd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def modules(self, config, version):
self._modules[version] = []
for module_file in pathlib.Path(config["docs_dir"]).glob(version + "/modules/*.yml"):
self._modules[version].append(load_yaml(module_file))
self._modules[version][-1]['version'] = version
return self._modules[version]

def chmodes(self, config, version):
Expand Down
2 changes: 0 additions & 2 deletions mkdocs_inspircd/templates/module.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
title: "Module Details: {{ name }} (v{{ '{{ version }}' }})"
---

{% raw %}
{% if '4' == version %}
{! 4/_support.md !}
{% endif %}
{% endraw %}

## The "{{ name }}" Module (v{{ '{{ version }}' }})

Expand Down

0 comments on commit 55d8415

Please sign in to comment.