Closed damms005 closed 3 months ago
Knowledge base currently only allows nesting into 3 levels, due to filament sidebar navigation limitations.
If you want the third level to be displayed (in your case getting-started
), you need to:
php artisan docs:make selections.main
and write the main
page. Make sure to also set a title
in the front-matter.getting-started
doc to main
Your resulting navigation should then look like this:
How do I set the parent in the front-matter
? Also, is any of these documented anywhere?
I think there is so much that can be done with the frontmatter but that are largely undocumented, similarly to how I recently learnt about using order in frontmatter
I think a section in the readme/docs deserve to be dedicated to what can be done with frontmatter
, and from my explanation above, such section already has at least two sub headings.
How do I
set the parent in the front-matter
? Also, is any of these documented anywhere?I think there is so much that can be done with the frontmatter but that are largely undocumented, similarly to how I recently learnt about using order in frontmatter
I think a section in the readme/docs deserve to be dedicated to what can be done with
frontmatter
, and from my explanation above, such section already has at least two sub headings.
Yeah, as soon as I'll get some time I'll document all missing front matter parameters available.
parent
is the property to set the parent.
So in your case, parent: main
and in the main.md file you set the title like title: Main
for example.
There's a bug that when you don't set the title, it won't use the filename and won't render, otherwise the title property would have been optional.
Will fix it in then next release also.
@lukas-frey
I tried doing this:
This is the main page content.
This is the child page content.
I get it now.
To clarify the process of creating a parent-child relationship in the left-side navigation panel, please follow these steps:
docs:make test.main
.title: Main
.docs:make test.child1
.parent: Main
. Note that this is case-sensitive, so ensure the data matches precisely.If you could also implement the third-level relationship, that would be helpful.
Third-level documentation is supported. More is not possible due to filament's limitations.
The first level is a navigation group, second level is a navigation item and third level is a child navigation item within another navigation item. More is not supported by filament currently.
What happened?
I want markdowns in nested documents to be displayed but when I add them they are not displayed
How to reproduce the bug
php artisan docs:make selections.main.getting-started
docs
folder and confirm the files are addedPackage Version
1.6
PHP Version
8.3
Laravel Version
11.0
Which operating systems does with happen with?
macOS
Notes
No response