Skip to content

Commit 2def6ce

Browse files
committed
Change docs links to be domain-local
1 parent b0fea01 commit 2def6ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/options.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const i = output.stdout.indexOf(SEARCH);
3939
if (i < 0) {
4040
throw new Error("Worker heading not found!");
4141
}
42-
const optionsMd = output.stdout.slice(i + SEARCH.length).trim();
42+
const optionsMd = output.stdout
43+
.slice(i + SEARCH.length)
44+
.trim()
45+
.replace(/\(https:\/\/worker\.graphile\.org\//g, "(/");
4346

4447
// Load the config.md doc file and replace the part between the comment tags
4548
const configMd = await fs.readFile("website/docs/config.md", "utf8");

website/docs/config.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ Number of jobs to run concurrently.
104104

105105
Type: `string | undefined`
106106

107-
Database
108-
[connection string](https://worker.graphile.org/docs/connection-string).
107+
Database [connection string](/docs/connection-string).
109108

110109
### worker.crontabFile
111110

@@ -118,7 +117,7 @@ Override path to crontab file.
118117
Type: `WorkerEvents | undefined`
119118

120119
A Node.js `EventEmitter` that exposes certain events within the runner (see
121-
[`WorkerEvents`](https://worker.graphile.org/docs/worker-events)).
120+
[`WorkerEvents`](/docs/worker-events)).
122121

123122
### worker.fileExtensions
124123

0 commit comments

Comments
 (0)