-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
35 lines (29 loc) · 984 Bytes
/
Makefile
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
THEME_VERSION := v0.44.0
THEME := hugo-geekdoc
THEMEDIR := themes
serve:
hugo serve
build:
hugo --minify
publish:
git clone [email protected]:UnifiedPush/pages.git
sed -i '/relativeURLs/ s/true/false/' config.toml
# fix link for hugo
sed -i -e 's/messageack/message_ack/' -e 's/newendpoint/new_endpoint/' -e 's/registrationfailed/registration_failed/' static/includes/spec/specifications/*.md
hugo --minify
rm -rf public/includes/spec/
rm -rf public/kdoc/.git
cp -r pages/.git public/
# 1 line, to stay in public dir
cd public && git add . && git commit -m "Update doc" && git push
install:
rm -rf $(THEMEDIR)/$(THEME)
mkdir -p $(THEMEDIR)/$(THEME)/ ; \
curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1
patch -p0 < themes/doc.patch
#spec
git submodule update --init
update-spec-version:
# update spec
cd ./static/includes/spec/
git pull origin main