summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-02-18 16:02:07 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-02-18 16:02:07 -0600
commit6c27c6cdb9feff6ded293b3673e8ae66155f6bed (patch)
tree8d267393edd8a52a0f6ca5961ba7a1cdb381baec /src
parent48cabe1df739d1452e7ecc5164122a067157b057 (diff)
modify build config and add more test packages
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