From fd2e8fad79161a77423728abbc492fe8a68287fc Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 26 Jun 2018 22:20:29 +0200 Subject: [PATCH] Let MkDocs clean previously generated HTML pages Signed-off-by: VirtualTam --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4cda6f3..cb835ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM python:3-alpine as docs ADD . /usr/src/app/shaarli RUN cd /usr/src/app/shaarli \ && pip install --no-cache-dir mkdocs \ - && mkdocs build + && mkdocs build --clean # Stage 2: # - Resolve PHP dependencies with Composer diff --git a/Makefile b/Makefile index 4adbdd6..b0cdadf 100644 --- a/Makefile +++ b/Makefile @@ -207,7 +207,7 @@ htmldoc: python3 -m venv venv/ bash -c 'source venv/bin/activate; \ pip install mkdocs; \ - mkdocs build' + mkdocs build --clean' find doc/html/ -type f -exec chmod a-x '{}' \; rm -r venv