summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyssg/md_parser.py2
-rw-r--r--src/pyssg/page.py4
-rw-r--r--src/pyssg/py.typed0
3 files changed, 6 insertions, 0 deletions
diff --git a/src/pyssg/md_parser.py b/src/pyssg/md_parser.py
index 8751035..07c62f8 100644
--- a/src/pyssg/md_parser.py
+++ b/src/pyssg/md_parser.py
@@ -71,6 +71,8 @@ class MDParser:
self.db.e[f].ctimestamp,
self.db.e[f].mtimestamp,
content,
+ self.md.toc, # type: ignore
+ self.md.toc_tokens, # type: ignore
self.md.Meta, # type: ignore
self.config,
self.dir_config)
diff --git a/src/pyssg/page.py b/src/pyssg/page.py
index 85a6a47..19c92f9 100644
--- a/src/pyssg/page.py
+++ b/src/pyssg/page.py
@@ -12,6 +12,8 @@ class Page:
ctime: float,
mtime: float,
html: str,
+ toc: str,
+ toc_tokens: list[str],
meta: dict,
config: dict,
dir_config: dict) -> None:
@@ -21,6 +23,8 @@ class Page:
self.ctimestamp: float = ctime
self.mtimestamp: float = mtime
self.content: str = html
+ self.toc: str = toc
+ self.toc_tokens: list[str] = toc_tokens
self.meta: dict = meta
self.config: dict = config
self.dir_config: dict = dir_config
diff --git a/src/pyssg/py.typed b/src/pyssg/py.typed
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/pyssg/py.typed