Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rwxd/wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Apr 1, 2022
2 parents 6fbfd11 + efbedfd commit a958396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version: "3"

vars:
CONTAINER: docker pull ghcr.io/rwxd/wiki-container:main
CONTAINER: ghcr.io/rwxd/wiki-container:main
CURRENT_DIR:
sh: pwd
SITE_DIR: "{{.CURRENT_DIR}}/site"
Expand All @@ -26,12 +26,12 @@ tasks:
lint:
desc: Lint markdown
cmds:
- podman run --rm {{.CONTAINER}} sh -c "markdownlint --config ../.markdownlint.json docs/"
- docker run --rm -v {{.CURRENT_DIR}}:/src {{.CONTAINER}} sh -c "markdownlint --config .markdownlint.json docs/"

build:
desc: Build blog pages
cmds:
- task: lint
- mkdir -p {{.SITE_DIR}}
- podman run --rm -v {{.SITE_DIR}}:/src/site {{.CONTAINER}} sh -c "mkdocs build"
- docker run --rm -v {{.CURRENT_DIR}}:/src {{.CONTAINER}} sh -c "mkdocs build"
- ls -la

0 comments on commit a958396

Please sign in to comment.