-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 826 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 826 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
# Makefile for Openadkit Document
# Installs required MkDocs packages and serves documentation
.PHONY: help prepare serve build clean
# Default target
help:
@echo "Openadkit Documentation - Available commands:"
@echo " make prepare Prepare Mkdocs development container"
@echo " make serve Start development server on the built container"
@echo " make build Build static documentation"
@echo " make clean Clean build artifacts"
# Serve documentation locally
serve:
docker run -it --rm -p 8000:8000 -v $$(pwd):/app mkdocs-dev
# Build static documentation
build:
docker run -it --rm -v $$(pwd):/app --user $$(id -u):$$(id -g) mkdocs-dev mkdocs build
# Clean build artifacts
clean:
rm -rf site/
# Install mkdocs dependencies
prepare:
docker build -f doc_env/Dockerfile -t mkdocs-dev .