Skip to content

Commit 2d990d8

Browse files
committed
Update README and CONTRIBUTING
1 parent 30639f8 commit 2d990d8

File tree

2 files changed

+27
-38
lines changed

2 files changed

+27
-38
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,14 @@ unjustifiable changes to the existing code.
3030

3131
### Building the site
3232

33-
Refer to the [README](README.md) for more information on building the site. Since `haskell.foundation` is a Hakyll-based site,
34-
it has a `watch` feature which allows for fast iteration. However, due to the limitations of the Github pages framework,
35-
the site is watched through the `docs` directory. In order to build the site *and* have those changes propagated, you *must run
36-
the `./build.sh` at the root of this project!*
37-
38-
To run the `build.sh`, simply issue the following when you are done making changes:
39-
40-
```bash
41-
./build.sh
42-
```
43-
44-
Please remember to include this with your merge requests.
33+
Refer to the [README](README.md) for more information on building the site.
4534

4635
## Code Quality
4736

4837
The `haskell.foundation` project intends to focus on integration and usability,
4938
balanced with maintainability.
39+
40+
We strive to be an example of best practices for real Haskell. If you believe
41+
there is a better way to do something in the code, please let us know or
42+
submit a PR for review. We would like the HF website to be a clear example of
43+
how to do a Hakyll website right.

README.md

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,45 @@ This repository is for the [haskell.foundation](https://haskell.foundation) webs
1010

1111
## Table Of Contents
1212

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)
1718

1819

1920
## Building
2021

21-
22-
### Nix
23-
2422
To build the project:
2523

2624
```bash
27-
nix-build
25+
stack build
2826
```
2927

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:
3129

3230
```bash
33-
./watch.sh
31+
stack exec -- site build
3432
```
3533

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.
3735

38-
```bash
39-
nix-shell
40-
```
36+
For further information, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) at the root of this project.
4137

42-
And call the website watch command directly via Cabal or Stack:
38+
## CI
4339

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.
4941

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:
5543

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.
5752

5853
## License
5954

0 commit comments

Comments
 (0)