]> Untitled Git - bitcoindevkit.org/commitdiff
fix logo, add script and config to publish via gh-pages
authorSteve Myers <steve@notmandatory.org>
Sun, 13 Sep 2020 03:13:58 +0000 (20:13 -0700)
committerSteve Myers <steve@notmandatory.org>
Sun, 13 Sep 2020 06:01:20 +0000 (23:01 -0700)
config.toml
layouts/partials/logo.html
publish_to_ghpages.sh [new file with mode: 0755]
static/CNAME [new file with mode: 0644]

index fa39689ae42007ae5dc664d5b02447fe5217ae63..69b5f5c9a37a8a8fe9e514d4bc34859999e76020 100644 (file)
@@ -1,4 +1,4 @@
-baseURL = "https://bitcoindevkit.org/"
+baseURL = "https://test.bitcoindevkit.org/"
 languageCode = "en-us"
 title = "Bitcoin Dev Kit"
 theme = "learn"
index 814ef465fb2fe0d1c4bfd9bcab58e0378c73b9db..069ca1ce107a1f2e6ac731ae77a75a6ed9ed3ee0 100644 (file)
@@ -1,3 +1,3 @@
 <a id="logo" href="/">
-    <img src="/images/logo.svg" alt="Magical Bitcoin logo"/>
+    <img src="/images/logo.svg" alt="Bitcoin Dev Kit logo"/>
 </a>
diff --git a/publish_to_ghpages.sh b/publish_to_ghpages.sh
new file mode 100755 (executable)
index 0000000..64b4af1
--- /dev/null
@@ -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 (file)
index 0000000..9982129
--- /dev/null
@@ -0,0 +1 @@
+test.bitcoindevkit.org
\ No newline at end of file