Let MkDocs clean previously generated HTML pages
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
c1503307ce
commit
fd2e8fad79
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ FROM python:3-alpine as docs
|
||||||
ADD . /usr/src/app/shaarli
|
ADD . /usr/src/app/shaarli
|
||||||
RUN cd /usr/src/app/shaarli \
|
RUN cd /usr/src/app/shaarli \
|
||||||
&& pip install --no-cache-dir mkdocs \
|
&& pip install --no-cache-dir mkdocs \
|
||||||
&& mkdocs build
|
&& mkdocs build --clean
|
||||||
|
|
||||||
# Stage 2:
|
# Stage 2:
|
||||||
# - Resolve PHP dependencies with Composer
|
# - Resolve PHP dependencies with Composer
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -207,7 +207,7 @@ htmldoc:
|
||||||
python3 -m venv venv/
|
python3 -m venv venv/
|
||||||
bash -c 'source venv/bin/activate; \
|
bash -c 'source venv/bin/activate; \
|
||||||
pip install mkdocs; \
|
pip install mkdocs; \
|
||||||
mkdocs build'
|
mkdocs build --clean'
|
||||||
find doc/html/ -type f -exec chmod a-x '{}' \;
|
find doc/html/ -type f -exec chmod a-x '{}' \;
|
||||||
rm -r venv
|
rm -r venv
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue