diff --git a/.gitattributes b/.gitattributes index aa1e34b..a245f54 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -mkdocs_exporter/resources/**/* -diff +mkdocs_exporter/**/resources/**/* -diff diff --git a/mkdocs_exporter/page.py b/mkdocs_exporter/page.py index 3d356f0..abdaeb2 100644 --- a/mkdocs_exporter/page.py +++ b/mkdocs_exporter/page.py @@ -7,17 +7,11 @@ class Page(BasePage): """A page.""" + html: Optional[str] = None + """The page's HTML content.""" - def __init__(self, *args, **kwargs): - """The constructor.""" + formats: dict[str, dict] + """The documents that have been generated for this page (format as key, path to the file as value).""" - self.html: Optional[str] = None - """The page's HTML content.""" - - self.formats: dict[str, dict] - """The documents that have been generated for this page (format as key, path to the file as value).""" - - self.theme: Theme = None - """The theme of the page.""" - - super().__init__(*args, **kwargs) + theme: Theme = None + """The theme of the page.""" diff --git a/mkdocs_exporter/themes/factory.py b/mkdocs_exporter/themes/factory.py index 29005b5..d03f5d0 100644 --- a/mkdocs_exporter/themes/factory.py +++ b/mkdocs_exporter/themes/factory.py @@ -20,4 +20,4 @@ def create(self, theme: BaseTheme): if t.name == theme.name: return t(theme) - raise RuntimeError(f'The theme you are using ({theme.name}) is not supported yet, sorry.') + raise RuntimeError(f'The theme you are using ({theme.name}) is currently not supported by MkDocs Exporter, sorry.') diff --git a/tox.ini b/tox.ini index 7998c65..99b9c4f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [flake8] extend-ignore = E203, E111, E303 -exclude = .venv,.git,.github,__pycache__,docs,dist,mkdocs_exporter/resources,resources +exclude = .venv,.git,.github,__pycache__,docs,dist,resources max-complexity = 8 max-line-length = 180