-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJustfile
45 lines (33 loc) · 1.05 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# the output directory for the documentation
docsDir := "site"
# describes available recipes
help:
just --list --unsorted
# wipe local caches
clean:
rm -rf {{docsDir}}
############################
# Documentation Recipes
############################
# builds the jte docs builder image
docsImage := "docs-builder"
buildDocsImage:
docker build docs -t {{docsImage}}
# Build the jte documentation
docs: buildDocsImage
docker run --rm -v $(pwd):/docs {{docsImage}} build
# serve the docs locally for development
serve: buildDocsImage
docker run --rm -p 8000:8000 -v ~/.git-credentials:/root/.git-credentials -v $(pwd):/docs -w /docs {{docsImage}} serve -a 0.0.0.0:8000
lint-docs: lint-prose lint-markdown
# use Vale to lint the prose of the documentation
lint-prose:
docker run -v $(pwd):/app -w /app jdkato/vale docs
# use markdownlit to lint the docs
lint-markdown:
docker run -v $(pwd):/app -w /app davidanson/markdownlint-cli2:0.3.1 "docs/**/*.md"
###################
# Aggregate Tasks
###################
# Lint code and docs
lint: lint-docs