-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Bug]: Documents in nested folders are not processed #30
Comments
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
|
How do I 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 |
Yeah, as soon as I'll get some time I'll document all missing front matter parameters available.
So in your case, 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. |
I tried doing this: main.mdtitle: MainMain Page ContentThis is the main page content. child.mdtitle: Child Page
|
I get it now. |
To clarify the process of creating a parent-child relationship in the left-side navigation panel, please follow these steps:
|
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. |
Using the title (case sensitive) works for me to have the child rendered in the navigation, but trying to render the page results in the error: Guava\FilamentKnowledgeBase\KnowledgeBase::documentable(): Argument #1 ($documentable) must be of type Guava\FilamentKnowledgeBase\Contracts\Documentable|string, null given, main.md (parent) looks like this:
test.md (child) looks like this:
Setting parent in test.md to "Überblick" will render the test.md link in the navigation, but navigating to it leads to the above mentioned error. Also I don't believe that the title attribute value (case sensitive) should be used here (?!). But using the filename does not render the page at all. |
hi @schaper1337 the parent items use Filament's Navigation Items in the background, therefore you indeed have to specify the "title" in the parent, because that's how it works in Filament also. Moreover, the 3rd level documentations follow the directory structure, so you need to create a folder I know that the documentation is quite unclear on how the 3rd level navigation works, I don't have much time to rework the readme / documentation right now. EDIT: |
Hey, thanks! The Documentation is a bit thin on how this works (no offense), but your quick reply saved the Day :) |
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
The text was updated successfully, but these errors were encountered: