-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 892 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 892 Bytes
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
ABCDESKTOP_LATEST_RELEASE ?= 4.4
all: version docs
version:
$(shell ./mkversion.sh)
install:
pip3 install -r requirements.txt
build-mkdocs:
export ABCDESKTOP_LATEST_RELEASE=$(ABCDESKTOP_LATEST_RELEASE); \
envsubst < opsdocs/mkdocs.yml.template > opsdocs/mkdocs.yml
docs: build-mkdocs
# $(MAKE) -C api/oc.user.18.04 docs
# cp api/oc.user.18.04/composer/node/spawner-service/spawner-service.md opsdocs/docs/services
# cp api/oc.user.18.04/composer/node/file-service/file-service.md opsdocs/docs/services
# only to build md
# comment take too long time use cache
# $(MAKE) -C oc.apps docs
# cp oc.apps/*.md opsdocs/docs/applications
# ls -la opsdocs/docs/applications
# mkdir -p opsdocs/docs/applications/icons
# cp oc.apps/icons/* opsdocs/docs/applications/icons
mkdocs build -f opsdocs/mkdocs.yml
serve: build-mkdocs
mkdocs serve -a 0.0.0.0:8080 -f opsdocs/mkdocs.yml