diff --git a/Makefile b/Makefile index e6e186c..0861bfa 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ base-patches: $(MD_CSRD) find patches/base -type f -name *.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \; web: base-patches + find patches/web -type f -name *.patch -exec echo ">> {}" \; -exec patch $(CCSRD) {} \; cp -a $(WEBDIR) $(TMPDIR)/ mkdir -p $(PAGESDIR) cp $(CCSRD) $(PAGESDIR)/index.md diff --git a/incorporealcms-instance/config.json b/incorporealcms-instance/config.json index 2c63c08..23b96c6 100644 --- a/incorporealcms-instance/config.json +++ b/incorporealcms-instance/config.json @@ -1,2 +1,10 @@ { + "MARKDOWN_EXTENSIONS": [ + "extra", "sane_lists", "smarty", "toc", "attr_list", "tables", "pymdownx.tilde" + ], + "MARKDOWN_EXTENSION_CONFIGS": { + "toc": { + "toc_depth": "2-5" + } + } } diff --git a/patches/web/001-table-of-contents.patch b/patches/web/001-table-of-contents.patch new file mode 100644 index 0000000..77643a4 --- /dev/null +++ b/patches/web/001-table-of-contents.patch @@ -0,0 +1,11 @@ +--- _tmp/ccsrd.md 2025-04-04 10:29:10.675133282 -0500 ++++ _tmp/ccsrd.new.md 2025-04-04 10:55:38.788141182 -0500 +@@ -2,6 +2,8 @@ + + Compatible with the Cypher System. Based on the Cypher System Reference Document, 2024-07-02. + ++[TOC] ++ + ## How to Play the Cypher System + + The rules of the Cypher System are quite straightforward at their heart, as all of gameplay is based around a few core