aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-06-26 22:20:29 +0200
committerVirtualTam <virtualtam@flibidi.net>2018-06-26 22:20:57 +0200
commitfd2e8fad79161a77423728abbc492fe8a68287fc (patch)
tree021c2ea4a596a647135c6a18c3fec4e62f580f7e
parentc1503307cea85531e8a8942f1b279f473c206115 (diff)
downloadShaarli-fd2e8fad79161a77423728abbc492fe8a68287fc.tar.gz
Shaarli-fd2e8fad79161a77423728abbc492fe8a68287fc.tar.zst
Shaarli-fd2e8fad79161a77423728abbc492fe8a68287fc.zip
Let MkDocs clean previously generated HTML pages
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
-rw-r--r--Dockerfile2
-rw-r--r--Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 4cda6f31..cb835ced 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,7 +5,7 @@ FROM python:3-alpine as docs
5ADD . /usr/src/app/shaarli 5ADD . /usr/src/app/shaarli
6RUN cd /usr/src/app/shaarli \ 6RUN cd /usr/src/app/shaarli \
7 && pip install --no-cache-dir mkdocs \ 7 && pip install --no-cache-dir mkdocs \
8 && mkdocs build 8 && mkdocs build --clean
9 9
10# Stage 2: 10# Stage 2:
11# - Resolve PHP dependencies with Composer 11# - Resolve PHP dependencies with Composer
diff --git a/Makefile b/Makefile
index 4adbdd68..b0cdadf0 100644
--- a/Makefile
+++ b/Makefile
@@ -207,7 +207,7 @@ htmldoc:
207 python3 -m venv venv/ 207 python3 -m venv venv/
208 bash -c 'source venv/bin/activate; \ 208 bash -c 'source venv/bin/activate; \
209 pip install mkdocs; \ 209 pip install mkdocs; \
210 mkdocs build' 210 mkdocs build --clean'
211 find doc/html/ -type f -exec chmod a-x '{}' \; 211 find doc/html/ -type f -exec chmod a-x '{}' \;
212 rm -r venv 212 rm -r venv
213 213