+3
-1
scripts/build-wisp-docs.mjs
+3
-1
scripts/build-wisp-docs.mjs
···
119
119
if (!(await exists(docsIndex))) {
120
120
const readme = path.join(repoRoot, "README.md");
121
121
if (await exists(readme)) {
122
-
const md = await readFile(readme, "utf8");
122
+
let md = await readFile(readme, "utf8");
123
+
// Strip docs/ prefix from links since we're now inside the docs context.
124
+
md = md.replace(/\]\(docs\//g, "](");
123
125
await writeFile(path.join(outDocsDir, "index.md"), md, "utf8");
124
126
pages.push({
125
127
path: "index.md",