diff --git a/docs/guide/advanced-concepts/boards.md b/docs/guide/advanced-concepts/boards.md index 5c98a1bf..4697b3e8 100644 --- a/docs/guide/advanced-concepts/boards.md +++ b/docs/guide/advanced-concepts/boards.md @@ -1,6 +1,6 @@ # Boards -The Board component allows you to make a pannable and zoomable "board" of components, called nodes. Instead of laying things out using the DOM, everything inside a board should be absolutely positioned. There are various utilities included in [board.tsx](/api/game/boards/board) to assist with implementing common behaviors with boards. Also, most of these code snippets are modified from [the demo project](https://code.incremental.social/profectus/Profectus-Demo/src/branch/main/src/data/layers/board.tsx), which may make a useful reference while implementing your own boards. +The Board component allows you to make a pannable and zoomable "board" of components, called nodes. Instead of laying things out using the DOM, everything inside a board should be absolutely positioned. There are various utilities included in [board.tsx](/api/game/boards/board/) to assist with implementing common behaviors with boards. Also, most of these code snippets are modified from [the demo project](https://code.incremental.social/profectus/Profectus-Demo/src/branch/main/src/data/layers/board.tsx), which may make a useful reference while implementing your own boards. To get started with a board, with a node that's just an upgrade locked to a specific location, it would look like this: diff --git a/postProcess.js b/postProcess.js index 0c9c347b..44448e9e 100644 --- a/postProcess.js +++ b/postProcess.js @@ -94,7 +94,7 @@ function sort(a, b) { const fd = fs.openSync(filePath, "w+"); fs.writeSync(fd, frontmatter); if (dir.includes("components")) { - fs.writeSync(fd, `[Profectus](../../../index.md) / ${relPath.replaceAll("\\", "/").replaceAll("/components", "")} / ${path.basename(file).replace(".md", "")}\n\n`) + fs.writeSync(fd, `[Profectus](${path.relative(dir, "./docs/api").replaceAll("\\", "/") + "/index.md"}) / ${relPath.replaceAll("\\", "/").replaceAll("/components", "")} / ${path.basename(file).replace(".md", "")}\n\n`) } fs.writeSync(fd, data); fs.closeSync(fd);