Fireadmin documentation content and application (markdown converted into static HTML using Gatsby)
- Make sure you set node version to at least
8.12.0
(nvm use 8.12.0
) - Install deps:
yarn install
- Start dev server:
yarn start
# lint code
yarn lint
# auto-fix lint and format
yarn lint:fix
# generate static build
yarn build
--prefix-paths
if you are using path prefix!
All docs content lives in the content
folder.
- Go into the
content
folder and look for the markdown file associated with the doc (structure is a mirror of what is in UI) - Change markdown file 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
- 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:
- docs
---
- Reboot your local dev server if it was already running (
yarn 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.