Skip to content

Commit

Permalink
chore: misc. changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrignon committed Jun 7, 2024
1 parent bdc6c75 commit d91df1d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mkdocs_exporter/resources/**/* -diff
mkdocs_exporter/**/resources/**/* -diff
18 changes: 6 additions & 12 deletions mkdocs_exporter/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
2 changes: 1 addition & 1 deletion mkdocs_exporter/themes/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d91df1d

Please sign in to comment.