New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parent page has_children should not require child pages parent setting #1302
Comments
Hello @ThomasNieto! I'm not sure if this is doable. Jtd organizes the page structure only based on the frontmatter in the markdown files. The arrangement "on disk" is irrelevant. Let's see if my colleagues have ideas about this. |
I think the original design of the navigation structure in JtD was that it should be specified explicitly by front matter, and independent of the file system. Personally, I've always found it tedious and error-prone to specify so much front matter. As I recently mentioned in a comment on PR #462:
When PR #1244 is finished, I'm planning to take a closer look at how JtD could support (multi-level) navigation based on directory structure. But as I also mentioned:
|
I do find it tedious and error prone as well. In my use case I'm using a tool to build the API documentation for my C# project and I have to add that front matter manually on around ~50 pages. |
here's an idea: #1409 |
Related to this, it becomes tedious to specify |
When all page titles are distinct, specifying just See the preview of the docs for PR #1431 for the details of a complete proposal. |
Is your feature request related to a problem? Please describe.
Right now, you have to set all child pages with the parent page. It would be nice if you could set the
has_children
to true and then no change to pages in the same folder automatically is a child of that page.In the example in the docs: child pages, index.md is the parent and all ui-components pages should be an automatic child of index.md instead of requiring
parent:
config.Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: