From 83d175b7b069bc3bbc0d600c2fab4d082e04b521 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 8 Apr 2025 17:01:55 +0200 Subject: Python implementation with better multi-entry page support --- test/generation/config.toml | 10 +++++----- test/generation/template.html | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/generation/config.toml b/test/generation/config.toml index 1e83ebc..e21890f 100644 --- a/test/generation/config.toml +++ b/test/generation/config.toml @@ -1,14 +1,14 @@ # This is where the logbook entries are actually stored -docsRoot = "/tmp/godocs-test/content" +docs_root = "/tmp/godocs-test/content" # All pages are generated from this template -templateFile = "/tmp/godocs-test/generation/template.html" +template_file = "/tmp/godocs-test/generation/template.html" # This is the location where the final product is located (the directory specified here is deleted and re-created with the new files) -targetDir = "/tmp/godocs-test/output" +output_dir = "/tmp/godocs-test/output" # This CSS file is copied to the root of the generated site -cssFile = "/tmp/godocs-test/generation/style.css" +css_file = "/tmp/godocs-test/generation/style.css" # This is the base URL for all generated links -baseUrl = "file:///tmp/godocs-test/output" +base_url = "file:///tmp/godocs-test/output" diff --git a/test/generation/template.html b/test/generation/template.html index 1e56d6f..c211cd8 100644 --- a/test/generation/template.html +++ b/test/generation/template.html @@ -1,28 +1,28 @@ - {{.SiteTitle}} - Docs - + {{site_title}} - Docs + -
{{.SiteTitle}}
+
{{site_title}}
- {{range .Content}} + {% for entry in entries %}
- {{.}} + {% markdown %}{{ entry }}{% endmarkdown %}
- {{end}} + {% endfor %}
-- cgit v1.2.3