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

Order doesn't seem to be working at the root level with files and directories mix #36

Closed
imolorhe opened this issue May 23, 2021 · 4 comments

Comments

@imolorhe
Copy link

I am using this plugin in a vuepress docs site with several directories and files at the root of the docs. I added order in the frontmatter of the files and to the README.md files in the directories, but the sidebar order is still being done alphabetically.

@ozum
Copy link
Owner

ozum commented May 23, 2021

I couldn't find any info about order keyword in vuepress default theme. It seems that it is a custom behaviour described here: https://vuepress.vuejs.org/theme/writing-a-theme.html#site-and-page-metadata

I may be wrong. Could you please link docs where order for default theme is described?

@imolorhe
Copy link
Author

No I meant order as it is used in vuepress-bar (from the frontmatter) https://github.com/ozum/vuepress-bar/blob/master/lib/index.js#L87. It only seems to work for nested files. It doesn't work for nested directories though (i.e. setting the order in the README.md of the directories doesn't change the order of the directory sidebar link)

@ozum
Copy link
Owner

ozum commented May 23, 2021

Ok, I see. To understand what's wrong, could you please create a simple repo showing the problem and what's the expected behavior. So, I can check and correct the problem if possible.

@ozum
Copy link
Owner

ozum commented Aug 28, 2021

I will close the issue because a long time has passed since the last activity.

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

2 participants