mirror of
https://github.com/thelounge/thelounge
synced 2024-11-13 15:57:17 +00:00
Merge pull request #2913 from thelounge/xpaw/doc-relative-urls
Make links in generated config relative
This commit is contained in:
commit
5efde5b2aa
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ const configContent = readFileSync(
|
||||||
const docPath = join(process.argv[2], "_includes", "config.js.md");
|
const docPath = join(process.argv[2], "_includes", "config.js.md");
|
||||||
|
|
||||||
const extractedDoc = configContent
|
const extractedDoc = configContent
|
||||||
|
.replace(/https:\/\/thelounge\.chat\/docs/g, "/docs") // make links relative
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.reduce((acc, line) => {
|
.reduce((acc, line) => {
|
||||||
line = line.trim();
|
line = line.trim();
|
||||||
|
|
Loading…
Reference in a new issue