Closed niklasfink closed 1 year ago
Welcome to this project and thank you!' first issue
Hello, I believe you could do that. But this would be more a mkdocs issue wouldn't it?
@niklasfink Is it still an issue?
I don’t think this is generally solved, but I also don’t know whose responsibility it would be to implement this. I worked around it by modifying the rendering queue.
Some ideas:
mkdocs.yaml
). So when you are rendering the first page, the second and third have not been read yet.It seems to me that the question should be asked to the mkdocs team?
Hi, I wanted to use the
navigation
(orfiles
) object to get page information of sub pages.With this, I want to build a rich overview page of all sub-pages including some of their meta data. The function would be similar to the Excerpt Macro in Confluence.
Another example (to try to explain the goal of this) would be building an index of all sub-pages within a specific folder. For this, you need the Title of the page and the URL and can the build a link. However, at the moment, I don't see how this should work.
Issue
The
pages
(List[Page]) within thenavigation
object neither contain the Title of a page, nor any meta data in most cases. It seems like they only contain this information the further down in the directory tree they are.Jinja Template Example
Pictures
In the following picture, we only get the details of File0 (the current page) and the other pages don't show any detail infos, except the URL.![image](https://user-images.githubusercontent.com/1809301/226623904-1c016cfa-fff3-4128-ba4e-cd47b14fc285.png)
In the next picture, we have it working as expected. The details of all sub-pages of Folder1 are retrieved.![image](https://user-images.githubusercontent.com/1809301/226624348-7e542c79-da9f-4db0-9527-736ad7c2f11d.png)
What's the issue here or how can this be done differently? From my perspective,
navigation.pages
should have the same content, independent to where it is used in the file tree.