Docs Menu Sorting Broke #762
-
Hello! I'm trying to update my website from Doks 0.1.2 to the latest (0.4.3), however I'm encountering an issue with the docs pages left navigation sidebar. It appears to have lost its sorting after the update. I copied the content and menu.toml over directly, so I expected it'd keep that, but on the new version the sorting seems somewhat random, and is different in different languages (but it's not alphabetic). E.g. from [[docs]]
name = "General"
weight = 10
identifier = "general"
url = "/docs/general/"
[[docs]]
name = "Sources"
weight = 50
identifier = "sources"
url = "/docs/sources/"
[[docs]]
name = "Controllers"
weight = 90
identifier = "controllers"
url = "/docs/controllers/"
... I couldn't find any information on a new way to do this, did something change I need to adapt to? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Basically, the order in which the doc menus appear is controlled by each content file (index.md, _index.md). How about adjusting weight of _index.md under general,sources,controllers? |
Beta Was this translation helpful? Give feedback.
Basically, the order in which the doc menus appear is controlled by each content file (index.md, _index.md).
menu.toml controls the order of the menu list at the top of the page.
How about adjusting weight of _index.md under general,sources,controllers?