Skip to content

Commit e25ecf8

Browse files
authored
ci: fix docs jobs (#976)
* ci: fix docs jobs Signed-off-by: Carlos Alexandro Becker <[email protected]> * ci: fix path Signed-off-by: Carlos Alexandro Becker <[email protected]> --------- Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent fba243d commit e25ecf8

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23-
- uses: cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce # v31.6.2
23+
- uses: go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0
2424
with:
25-
nix_path: nixpkgs=channel:nixos-unstable
26-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
27-
- run: nix develop .#docs --command ci-docs
25+
version: 3.x
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
- run: task docs:build
28+
- name: Test HTML
29+
uses: wjdp/htmltest-action@master
30+
with:
31+
config: www/htmltest.yml
32+
path: www/site

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ tasks:
151151
desc: Start documentation server
152152
cmds:
153153
- task: docs:generate
154-
- "mkdocs serve -f www/mkdocs.yml -a 0.0.0.0:8000"
154+
- "docker run --rm -p 8000:8000 -v ./www:/docs squidfunk/mkdocs-material:9"
155155

156156
docs:build:
157157
desc: Build docs
158158
cmds:
159159
- task: docs:generate
160-
- "mkdocs build -f www/mkdocs.yml"
160+
- "docker run --rm -v ./www:/docs squidfunk/mkdocs-material:9 build"
161161

162162
docs:test:
163163
desc: Test docs with htmltest

www/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public

0 commit comments

Comments
 (0)