The documentation about "pages" on https://www.mkdocs.org/user-guide/custom-themes/ is wrong.
It says:
pages
A list of page objects including all pages in the project.
But in reality, pages is a list of file-objects, which also contain the page objects.
The page-object can be accessed by pages[i].page.
The documentation about "pages" on https://www.mkdocs.org/user-guide/custom-themes/ is wrong.
It says:
But in reality, pages is a list of file-objects, which also contain the page objects.
The page-object can be accessed by pages[i].page.