Skip to content

Commit

Permalink
Removes our moneypatch for Vuepress, now that there is a release with v…
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Jan 20, 2021
1 parent afbf9ce commit da13c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const slugify = require('./slugify')
const preprocessMarkdown = resolve(__dirname, 'preprocessMarkdown')

const baseUrl = 'https://docs.btcpayserver.org'
const pageSuffix = '/'

module.exports = {
title: "BTCPay Server Docs",
Expand All @@ -30,8 +31,8 @@ module.exports = {
},
plugins: [
['vuepress-plugin-clean-urls', {
normalSuffix: '/',
indexSuffix: '/',
normalSuffix: pageSuffix,
indexSuffix: pageSuffix,
notFoundPath: '/404.html',
}],
['vuepress-plugin-code-copy', {
Expand All @@ -49,6 +50,7 @@ module.exports = {
extendMarkdown (md) {
md.use(implicitFigures)
},
pageSuffix,
slugify
},
themeConfig: {
Expand Down
3 changes: 0 additions & 3 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,3 @@ sed -ie 's$(docs/$(./$g' "$DOCS_DIR/Transmuter/README.md"
for file in "$DOCS_DIR"/Transmuter/*.md; do
update_external "$file" https://github.com/btcpayserver/btcTransmuter "$DOCS_DIR"/Transmuter/
done

# Monkey patch VuePress to properly handle clean URLs
sed -ie "s%, '.html%, '/%" "$BASE_DIR/node_modules/@vuepress/markdown/lib/link.js"

0 comments on commit da13c8d

Please sign in to comment.