Skip to content

Commit

Permalink
Fixes Page class references in documentation (#3117)
Browse files Browse the repository at this point in the history
mkdocs.nav.Pages => mkdocs.structure.pages.Page
  • Loading branch information
mderu committed Apr 21, 2023
1 parent 49fbc35 commit c32ce4d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mkdocs/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,12 @@ def on_pre_page(self, page: Page, *, config: MkDocsConfig, files: Files) -> Opti
page and can be used to alter the `Page` instance.
Parameters:
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Returns:
`mkdocs.nav.Page` instance
`mkdocs.structure.pages.Page` instance
"""
return page

Expand All @@ -340,7 +340,7 @@ def on_page_read_source(self, *, page: Page, config: MkDocsConfig) -> Optional[s
the contents of a page's source from the filesystem.
Parameters:
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
Returns:
Expand All @@ -359,7 +359,7 @@ def on_page_markdown(
Parameters:
markdown: Markdown source text of page as string
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Expand All @@ -378,7 +378,7 @@ def on_page_content(
Parameters:
html: HTML rendered from Markdown source as string
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Expand All @@ -396,7 +396,7 @@ def on_page_context(
Parameters:
context: dict of template context variables
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
nav: global navigation object
Expand All @@ -414,7 +414,7 @@ def on_post_page(self, output: str, *, page: Page, config: MkDocsConfig) -> Opti
Parameters:
output: output of rendered template as string
page: `mkdocs.nav.Page` instance
page: `mkdocs.structure.pages.Page` instance
config: global configuration object
Returns:
Expand Down

0 comments on commit c32ce4d

Please sign in to comment.