Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Updating documentation

To update the documentation site, you need to:

Browser

  1. Click the Suggest an edit pencil icon at the top right of the page.

  1. You will be redirected to the github page of the documentation site. You can edit and preview your changes here.

Note

.md in CONTRIBUTING.md stands for markdown files.

  1. Click the Commit changes... button on the top right corner to commit your changes. Make sure to
  • Write a short and descriptive Commit message
  • Check the Create a new branch for this commit and start a pull request checkbox.

  1. You will be redirected to the Comparing changes page. Click the Create pull request button to create a pull request.

  1. Click the Create pull request button to open a PR. It’s okay to leave the PR body empty for small changes.

Local development

Note

This section assumes you have some knowledge of git. You can learn it as you go.

To run the documentation site locally, install mdBook.

Setup dev server

(Cataclysm-BN) $ just docs

Open http://localhost:3000. The page reloads when you save a file.

Add a page

Add each new page to docs/en/SUMMARY.md. The sidebar shows only the pages listed there.

Automated page generation

Lua and CLI docs are generated automatically from the source code. To generate them, go to project root and run:

(Cataclysm-BN) $ deno task docs:gen

This regenerates docs/en/mod/lua/reference/lua.md and lua_annotations.lua (used for Lua IDE autocompletion).

License

  • By contributing to markdown files (including, but not limited to .md files), you agree to license your contributions under CC-BY-SA 3.0, the same license as the game.

  • By contributing to source code of documentation page (including, but not limited to .js and .toml files), you agree to license your contributions under AGPL 3.0.