Merge pull request #2913 from thelounge/xpaw/doc-relative-urls

Make links in generated config relative
This commit is contained in:
Pavel Djundik 2018-11-30 12:57:21 +02:00 committed by GitHub
commit 5efde5b2aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ const configContent = readFileSync(
const docPath = join(process.argv[2], "_includes", "config.js.md");
const extractedDoc = configContent
.replace(/https:\/\/thelounge\.chat\/docs/g, "/docs") // make links relative
.split("\n")
.reduce((acc, line) => {
line = line.trim();