You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-15Lines changed: 34 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,31 +9,50 @@ The website is hosted on GitHub pages. See `./.github/workflows/static.yml` for
9
9
10
10
## How to update this website
11
11
12
-
You'll want to run the site locally so you can preview your changes. It's fairly simple to setup if you have any programming experience.
12
+
Any updates require a pull request.
13
13
14
-
Make your changes and confirm them in your locally running site. Commit change to a feature Branch, and create a pull request in GitHub.
14
+
Run the site locally so you can preview your changes, then commit changes to a feature branch, and create a pull request in GitHub.
15
15
16
-
The changes will then need to be reviewed and merged. After merging, a GitHub Action (`./.github/workflows/static.yml`) will kick off to build and deploy the site. This should only take 5 mins, after which your changes will be live!
16
+
The changes will then need to be reviewed and merged.
17
+
18
+
After merging, a GitHub Action (`./.github/workflows/static.yml`) will kick off to build and deploy the site. This should only take 5 mins, after which your changes will be live!
17
19
18
20
19
21
### Local setup
20
22
21
-
**Install NodeJS** - two options:
23
+
There are 2 options with different dependencies and setup. Read through both and choose which will work best for you (or just use the first one).
24
+
25
+
Either option will start the NodeJs webserver at `http://localhost:5173`.
26
+
27
+
**First: clone this repo**
28
+
29
+
#### 1 - No Container
30
+
31
+
Good if you already use NodeJs, or are not using VS Code.
22
32
23
-
1. Download and install NodeJS https://nodejs.org/en/download
24
-
See `./.nvmrc` for the version of NodeJS to install
25
-
1. Use NVM https://github.com/nvm-sh/nvm
33
+
1. Install NodeJs
34
+
- See `./nvmrc` for the correct version.
35
+
- Download and install from https://nodejs.org/en/download
36
+
- Or, use a Node version manager (nvm, pnpm etc)
37
+
2. Install dependencies
38
+
-`npm ci`
39
+
3. Run web site
40
+
-`npm run dev`
26
41
27
-
**Setup**
42
+
#### 2 - Dev Container
28
43
29
-
1. Clone the repo
30
-
1. Using NVM?
31
-
1.`nvm install` to install the correct NodeJS version
32
-
1.`nvm use` to use the installed NodeJS version
33
-
1. Install dependencies with `npm install`
34
-
1. Start a development server `npm run dev`
44
+
Good if you don't like using command line, or you like the stability of a container.
0 commit comments