Make links in generated config relative

This commit is contained in:
Pavel Djundik 2018-11-30 12:34:18 +02:00
parent 62e24a9c2b
commit f02949ef0a

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();