Skip to content
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

[Request]: Side Bar Guide #42

Closed
markwillow opened this issue Aug 3, 2024 · 7 comments
Closed

[Request]: Side Bar Guide #42

markwillow opened this issue Aug 3, 2024 · 7 comments

Comments

@markwillow
Copy link

What feature would you like to add?

Hi Developers. I tried looking for the left side bar guide however, I can't find it anywhere.

Notes

No response

@lukas-frey
Copy link
Contributor

Hi, I'm not sure what you mean.

The left sidebar (panel navigation) is created automatically from all your docs. The right sidebar is the table of contents, which is created also automatically based on the headings from your markdown file.

@markwillow
Copy link
Author

markwillow commented Aug 3, 2024

Hi @lukas-frey .

I am referring to this:
The child.

image

@lukas-frey
Copy link
Contributor

Ah, I see. I've described it in the issue here #30 (comment)

I need to add some more info in the docs about the front matter.

@lukas-frey
Copy link
Contributor

I've added some info to the readme about the different front matter options.

@markwillow
Copy link
Author

To clarify the process of creating a parent-child relationship in the left-side navigation panel, please follow these steps:

  1. Create a parent document: Execute the command docs:make test.main.
  2. Update your data: Ensure to set the title, for instance, title: Main.
  3. Create a child document: Execute the command docs:make test.child1.
  4. Update your data: Add a title and specify the parent. For example, parent: Main. Note that this is case-sensitive, so ensure the data matches precisely.

@CharlieEtienne
Copy link

Hi,

When I follow the steps given by @markwillow , I get an error:

Guava\FilamentKnowledgeBase\KnowledgeBase::documentable(): Argument #1 ($documentable) must be of type
Guava\FilamentKnowledgeBase\Contracts\Documentable|string, null given, called in /Users/charlie/Herd/test-
filament/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 358

My files:

/docs/fr/test/main.md
/docs/fr/test/child1.md

/docs/fr/test/main.md

---
title: Main
---

# Main

Lorem ipsum dolor sit amet

/docs/fr/test/child1.md

---
title: Child 1
parent: Main
---

# Child 1

Lorem ipsum dolor sit amet

@cosmoflipz
Copy link

try to disable breadcrumb on your panel

->disableBreadcrumbs()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants