We are a small team and the site is fairly modular so we can probably just work off master to start.
-
Clone the repo
-
Run
yarn install
-
Run
yarn dev
to start the dev environment. The dev environment can be accessed athttp://localhost:8000
. -
Create a directory for your article under
/src/pages/{labs | cp4i-guides | cp4a-guides}
use the kebab-case naming convention. -
Navigate into the new directory and create the
article-name.mdx
file -
Create an 'images' directory next to the new article file that can be used to store images related to the article.
-
Add a navigation item to the navigation panel by updating the
/src/data/nav-items.yaml
file.For example to add a new navigation menu for a lab article you can append a new object to the pages array specifying a title that will appear as the buttons text and a path that points to the
article-name.mdx
file:- title: Labs pages: - title: Lab Placeholder path: /labs/placeholder/prerequisites
-
Start the dev server to see live updates for changes made to the article:
yarn dev
-
Push updates to the repo when you have finished the article.
git add -A git commit -m "Add {lab | cp4i-guide | cp4a-guide} article-name" git push
-
Ensure the site is running okay locally
-
Run
yarn deploy