-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
46 lines (37 loc) · 1018 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
deploy: setup clone build
build:
uv run mkdocs build -d public
serve: setup clone
uv run mkdocs serve
clean:
rm -rf planung public Wiki .venv
# Serve a local version of the wiki
# Expects the path to your local `Wiki` folder as an argument
local_serve *args:
rm -rf Wiki
cp -r {{ args }} ./
uv run mkdocs serve
clone repo="planung":
#!/bin/bash
set -euo pipefail
# Clone the folder or pull if it already exists.
if [[ ! -d "{{ repo }}" ]]; then
echo "Cloning repository"
git clone --quiet [email protected]:Tiefgang/{{ repo }}.git
else
cd {{ repo }}
git reset --quiet --hard
git pull --quiet
cd ..
fi
# Remove old files
rm -rf Wiki
# Copy wiki files to local folder
cp -r {{ repo }}/Wiki ./
# Create virtual python env to install mkdocs + material theme.
# This command updates the packages on a second run.
setup:
#!/bin/bash
set -euo pipefail
echo "Installing dependencies"
uv sync