From 61b3b7668cef6d5cc880317d7c32cee88229e431 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 10 Jan 2022 01:52:48 +0700 Subject: Rename the config to the new soupault.toml style --- soupault.conf | 98 ----------------------------------------------------------- soupault.toml | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 98 deletions(-) delete mode 100644 soupault.conf create mode 100644 soupault.toml diff --git a/soupault.conf b/soupault.conf deleted file mode 100644 index c17e5ca..0000000 --- a/soupault.conf +++ /dev/null @@ -1,98 +0,0 @@ -# Configuration file for the soupault static site generator (https://soupault.app) - -[settings] - # Enable build progress (info level) logs - verbose = true - - # Enable debug level logs - debug = true - - # Fail on page processing errors - strict = true - - default_template_file = "templates/main.html" - - # CSS selector of the element inside the template - # where page content is inserted - default_content_selector = "div#content" - -[preprocessors] - # Preprocess *.md Markdown pages with cmark (github.com/commonmark/cmark) before parsing. - # --smart = smart punctuation, --unsafe = don't remove HTML tags - md = "cmark --smart --unsafe" - -[widgets] - -# Moves all elements with class="footnote" or tag name to
-# and replaces them with numbered links. -[widgets.footnotes] - widget = "footnotes" - selector = "div#footnotes" - footnote_selector = [".footnote", "fn"] - footnote_link_class = "footnote" - back_links = true - link_id_prepend = "footnote-" - back_link_id_append = "-ref" - -# Inserts the banner in main page only -[widgets.insert-banner] - widget = "include" - page = "index.html" - file = "templates/banner.html" - selector = "main" - action = "insert_before" - -# Inserts a scary warning banner in preview versions -[widgets.insert-staging-warning] - widget = "include" - file = "templates/staging-warning.html" - selector = "header" - action = "prepend_child" - profile = "staging" - -[widgets.disallow-indexing-on-staging] - widget = "create-file" - name = "robots.txt" - content = """ -User-agent: * -Disallow: / -""" - profile = "staging" - -# Generates a list of available snapshots from S3 -[widgets.list-snapshots] - widget = "exec" - command = "scripts/list-snapshots.py" - selector = "div#content" - action = "append_child" - - page = "get/snapshots.md" - profile = "live" - -## Nightly build image listing generator ## - -# Inserts containers for current and equuleus lists -# This is done here rather than inside the page so that -# we can change the branches by editing just the config. -[widgets.insert-nightly-build-containers] - widget = "insert_html" - html = """ -
-

Current/sagitta (future 1.4.0)

-
- """ - selector = "div#content" - action = "append_child" - page = "get/nightly-builds.md" - profile = "live" - -# Generates a list of the "current" branch builds from S3 -[widgets.list-nightly-builds-current] - widget = "exec" - command = "scripts/list-nightly-builds.py rolling/current" - selector = "div#rolling-current" - action = "append_child" - - page = "get/nightly-builds.md" - after = "insert-nightly-build-containers" - diff --git a/soupault.toml b/soupault.toml new file mode 100644 index 0000000..c17e5ca --- /dev/null +++ b/soupault.toml @@ -0,0 +1,98 @@ +# Configuration file for the soupault static site generator (https://soupault.app) + +[settings] + # Enable build progress (info level) logs + verbose = true + + # Enable debug level logs + debug = true + + # Fail on page processing errors + strict = true + + default_template_file = "templates/main.html" + + # CSS selector of the element inside the template + # where page content is inserted + default_content_selector = "div#content" + +[preprocessors] + # Preprocess *.md Markdown pages with cmark (github.com/commonmark/cmark) before parsing. + # --smart = smart punctuation, --unsafe = don't remove HTML tags + md = "cmark --smart --unsafe" + +[widgets] + +# Moves all elements with class="footnote" or tag name to
+# and replaces them with numbered links. +[widgets.footnotes] + widget = "footnotes" + selector = "div#footnotes" + footnote_selector = [".footnote", "fn"] + footnote_link_class = "footnote" + back_links = true + link_id_prepend = "footnote-" + back_link_id_append = "-ref" + +# Inserts the banner in main page only +[widgets.insert-banner] + widget = "include" + page = "index.html" + file = "templates/banner.html" + selector = "main" + action = "insert_before" + +# Inserts a scary warning banner in preview versions +[widgets.insert-staging-warning] + widget = "include" + file = "templates/staging-warning.html" + selector = "header" + action = "prepend_child" + profile = "staging" + +[widgets.disallow-indexing-on-staging] + widget = "create-file" + name = "robots.txt" + content = """ +User-agent: * +Disallow: / +""" + profile = "staging" + +# Generates a list of available snapshots from S3 +[widgets.list-snapshots] + widget = "exec" + command = "scripts/list-snapshots.py" + selector = "div#content" + action = "append_child" + + page = "get/snapshots.md" + profile = "live" + +## Nightly build image listing generator ## + +# Inserts containers for current and equuleus lists +# This is done here rather than inside the page so that +# we can change the branches by editing just the config. +[widgets.insert-nightly-build-containers] + widget = "insert_html" + html = """ +
+

Current/sagitta (future 1.4.0)

+
+ """ + selector = "div#content" + action = "append_child" + page = "get/nightly-builds.md" + profile = "live" + +# Generates a list of the "current" branch builds from S3 +[widgets.list-nightly-builds-current] + widget = "exec" + command = "scripts/list-nightly-builds.py rolling/current" + selector = "div#rolling-current" + action = "append_child" + + page = "get/nightly-builds.md" + after = "insert-nightly-build-containers" + -- cgit v1.2.3