This commit is contained in:
parent
dd3c238d76
commit
f116ab481e
3 changed files with 52 additions and 0 deletions
15
.drone.yml
Normal file
15
.drone.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
- name: build and publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: itsblue.dev
|
||||
repo: itsblue.dev/plugins/doxygen
|
||||
auto_tag: true
|
||||
dockerfile: Dockerfile
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM alpine
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
RUN apk add --no-cache git doxygen py3-pip texlive-full make && \
|
||||
pip3 install jinja2 Pygments && \
|
||||
git clone https://github.com/mosra/m.css && \
|
||||
rm -rf m.css/.git && \
|
||||
mv m.css /usr/lib/m.css && \
|
||||
cd / && rm -rf /workspace
|
||||
|
||||
COPY doxygen-build /usr/local/bin/doxygen-build
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/doxygen-build"]
|
21
doxygen-build
Executable file
21
doxygen-build
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
[[ -z "${PLUGIN_DOXYFILE}" ]] && exit 1 || DOXYFILE=$(realpath "${PLUGIN_DOXYFILE}")
|
||||
|
||||
DOCS_PATH=$(dirname $DOXYFILE)
|
||||
|
||||
echo ""
|
||||
echo "**** environment: ****"
|
||||
echo "* DOXYFILE=${DOXYFILE}"
|
||||
echo "* DOCS_PATH=${DOCS_PATH}"
|
||||
echo "**********************"
|
||||
echo ""
|
||||
|
||||
echo "**** build html ****"
|
||||
/usr/lib/m.css/documentation/doxygen.py $DOXYFILE
|
||||
|
||||
echo "**** build latex ****"
|
||||
cd $DOCS_PATH/latex
|
||||
make
|
||||
mv refman.pdf $DOCS_PATH/html/
|
Loading…
Reference in a new issue