File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ DOCKER_CONTAINER_NAME := argtable3-builder-container
33
33
34
34
BUILD_DIR := build
35
35
OUTPUT_DIR := output
36
+ DOCS_DIR := docs
36
37
DOXYGEN_XML_DIR := docs/source/xml
37
38
DOCS_BUILD_DIR := docs/build
38
39
ARCHIVE_DIR := .archive
@@ -80,7 +81,7 @@ Here are some <TAG_NAME> examples (use 'make taglist' to get all available tags)
80
81
81
82
82
83
.PHONY : build-docker-image
83
- build-docker-image :
84
+ build-docker-image : tools/Dockerfile
84
85
@if [ ! -f /.dockerenv ] && ! docker image inspect $(DOCKER_IMAGE_NAME ) > /dev/null 2>&1 ; then \
85
86
docker build -f tools/Dockerfile -t $(DOCKER_IMAGE_NAME ) . ; \
86
87
fi
@@ -134,6 +135,16 @@ archive: build-docker-image co
134
135
"
135
136
136
137
138
+ .PHONY : docs
139
+ docs : build-docker-image
140
+ @$(DOCKER_CMD_PREFIX ) bash -c " \
141
+ printf ' Generate documentation...\n' && \
142
+ pushd $(DOCS_DIR ) && \
143
+ doxygen && \
144
+ make html \
145
+ "
146
+
147
+
137
148
.PHONY : shell
138
149
shell : build-docker-image
139
150
@if [ ! -f /.dockerenv ]; then \
Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ RUN apt-get update && \
39
39
tar \
40
40
zip \
41
41
dos2unix \
42
+ doxygen \
43
+ python3 \
44
+ python3-pip \
45
+ python3-venv \
42
46
&& rm -rf /var/lib/apt/lists/*
43
47
48
+ RUN python3 -m venv /opt/venv && \
49
+ /opt/venv/bin/pip install --upgrade pip && \
50
+ /opt/venv/bin/pip install sphinx furo breathe myst-parser
51
+
52
+ ENV PATH="/opt/venv/bin:$PATH"
53
+
44
54
WORKDIR /workdir
You can’t perform that action at this time.
0 commit comments