docs: html on gh-pages, i.e. https://m6w6.github.io/libmemcached/
authorMichael Wallner <mike@php.net>
Thu, 6 Feb 2020 19:11:56 +0000 (20:11 +0100)
committerMichael Wallner <mike@php.net>
Thu, 6 Feb 2020 19:13:06 +0000 (20:13 +0100)
[ci skip]

.gitignore
gh-pages.sh [new file with mode: 0755]

index f55b845681ffa5532d5fda7afafd874ab9745d08..d2b042d4b420783c1525d799d9cb0eef8ecc087a 100644 (file)
@@ -168,3 +168,5 @@ tmp_chroot
 unittests/unittests
 venv/
 /infer-out/
+/gh-pages/
+/gh-pages-build/
diff --git a/gh-pages.sh b/gh-pages.sh
new file mode 100755 (executable)
index 0000000..4184737
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -eu
+cd "$(dirname $0)"
+
+if test -d gh-pages/.git
+then
+  cd gh-pages
+  git pull -r
+  cd ..
+else
+  git clone -b gh-pages github.com:m6w6/libmemcached gh-pages
+fi
+
+mkdir -p gh-pages-build
+cd gh-pages-build
+cmake ..
+make html
+rsync -va --delete --exclude=.git/ docs/html/ ../gh-pages/
+
+cd ../gh-pages
+touch .nojekyll
+git add -A
+git ci -m "update docs"
+git push
+