Skip to content

Setting Up

If you want to contribute to the documentation on this site there is a small amount of initial setup that is required. There are three main ways you can do this, depending on your preferences:

Follow Local Setup and Full Local sections.

  • Install NodeJS on your machine and run the site directly on it
  • Need a local Git Client for pulling and pushing changes
  • You have full control!

To work with these docs locally you will need

  • A Git client such as Git (CLI) or GitHub Desktop (GUI for Windows and Mac)
  • An IDE that supports web development such as VS Code (what this guide assumes you are using)
  • Node.js (and npm) - version 22 will work, others are probably fine too
  • OR Docker if you want to use a dev container instead of a local install

If you choose to run locally, I’ll assume that you are capable of installing the above yourself by following their documentation. If you have trouble, consider using following the Code Space Setup instead.

With the above software installed, clone the repository for the docs by clicking the Code button, selecting the appropriate option.

A screenshot of the code cloning menu on github

Then open up your copy of the repo in the IDE of your choice (such as VS Code).

If you are using your local node install, first run npm install to do the initial setup. After this finishes you can run npm run dev to start up the app. Open up the link that is printed to the browser (probably http://localhost:4321/) to see the live preview of the site.

A screenshot of the npm run dev command being run

If you are using VS Code you should also install the following extensions to help with editing:

If you’d rather use a dev container, first install the Dev Containers extension in VS Code.

A screenshot of the dev containers extension

Then with the repo open, run the Dev Containers: Reopen In Container command from the command palette (which can be opened with ctrl+shift+p).

A screenshot of the Reopen In Container command in the vs code command palette

Wait a little bit and a new window will open up which is inside of the dev container. When first created this automatically runs npm install and whenever you open up the container it automatically runs npm run dev so you should immediately be ready to start editing.

You can work on these docs entirely in a browser using a GitHub code space by clicking the button below. Open in GitHub Codespaces

Assuming you haven’t already setup a code space you will be asked to create a new one. The default settings should be fine so just click Create new codespace.

A screenshot of the create codespace page on GitHub

You will be redirected to a new page that looks a lot like vscode (it is vscode). Wait about a minute and it will automatically set itself up. You should see a pop up with an Open in Browser button in the corner after a little bit. Click on that and you’ll be given a live preview of the site!

A screenshot of the initial codespace website

You can also get to this by going to the Ports tab and clicking on the Forwarded Address that shows up for port 4321. A screenshot of the initial codespace website

If you like using a codespace but want to edit in a desktop version of vscode (maybe because you keep accidentally closing the tab with ctrl+w) you can do that by clicking on the hamburger menu in the top left and selecting Open in VS Code Desktop.

A screenshot of the Open in VS Code desktop hamburger menu option

Whichever way you go you’ll get basically the same experience. Wherever the guides reference a vscode feature it will be about the same whether you’re running locally, through a code space on a browser, or through a code space on the desktop app.