Skip to content

Commit 7262643

Browse files
authored
Merge pull request #594 from ipfs/feat/md-suffix
feat: setup pageSuffix to remove .html links
2 parents 21b96d8 + 4d5749d commit 7262643

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/.vuepress/config.js

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

33
const DEPLOY_DOMAIN = 'https://docs.ipfs.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
@@ -21,8 +23,8 @@ module.exports = {
2123
md.use(require('markdown-it-footnote'))
2224
md.use(require('markdown-it-task-lists'))
2325
md.use(require('markdown-it-deflist')),
24-
md.use(require('markdown-it-imsize')),
25-
md.use(require('markdown-it-image-lazy-loading'))
26+
md.use(require('markdown-it-imsize')),
27+
md.use(require('markdown-it-image-lazy-loading'))
2628
}
2729
},
2830
themeConfig: {
@@ -422,8 +424,8 @@ module.exports = {
422424
[
423425
'vuepress-plugin-clean-urls',
424426
{
425-
normalSuffix: '/',
426-
indexSuffix: '/',
427+
normalSuffix: pageSuffix,
428+
indexSuffix: pageSuffix,
427429
notFoundPath: '/404/'
428430
}
429431
],

0 commit comments

Comments
 (0)