From: Michael Wallner Date: Thu, 6 Feb 2020 19:11:56 +0000 (+0100) Subject: docs: html on gh-pages, i.e. https://m6w6.github.io/libmemcached/ X-Git-Tag: post_cmake~12 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fb14f9bd90decdad49d5a7f376b4124eb3c93915;p=awesomized%2Flibmemcached docs: html on gh-pages, i.e. https://m6w6.github.io/libmemcached/ [ci skip] --- 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 +