From 1cf10d8aa5caba96253085b654d7881806c22d5a Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 28 Apr 2019 17:54:58 +0100 Subject: [PATCH] Alter git remote url when rendering docs to fix github urls --- build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build b/build index 43516af..743254d 100755 --- a/build +++ b/build @@ -74,10 +74,20 @@ task_setup() { task_docs() { task_begin "Rendering API docs"; + subtask_begin "Altering git remote"; + remote_name="$(git remote | head -n1)"; + remote_url="$(git remote get-url "${remote_name}")"; + git remote set-url "${remote_name}" "https://github.com/sbrl/powahroot.git"; + subtask_end $? "Failed to alter git remote"; + subtask_begin "Calling 'documentation'"; node_modules/.bin/documentation build --github --output "${docs_output_folder}" --format html --favicon "logo.png" "$(jq --raw-output .main