This repository was archived by the owner on Apr 24, 2023. It is now read-only.
使用v1打包出的项目目录结构多了一层文件夹,这里可以通过配置取消吗? #47
-
|
例如,原本 md 文档的目录结构如下 在构建后生成的 html 资源的目录结构如下 但由于在嵌入md链接时,嵌入的是xxx/guide/start.md,项目编译后对应的 html 文件中生成的 a 标签链接就会为 xxx/guide/start.html,这导致了使用右键新标签页打开链接时,会使得页面 not found,(但在当前页面打开并不会,或许是因为cleanUrl机制) 想问问是否有配置项可以控制不多余生成一层目录?因为在没有使用这个主题前,使用 vuepress 生成的目录也是正常的 |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Oct 10, 2022
Replies: 1 comment 2 replies
-
|
cleanUrl 是可以配置的 https://vuepress-theme-hope.github.io/v1/config/theme/plugin.html#cleanurl normalSuffix 设置为 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cleanUrl 是可以配置的 https://vuepress-theme-hope.github.io/v1/config/theme/plugin.html#cleanurl
normalSuffix 设置为
.html就是默认行为了