From 42e82603b9cb3baf211246f3305b7b0f2d85f3ef Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Mon, 27 Sep 2021 14:05:49 +0200 Subject: [PATCH] Add a testsite mode to view the whole site --- issues/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/issues/Makefile b/issues/Makefile index c0d4061..586a60d 100644 --- a/issues/Makefile +++ b/issues/Makefile @@ -1,9 +1,14 @@ all: find . -maxdepth 1 -type d -name 'issue-*' -exec ./make_issue.sh {} \; + ./make_issue.sh _index ../public/index.html clean: rm ../dev/*html test: - ./make_issue.sh current/ && cp ../dev/*.html ~/Downloads/current-issue.html + ./make_issue.sh current ~/Downloads/current-issue.html xdg-open ~/Downloads/current-issue.html + +testsite: + cp -fr ../public ~/Downloads/ + xdg-open ~/Downloads/public/index.html