Skip to content

Commit 37044a6

Browse files
authored
Merge pull request #634 from filecoin-project/feat/md-suffix
feat: setup pageSuffix to remove .html links
2 parents e663847 + 038f74d commit 37044a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/.vuepress/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// .vuepress/config.js
22

33
const DEPLOY_DOMAIN = 'https://docs.filecoin.io'
4+
const pageSuffix = '/'
45

56
module.exports = {
67
base: '/',
@@ -13,6 +14,7 @@ module.exports = {
1314
}
1415
},
1516
markdown: {
17+
pageSuffix,
1618
extendMarkdown: md => {
1719
md.set({
1820
breaks: true
@@ -309,8 +311,8 @@ module.exports = {
309311
[
310312
'vuepress-plugin-clean-urls',
311313
{
312-
normalSuffix: '/',
313-
indexSuffix: '/',
314+
normalSuffix: pageSuffix,
315+
indexSuffix: pageSuffix,
314316
notFoundPath: '/404/'
315317
}
316318
],

0 commit comments

Comments
 (0)