Skip to content

md文件的文件名是中文,无法生成sidebar #628

Closed
@nabaonan

Description

@nabaonan

Bug report

Version

Steps to reproduce

创建一个中文markdown文件,比如"权限管理.md",然后在.vuepress/config.js中配置sidebar 代码如下

sidebar: {
     '/front/vue/': [
       ['', 'vue首页'],
       ['权限管理'],
     ],
     '/front/': [
       ['', '前端首页']
     ],
     ]
   },

然后文档路径如下

│  README.md
│
├─.vuepress
│      config.js
│      dist.zip
│
├─back
│  │  README.md
│  │
│  └─python
│          headfirst-python3-note.md
│          README.md
│
├─front
│  │  README.md
│  │
│  ├─css
│  │      README.md
│  │
│  ├─es6
│  │      README.md
│  │
│  └─vue
│      │  authority.md
│      │  README.md
│      │  vuepress.md
│      │  权限管理.md
│      │
│      └─images
│              vuepress-1.png
│
└─server
        README.md

只要是markdown文件名字是中文,就生成不出sidebar,不知道为啥,求解

What is expected?

期待无论是文档名字是中文还是英文,渲染后都应该能出现左边栏

What is actually happening?

如果文档的标题是中文的话,左边栏渲染不出

Other relevant information

  • Your OS: windows 7
  • Node.js version: 8.11
  • Browser version: chrome 65.0.3325.181
  • Is this a global or local install? local install
  • Which package manager did you use for the install?npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions