All docs content lives in the docs/content
folder as markdown files. When building these are converted into static html which is then uploaded to Firebase Hosting.
Updating Docs
- Make a branch for your changes
- Go into the
docs/content
folder and look for the markdown file associated with the doc (structure is a mirror of what is in UI) - Change markdown file(s) and save
- Run locally using
yarn start
and visitinglocalhost:8000
to confirm the looks of your changes - Make a PR to this Repo and assign it to another engineer
- When things are merged to master it will be published to the stage docs site
- After hitting “Play” in Gitlab, the changes will be deployed to the docs site
Adding A Doc
- Make a branch for your changes
- Place a new
.md
file within thecontent
folder (make sure to place it in the relevant location) -
Place config similar at the top of the document (where
slug
is the intended path to the doc):--- title: Adding To These Docs slug: docs/adding-to-these-docs type: page language: en tags: - features ---
- Reboot your local dev server if it was already running (
ctrl + c
thenyarn start
again) - Confirm that your doc appears in the sidebar (under any parent if provided in slug)
Note: If you are making a new folder, make sure to have a README.md
in the base of the folder with slug: <- folder ->
like (slug: docs
) or it will not appear in the sidebar.
Adding An Image
Place your image within the static/images
folder in the root of the repo. These are part of git tracking and they will be automatically copied so that they are available to your markdown. An image stored in static/images/MyImage.png
can be referenced like so:
![Alt Words](/images/MyImage.png)