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
+21-26Lines changed: 21 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,50 +10,45 @@ This repository is for the [haskell.foundation](https://haskell.foundation) webs
10
10
11
11
## Table Of Contents
12
12
13
-
-[Building](#building)
14
-
-[Nix](#nix)
15
-
-[Cabal/Stack](#cabal/stack)
16
-
-[License](#license)
13
+
-[The Haskell Foundation Website](#the-haskell-foundation-website)
14
+
-[Table Of Contents](#table-of-contents)
15
+
-[Building](#building)
16
+
-[CI](#ci)
17
+
-[License](#license)
17
18
18
19
19
20
## Building
20
21
21
-
22
-
### Nix
23
-
24
22
To build the project:
25
23
26
24
```bash
27
-
nix-build
25
+
stack build
28
26
```
29
27
30
-
To run the local development server:
28
+
Once the project has built (which can take a while due to the dependencies for Hakyll), to generate the site use:
31
29
32
30
```bash
33
-
./watch.sh
31
+
stack exec -- site build
34
32
```
35
33
36
-
Alternatively, you can drop into a nix-shell with
34
+
The site will be build in the `_site` directory, and you can open the files in your browser of choice. Due to a Hakyll issue, some sponsor logos will not show up correctly. This is expected behavior, and should be fine for the deployed site.
37
35
38
-
```bash
39
-
nix-shell
40
-
```
36
+
For further information, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) at the root of this project.
41
37
42
-
And call the website watch command directly via Cabal or Stack:
38
+
## CI
43
39
44
-
```bash
45
-
cabal run haskell-foundation -- watch
46
-
```
47
-
48
-
### Cabal/Stack
40
+
We use GitHub Actions `.github/workflows/main.yml` to build the site for production.
49
41
50
-
The site can be built locally with Cabal and Stack if the 3rd party dependencies are met, and by issuing the following in terminal:
51
-
52
-
```base
53
-
cabal run haskell-foundation -- watch
54
-
```
42
+
The general steps are:
55
43
56
-
Or the stack equivalent. For further information, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) at the root of this project.
44
+
1. Check out the `hakyll` branch
45
+
2. Install Haskell
46
+
3. Restore the cached build artefacts
47
+
4. Build the `site` executable
48
+
5. Rebuild the site contents using the `site` executable
49
+
6. Check out the main branch
50
+
7. Copy the `_site` directory over the `main` branch contents
51
+
8. Commit and push the site contents to the `main` branch.
0 commit comments