Skip to content

Commit 7f301d7

Browse files
committed
Remove Vuepress moneypatch
Removes our moneypatch for Vuepress now that there is a release with vuejs/vuepress#2674 merged.
1 parent afbf9ce commit 7f301d7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: docs/.vuepress/config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const slugify = require('./slugify')
44
const preprocessMarkdown = resolve(__dirname, 'preprocessMarkdown')
55

66
const baseUrl = 'https://docs.btcpayserver.org'
7+
const pageSuffix = '/'
78

89
module.exports = {
910
title: "BTCPay Server Docs",
@@ -30,8 +31,8 @@ module.exports = {
3031
},
3132
plugins: [
3233
['vuepress-plugin-clean-urls', {
33-
normalSuffix: '/',
34-
indexSuffix: '/',
34+
normalSuffix: pageSuffix,
35+
indexSuffix: pageSuffix,
3536
notFoundPath: '/404.html',
3637
}],
3738
['vuepress-plugin-code-copy', {
@@ -49,6 +50,7 @@ module.exports = {
4950
extendMarkdown (md) {
5051
md.use(implicitFigures)
5152
},
53+
pageSuffix,
5254
slugify
5355
},
5456
themeConfig: {

Diff for: setup-deps.sh

-3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,3 @@ sed -ie 's$(docs/$(./$g' "$DOCS_DIR/Transmuter/README.md"
104104
for file in "$DOCS_DIR"/Transmuter/*.md; do
105105
update_external "$file" https://github.com/btcpayserver/btcTransmuter "$DOCS_DIR"/Transmuter/
106106
done
107-
108-
# Monkey patch VuePress to properly handle clean URLs
109-
sed -ie "s%, '.html%, '/%" "$BASE_DIR/node_modules/@vuepress/markdown/lib/link.js"

0 commit comments

Comments
 (0)