【发布时间】:2019-05-29 20:30:43
【问题描述】:
在我的config.js 文件中,我创建了这个侧边栏
sidebar: {
'/docs/': [
'',
'gettingStarted',
'guides',
'media'
],
'/docs/gettingStarted/': [
'creatingFirstApplication',
'installing',
'understanding'
],
'/docs/gettingStarted/creatingFirstApplication': [
'setup'
],
'/docs/gettingStarted/installing': [
'installation'
],
'/docs/gettingStarted/understanding': [
'why',
'useCases',
'coreConcepts',
'architecture',
'gettingHelp'
],
'/docs/guides/': [
'firstApplication'
],
'/docs/media/': [
'downloads',
'onlineResources'
],
'/docs/media/downloads': [
'brochure'
],
'/docs/media/onlineResources': [
'articles',
'videos'
]
}
但我在构建页面时只能看到顶级降价文件。所以在这里你可以看到我的项目结构
在构建页面时,只有 README.md、gettingStarted.md、guides.md 和 media.md 会被渲染。
我该如何解决?
如果您需要更多信息,请告诉我!
所以这是当前状态
这是一个显示我想要实现的示例
我在这里找到了更多信息
https://vuepress.vuejs.org/theme/default-theme-config.html#multiple-sidebars
我试图反转我的配置
sidebar: {
'/docs/gettingStarted/creatingFirstApplication': [
'setup'
],
'/docs/gettingStarted/installing': [
'installation'
],
'/docs/gettingStarted/understanding': [
'why',
'useCases',
'coreConcepts',
'architecture',
'gettingHelp'
],
'/docs/gettingStarted/': [
'creatingFirstApplication',
'installing',
'understanding'
],
'/docs/guides/': [
'firstApplication'
],
'/docs/media/downloads': [
'brochure'
],
'/docs/media/onlineResources': [
'articles',
'videos'
],
'/docs/media/': [
'downloads',
'onlineResources'
],
'/docs/': [
'',
'gettingStarted',
'guides',
'media'
]
}
但这没有帮助。
我创建了一个小型存储库,提供一个小型文档,每个目录有两页。
https://github.com/Garzec/VuePressTest
我希望这会有所帮助。
【问题讨论】: