Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thepaperpilot committed Dec 31, 2024
1 parent bac570e commit d6844a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/advanced-concepts/boards.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
2 changes: 1 addition & 1 deletion postProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6844a8

Please sign in to comment.