From 6c27c6cdb9feff6ded293b3673e8ae66155f6bed Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 18 Feb 2023 16:02:07 -0600 Subject: modify build config and add more test packages --- src/pyssg/md_parser.py | 2 ++ src/pyssg/page.py | 4 ++++ src/pyssg/py.typed | 0 3 files changed, 6 insertions(+) create mode 100644 src/pyssg/py.typed (limited to 'src') 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 -- cgit v1.2.3-70-g09d2