| title |
|---|
Updating documentation |
To update the documentation site, you need to:
- learn markdown in y minutes
- create a github account as the source code for docs site is hosted on github.
this is the most straightforward way to update the documentation site.
- Click the
Edit pagebutton on the bottom of the page.
- You will be redirected to the github page of the documentation site. You can edit and preview your changes here.
:::note
.mdinCONTRIBUTING.mdstands for markdown files.mdxindocs.mdxstands for MarkDown eXtended- it's a superset of markdown with javascript and jsx component support
- they are a bit more complicated but allows to use interactive components
:::
- 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 requestcheckbox.
- You will be redirected to the
Comparing changespage. Click theCreate pull requestbutton to create a pull request.
- Fill in the
Open a pull requestpage and click theCreate pull requestbutton to open a PR.
This one is a bit more involved, but similar to the previous one.
- Go to the directory you want to create a new post. Click the
Edit linkbutton then immediately navigate to directory you'd like to edit (in this case,contributing).
- Click the
Add file>Create new filebutton on the top right corner. Name your file<your-filename>.mdthen add the frontmatter like:
---
title: <your-title>
---currently only title is required.
- After editing, follow the same steps as Update existing docs to create a pull request.
:::note
This section assumes you have some knowledge of git, node and javascript. Of course, you can learn them as you go.
:::
To run the documentation site locally, you need to:
- install node for dev server
- (optional) pnpm as faster and more space efficient alternative to node's stock npm
- (optional) deno to format and generate automated documentation
(Cataclysm-BN) $ cd doc
(Cataclysm-BN/doc) $ pnpm install # 'pnpm i' for short
(Cataclysm-BN/doc) $ pnpm devOr, if you're not using pnpm:
(Cataclysm-BN) $ cd doc
(Cataclysm-BN/doc) $ npm install # 'npm i' for short
(Cataclysm-BN/doc) $ npm run devYou will be able to access the documentation site at http://localhost:4321.
The dev server will automatically reload when you make changes to the documentation.
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-
By contributing to markdown files (including, but not limited to
.mdand.mdxfiles), 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
.tsand.astrofiles), you agree to license your contributions under AGPL 3.0.






