Skip to content

fix(sidebar): sort English volume entries munerically - #319

Merged
Charliechen114514 merged 1 commit into
Awesome-Embedded-Learning-Studio:mainfrom
1608735260:main
Nov 2, 2026
Merged

Charliechen114514 merged 1 commit into
Awesome-Embedded-Learning-Studio:mainfrom
1608735260:main

Conversation

@1608735260

Copy link
Copy Markdown
Contributor

Hi, when I'm scanning the English version of the site, I notice that the sidebar's order of the volumes is not correct. The phenomenon strongly suggests that the volumes are sorted with the original name in alphabet order, which should not be the required order.
image

As volume 1 to volume 10 are in the same hierarchy level with other sections like C++ Feature Cheat Sheet which is not a normal volume, it will be troublesome to assign the sidebar_order field in each index.md to make sure all the orders in documents/en/ are fine. Thus I took a conservative change to solve the problem and already checked it. I suppose this would not be harmful in other situations.

@Charliechen114514

Copy link
Copy Markdown
Member

Hi! Thanks for the fix! I confirmed the root cause on my side: none of the top-level volume directories set sidebar_order, so the sort falls back to a plain name comparison, and "vol10-open-lecture-notes" ends up right after vol1.

I'll merge this once CI is green.

Thanks Again! XD

(sorry for my poor english lol

@Charliechen114514
Charliechen114514 merged commit a91bffa into Awesome-Embedded-Learning-Studio:main Nov 2, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants