From fb14f9bd90decdad49d5a7f376b4124eb3c93915 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 6 Feb 2020 20:11:56 +0100 Subject: [PATCH] docs: html on gh-pages, i.e. https://m6w6.github.io/libmemcached/ [ci skip] --- .gitignore | 2 ++ gh-pages.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 gh-pages.sh diff --git a/.gitignore b/.gitignore index f55b8456..d2b042d4 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 00000000..41847374 --- /dev/null +++ b/gh-pages.sh @@ -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 + -- 2.30.2