for the web, add a table of contents extension

this will need to be styled better (off on the side?), especially when
there are more levels to the TOC, but I can use this to test for now

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-04-04 11:02:37 -05:00
parent 38984146cc
commit 7b15ed3c4c
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -1,2 +1,10 @@
{
"MARKDOWN_EXTENSIONS": [
"extra", "sane_lists", "smarty", "toc", "attr_list", "tables", "pymdownx.tilde"
],
"MARKDOWN_EXTENSION_CONFIGS": {
"toc": {
"toc_depth": "2-5"
}
}
}

View File

@ -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