diff options
-rw-r--r-- | GNUmakefile | 1 | ||||
-rwxr-xr-x | scripts/launch-website.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index e31a939..c88972d 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -48,6 +48,7 @@ test-compile: | |||
48 | 48 | ||
49 | website-githubpages: | 49 | website-githubpages: |
50 | bash scripts/launch-website.sh | 50 | bash scripts/launch-website.sh |
51 | |||
51 | website: | 52 | website: |
52 | ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) | 53 | ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) |
53 | echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." | 54 | echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." |
diff --git a/scripts/launch-website.sh b/scripts/launch-website.sh index a636565..ec9e92c 100755 --- a/scripts/launch-website.sh +++ b/scripts/launch-website.sh | |||
@@ -1,5 +1,6 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | #the sleep and the subquery & are here to ensure that wget is called after make website have done its work so that the website is gotten correctly | ||
3 | (sleep 10; | 4 | (sleep 10; |
4 | wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; | 5 | wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; |
5 | 6 | ||