Skip to content

Commit

Permalink
Change docs links to be domain-local
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 6, 2024
1 parent b0fea01 commit 2def6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion scripts/options.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ const i = output.stdout.indexOf(SEARCH);
if (i < 0) {
throw new Error("Worker heading not found!");
}
const optionsMd = output.stdout.slice(i + SEARCH.length).trim();
const optionsMd = output.stdout
.slice(i + SEARCH.length)
.trim()
.replace(/\(https:\/\/worker\.graphile\.org\//g, "(/");

// Load the config.md doc file and replace the part between the comment tags
const configMd = await fs.readFile("website/docs/config.md", "utf8");
Expand Down
5 changes: 2 additions & 3 deletions website/docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ Number of jobs to run concurrently.

Type: `string | undefined`

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

### worker.crontabFile

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

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

### worker.fileExtensions

Expand Down

0 comments on commit 2def6ce

Please sign in to comment.