Skip to content

Commit 727aa66

Browse files
Merge pull request #11 from gambitproject/build-instructions
Add README
2 parents ad7ff68 + 2fddeba commit 727aa66

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Gambit Project website
2+
3+
- This repository contains the source code for the Gambit Project website, which is built using Hugo and hosted on GitHub Pages.
4+
- View the website at https://www.gambit-project.org/
5+
6+
7+
## Developers
8+
9+
To make changes to the website, open a pull request with your changes. The website is built using Hugo, so you can test your changes locally by doing the following:
10+
11+
1. [Install Hugo](https://gohugo.io/installation/) on your local machine. On macOS, do not install with Homebrew directly, the latest version of Hugo is always installed and unfortunately this is not compatible with the Scientific Python theme submodule used by the website. You can instead install GO to then get the version of Hugo you need:
12+
- `brew install go`
13+
- `echo 'export PATH=$PATH:/Users/<username>/go/bin' >> ~/.zshrc`
14+
- `go install github.com/gohugoio/hugo@v0.119.0`
15+
- `export PATH=$PATH:/Users/<username>/go/bin && hugo version`
16+
2. Clone this repository to your local machine.
17+
3. Navigate to the repository directory in your terminal.
18+
4. Run `git submodule init` then `git submodule update` to initialise and update the theme submodule.
19+
- Install the Dart Sass compiler: `npm install -g sass-embedded`, which is required by the Scientific Python Hugo theme.
20+
5. Run the command `hugo server --disableFastRender` to start the local development server.
21+
6. Open your web browser and go to `http://localhost:1313` to see your changes in action.

0 commit comments

Comments
 (0)