-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 892 Bytes
/
Makefile
File metadata and controls
39 lines (26 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
33
34
35
36
37
38
SOURCEDIR = "./documentation"
BUILDDIR = "./site/documentation/_build"
REDOCCLI = "./node_modules/.bin/redocly"
REDOCTARGET = "https://nightly.hyperviewhq.com/api/docs/manager/5.0/swagger.json"
docker:
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) .
npm_ci:
npm ci
pip_install:
python3 -mpip install -r requirements.txt
setup: npm_ci pip_install
clean:
python3 -msphinx -M clean $(SOURCEDIR) $(BUILDDIR)
html:
python3 -msphinx -M html $(SOURCEDIR) $(BUILDDIR)
redoc:
$(REDOCCLI) build-docs $(REDOCTARGET) -t redoc-template/hyperview.hbs
redoc_publish:
mv redoc-static.html site/documentation/_build/html
site: clean html redoc redoc_publish
docker_build:
docker build --pull -t hvdocs:latest .
docker_stop:
docker container stop hvdocs || true && docker container rm hvdocs || true
docker_start:
docker run --name hvdocs -d -p 127.0.0.1:8080:8080 hvdocs:latest