aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hydrilla/proxy/self_doc.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/self_doc.py b/src/hydrilla/proxy/self_doc.py
index ccf0e12..838df57 100644
--- a/src/hydrilla/proxy/self_doc.py
+++ b/src/hydrilla/proxy/self_doc.py
@@ -6,6 +6,16 @@
import jinja2
+from pathlib import Path
+
+
+here = Path(__file__).resolve().parent
+
loader = jinja2.PackageLoader(__package__, package_path='self_doc')
-page_names = {'url_patterns', 'policy_selection'}
+suffix_len = len('.html.jinja')
+page_names = frozenset(
+ path.name[:-suffix_len]
+ for path in (here / 'self_doc').glob('*.html.jinja')
+ if path.name != 'doc_base.html.jinja'
+)