From 6b41a64d4218c62f37e6f50daedbd063cf562ea5 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 16 Jan 2018 15:47:48 +0100 Subject: adding back-office docs building instructions --- buildbot/master.cfg | 3 ++- taler-build/update_doc_backoffice.sh | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 taler-build/update_doc_backoffice.sh diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 5bf36ce..5411569 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -61,7 +61,7 @@ c["change_source"] = [ALLCS] def doc_filter(change): _changes = change.asDict() - if _changes.get("project") in ["api", "www"]: + if _changes.get("project") in ["api", "www", "merchant-frontend-examples"]: return True files = _changes.get("files") for file in files: @@ -269,6 +269,7 @@ SELENIUM_FACTORY.addStep(ShellCommand( def doc_dispatcher(project): switch = { "api": ["./update_api.sh"], + "backoffice": ["./update_doc_backoffice.sh"], "www": ["./update_www_and_stage.sh"], "bank": ["./update_bank.sh"], "merchant": ["./update_doc_merchant.sh"], diff --git a/taler-build/update_doc_backoffice.sh b/taler-build/update_doc_backoffice.sh new file mode 100755 index 0000000..a098bef --- /dev/null +++ b/taler-build/update_doc_backoffice.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -eu + +fetch () { + git clean -fdx + git fetch + # reset to updated upstream branch, but only if we're tracking a branch + branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo head) + git reset --hard "$branch" +} + +cd $HOME/backoffice/doc/ +fetch +make +mkdir -p $HOME/build/backoffice/manual/pdf +mkdir -p $HOME/build/backoffice/manual/html +cp manual.pdf $HOME/build/backoffice/manual/pdf/ +cp manual.html $HOME/build/backoffice/manual/html/ +cp *.css $HOME/build/backoffice/manual/html/ -- cgit v1.2.3