From: Steve Myers Date: Sun, 13 Sep 2020 03:13:58 +0000 (-0700) Subject: fix logo, add script and config to publish via gh-pages X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.SignerWrapper.html?a=commitdiff_plain;h=75c810b97ae0a34dd923b7115d0b8fc416852c5b;p=bitcoindevkit.org fix logo, add script and config to publish via gh-pages --- diff --git a/config.toml b/config.toml index fa39689ae4..69b5f5c9a3 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://bitcoindevkit.org/" +baseURL = "https://test.bitcoindevkit.org/" languageCode = "en-us" title = "Bitcoin Dev Kit" theme = "learn" diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 814ef465fb..069ca1ce10 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,3 +1,3 @@ diff --git a/publish_to_ghpages.sh b/publish_to_ghpages.sh new file mode 100755 index 0000000000..64b4af1d83 --- /dev/null +++ b/publish_to_ghpages.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +if [ "`git status -s`" ] +then + echo "The working directory is dirty. Please commit any pending changes." + exit 1; +fi + +echo "Deleting old publication" +rm -rf public +mkdir public +git worktree prune +rm -rf .git/worktrees/public/ + +echo "Checking out gh-pages branch into public" +git worktree add -B gh-pages public origin/gh-pages + +echo "Removing existing files" +rm -rf public/* + +echo "Generating site" +hugo + +echo "Updating gh-pages branch" +cd public && git add --all && git commit -m "Publishing to gh-pages (publish.sh)" + +#echo "Pushing to github" +#git push origin gh-pages + diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 0000000000..9982129f13 --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +test.bitcoindevkit.org \ No newline at end of file