From 87e93609a5535755fb40e05996ff997657aac6d2 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Fri, 5 Jul 2019 12:15:04 +0200 Subject: add automatic push of github pages add target in the makefile and the script used by it to get the website update .travis.yml to push the website on ghpages branch --- scripts/launch-website.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/launch-website.sh (limited to 'scripts') diff --git a/scripts/launch-website.sh b/scripts/launch-website.sh new file mode 100755 index 0000000..f146e75 --- /dev/null +++ b/scripts/launch-website.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +(sleep 10; +wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; + +rm -rf terraform-provider-website; +mv localhost:4567/ terraform-provider-website; + +docker stop "$(docker ps -q)") & + +make website -- cgit v1.2.3 From 1e4cb933c500f8135161e3d7fabeb0acf93bec12 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Mon, 8 Jul 2019 11:30:44 +0200 Subject: add index.html to ghpages created index.html update the script to add it in the website directory --- scripts/launch-website.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/launch-website.sh b/scripts/launch-website.sh index f146e75..a636565 100755 --- a/scripts/launch-website.sh +++ b/scripts/launch-website.sh @@ -5,6 +5,7 @@ wget --recursive --no-parent --domains localhost --page-requisites --html-extens rm -rf terraform-provider-website; mv localhost:4567/ terraform-provider-website; +mv index.html terraform-provider-website/index.html docker stop "$(docker ps -q)") & -- cgit v1.2.3 From 7cbb92efb5e84de877976830ee04798c1cc808b8 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Mon, 8 Jul 2019 15:46:38 +0200 Subject: add newline and commentary for clarity --- scripts/launch-website.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 @@ #!/usr/bin/env bash +#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 (sleep 10; wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; -- cgit v1.2.3 From 326af631a8ff605fd340704cf613778323320c96 Mon Sep 17 00:00:00 2001 From: alexandreFre <51956137+alexandreFre@users.noreply.github.com> Date: Mon, 8 Jul 2019 16:20:48 +0200 Subject: fix comment Co-Authored-By: paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> --- scripts/launch-website.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/launch-website.sh b/scripts/launch-website.sh index ec9e92c..dda894d 100755 --- a/scripts/launch-website.sh +++ b/scripts/launch-website.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -#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 +# sleep and the sub-command are there to make sure wget is called *after* `make website` has started. This ensures the website to be fetched correctly. (sleep 10; wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; -- cgit v1.2.3