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:
parent
38984146cc
commit
7b15ed3c4c
1
Makefile
1
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
|
||||
|
@ -1,2 +1,10 @@
|
||||
{
|
||||
"MARKDOWN_EXTENSIONS": [
|
||||
"extra", "sane_lists", "smarty", "toc", "attr_list", "tables", "pymdownx.tilde"
|
||||
],
|
||||
"MARKDOWN_EXTENSION_CONFIGS": {
|
||||
"toc": {
|
||||
"toc_depth": "2-5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
11
patches/web/001-table-of-contents.patch
Normal file
11
patches/web/001-table-of-contents.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user