forked from ros2/ros2_documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 620 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Make file to generate documentation
SOURCE = source
OUT = build
BUILD = python3 -m sphinx
OPTS =-c .
help:
@$(BUILD) -M help "$(SOURCE)" "$(OUT)" $(OPTS)
@echo " multiversion to build documentation for all branches"
multiversion: Makefile
sphinx-multiversion $(OPTS) "$(SOURCE)" build/html
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=humble/index.html\" /></head></html>" > build/html/index.html
python3 make_sitemapindex.py
.PHONY: help Makefile multiversion
%: Makefile
@$(BUILD) -M $@ "$(SOURCE)" "$(OUT)" $(OPTS)
test:
doc8 --ignore D001 --ignore-path build