Vuepress: sideBar config

Created on 22 Apr 2018  路  5Comments  路  Source: vuejs/vuepress

default

if didn't set sideBar: auto with YAML,the sideBar didn't match the title of each page,only show the path for each page.

But in official demo, it didn't set sideBar: auto yet, but the sideBar worked well.

bug

Most helpful comment

thank you for help, translate is practicing for fun.tody,i do nothing, but it works well.maybe the mysterious power from the East.

All 5 comments

I found that this file is not our source code. Can you provide any source?

Besides, thanks for your translation. The official Chinese document is here: https://vuepress.vuejs.org/zh/

util.js Here, we can see the configuration in the .vuepress/config.js can also generate the sidebar.
config.js This is the config.js file in vuepress docs

reproduced this bug, sideBar: auto is not necessary, for now you just need to remove this comments.

This bug is due to your frontmatter has some duplicate space which will cause the frontmatter get unexpected parsing result:

---
[Cannot have space]---[Cannot have space]
...
[Cannot have space]---[Cannot have space]
---

thank you for help, translate is practicing for fun.tody,i do nothing, but it works well.maybe the mysterious power from the East.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chuckdries picture chuckdries  路  90Comments

samanthaming picture samanthaming  路  18Comments

reiwa picture reiwa  路  54Comments

ulivz picture ulivz  路  24Comments

robsontenorio picture robsontenorio  路  22Comments