Skip to content

Commit a03ae05

Browse files
authored
Merge pull request #298 from clue-labs/mkdocs-instructions
Improve mkdocs instructions to build docs with correct directory permissions and allow using SIGINT to stop
2 parents d7ae1d9 + 0868eca commit a03ae05

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,6 @@ jobs:
231231
runs-on: ubuntu-24.04
232232
steps:
233233
- uses: actions/checkout@v6
234-
- run: docker compose -f docs/compose.yaml run build
234+
- run: docker compose -f docs/compose.yaml pull
235+
- run: mkdir -p build/ && docker compose -f docs/compose.yaml run --rm -u $(id -u):$(id -g) build
235236
- run: ls -la build/docs/

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you want to generate a static HTML folder for deployment, you can again
2929
use a Docker container in the project root directory like this:
3030

3131
```bash
32-
docker compose -f docs/compose.yaml run -u $(id -u) build
32+
mkdir -p build/ && docker compose -f docs/compose.yaml run --rm -u $(id -u):$(id -g) build
3333
```
3434

3535
The resulting `build/docs/` should then be deployed behind a web server.

docs/compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
volumes:
99
- ./mkdocs.yml:/project/mkdocs.yml:ro
1010
- ./:/project/docs/:ro
11+
stop_signal: SIGINT
1112

1213
build:
1314
extends: mkdocs

0 commit comments

Comments
 (0)