From f02949ef0a17d4c4e81353cc9ae71b49dfdda6f3 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 30 Nov 2018 12:34:18 +0200 Subject: [PATCH] Make links in generated config relative --- scripts/generate-config-doc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/generate-config-doc.js b/scripts/generate-config-doc.js index 98b18496..5808c046 100644 --- a/scripts/generate-config-doc.js +++ b/scripts/generate-config-doc.js @@ -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();