-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathJustfile
54 lines (42 loc) · 1002 Bytes
/
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
45
46
47
48
49
50
51
52
53
54
default:
just -l
setup:
cargo binstall hyperlink # install bad link checker
# dev service build for quick preview
start:
npm start
# this foldoes a full build w/ search plugin index build
build: clean
npm run build
clean:
rm -f hyperlink.log
rm -rf build
npm run clear
# note running this need clean to update the status, otherwise docusaurus
# often does not refresh warnings on cached docs
very-clean: clean
rm -rf .docusaurus
# should do a build (or npm run build)
linkcheck:
hyperlink \
--check-anchors \
./build | tee hyperlink.log
# more info, but sometimes matches up md sources incorrectly
lc2:
hyperlink \
--sources ./docs \
./build/docs | tee hyperlink.log
# alternate view
lc3:
hyperlink \
--check-anchors \
--sources ./news \
./build | tee hyperlink.log
lint: build
sleep 1
just linkcheck
resync-ver:
rm -rf versioned_docs/version-0.16.1
rsync -aurv docs/ versioned_docs/version-0.16.1
sync-ver:
rsync -aurv docs/ versioned_docs/version-0.16.1