GuavaCZ/filament-knowledge-base

[Request]: Table of content ordering

Closed this issue · 6 comments

What feature would you like to add?

Just like the items can be ordered from the dropdown, allow ordering of items on the TOC using same ordering maybe?

Notes

No response

Hi @damms005 I'm not sure what you mean by that. If you're referring to the Table of Contents on the right side of each documentation page: That is sorted automatically based on the headings in the content of your markdown file.

I think he means on the left sidebar. Right now, the top level directories are sorted alphabetically. It would be nice to be able to choose the order here. I think it goes along with #21 where there may need to be a config or something to be able to control some of these things.

In the md file of the documentation, you can add order into the front matter.

EDIT: Oh, you are refererring to the navigation groups. Yeah, a config for each group could solve that (e.g. my reply in #21). You're more than welcome to make a PR, I currently am busy with other projects and another feature update coming soon. :)

This order option in the front matter that you mentioned above is not documented, do you want to do that?

I just tried it and it is exactly the feature I wanted. Maybe docment it? (the front matter order option).

Thanks! 😄

This order option in the front matter that you mentioned above is not documented, do you want to do that?

Yeah, I need to add it to the documentation. There's more things I forgot to mention probably :D