forked from intel-retail/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 781 Bytes
/
Makefile
File metadata and controls
38 lines (32 loc) · 781 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
# Copyright © 2024 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
MKDOCS_IMAGE ?= intel-retail-mkdocs
clean-docs:
rm -rf docs/
docs: clean-docs
mkdocs build
mkdocs serve -a localhost:8008
docs-builder-image:
docker build \
--build-arg HTTPS_PROXY=${HTTPS_PROXY} \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
-f Dockerfile.docs \
-t $(MKDOCS_IMAGE) \
.
build-docs: docs-builder-image
docker run --rm \
-u $(shell id -u):$(shell id -g) \
--env http_proxy=${HTTP_PROXY} \
--env https_proxy=${HTTPS_PROXY} \
-v $(PWD):/docs \
-w /docs \
$(MKDOCS_IMAGE) \
build
serve-docs: docs-builder-image
docker run --rm \
-it \
-u $(shell id -u):$(shell id -g) \
-p 8000:8000 \
-v $(PWD):/docs \
-w /docs \
$(MKDOCS_IMAGE)