-
Notifications
You must be signed in to change notification settings - Fork 20
/
justfile
42 lines (37 loc) · 1.25 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
export PIP_REQUIRE_VIRTUALENV := "true"
default:
@just --list --unsorted --color=always | rg -v " default"
open := if os() == "macos" { "open" } else { "xdg-open" }
# Start a development server assuming virtualenv deps have been installed
serve:
#!/usr/bin/env bash
if [ -z "${VIRTUAL_ENV}" ]; then
echo "Activate virtualenv first"
echo "Please run:"
echo "python3 -m venv venv && source/venv/bin/activate && pip install -r requirements.txt"
echo "or, if you have already installed it:"
echo "source venv/bin/activate"
exit 1
fi
(sleep 2 && {{open}} http://127.0.0.1:8000/) &
mkdocs serve
# Synchronize markdown from other repos in kube-rs org
sync:
./sync.sh
# Query dynamic properties of kube and put into docs
dynprops:
echo "TODO: find cargo rust-version of kube and put in msrv doc"
# experimental linkcheck
linkcheck:
lychee --github-token=$GITHUB_TOKEN https://kube.rs
lychee --github-token=$GITHUB_TOKEN docs/controllers/*.md
# helper to try-upgrade everything in the pip environment
upgrade:
#!/usr/bin/env bash
rm -rf ./venv
python3 -m venv venv
source venv/bin/activate
pip3 install mkdocs-material=="9.*"
pip3 install mkdocs-roamlinks-plugin
pip3 install mkdocs-exclude
pip3 freeze > requirements.txt