The documentation site publishes to https://docs.nimbus.town. We use Docus to generate the site and deploy through Netlify.
Follow these steps to get started.
You need the following to contribute to Nimbus's documentation:
- A GitHub account. Follow GitHub's instructions to create an account if you don't have one already.
- Git installed on your machine. See the git-scm documentation for installation instructions.
- Node >20 installed on your machine.
- Use
node -v
to see which version you have installed. - Use
nvm install node
to upgrade to the latest version. - Refer to the nvm docs for information on installing
nvm
.
- Use
- pnpm installed on your machine. See the pnpm documentation for installation instructions.
- Fork the Nimbus GitHub project into your own account.
- Clone your fork to your local machine. See GitHub's instructions for more information.
- From your terminal,
cd
to the directory you cloned into (cd nimbus
by default). - Run
pnpm i --frozen-lockfile
to install the project dependencies. - Run
pnpm --filter nimbus-docs dev
to run the development server.
Once the server has started up, you can access the live preview at http://localhost:3000/. This preview reloads when you save changes to the documentation.
When you are ready to submit work back to the main Nimbus repo, create a pull request (PR).
-
If your fork has gone out of sync with the main repository, synchronize your fork with the upstream repo on GitHub. See GitHub's instructions for more information.
-
Do your work in a branch on your fork.
Run
git checkout -b branchNameToUse
in your terminal to create a working branch. ReplacebranceNameToUse
with a meaningful branch name. -
Do your work in your preferred editor.
-
Commit changes often and write meaningful commits.
-
Push the changes from your local machine to your fork on GitHub.
-
Go to your fork of the Nimbus project in your GitHub account.
-
Select the Pull Request tab.
-
Select New Pull Request.
-
Confirm the repo/branches to compare.
-
The base repo should be nimbus-town/nimbus.
-
The base branch should be main.
-
The head repository should be your fork.
-
Compare branch should be your working branch you want to submit.
If you don't see four drop-downs, be sure you are comparing across forks.
- Add a description of the changes your request makes.
- Select Add Pull Request.
Other team members will review your PR and make comments or suggestions through the PR.
You can continue making additional changes and/or apply feedback by making additional commits to the branch on your fork.
Important Always work in your own fork/branch.
Follow these guidelines when writing documentation for Nimbus.
- Docs are in the
docs/content
folder. - Write in standard markdown.
- Refer to the Docus writing pages guide.
- Docus provides additional components to extend basic markdown.
Avoid screenshots until Nimbus reaches a stable release.
Write in American English using spelling as found in Merriam-Webster. Translation and localization is handled separately as/when availability or necessity allow.
Use semantic linefeeds with no more than one sentence per line.
To create paragraphs, use a blank line.
There are no house style rules currently. When we add any, they will be found in this document.
Use the first guide that mentions a usable standard from the order below:
- Refer to the U.S. Government's Federal Plain Language Guidelines as a base standard.
- For user interface, device, and other technical guidance, refer to Google's Developer Style Guide.
- As a secondary reference to the Google guide, refer to Microsoft's Style Guide, then the Chicago Manual of Style, 17th Edition.
We use Merriam-Webster as the standard dictionary for spelling.
Place image files in the /docs/public/images
folder. You can create subfolders to organize the images.
To add an image to a doc, use standard markdown with alt text:
[![Alt text](/docs/images/image.svg)](URL.for.hyperlink)
[![StackBlitz logo](/docs/images/stackblitz.svg)](https://stackblitz.com/)