From 0a848c9c6ae23ce734e0846732a04f5e7adbc3ed Mon Sep 17 00:00:00 2001 From: arekkas Date: Fri, 16 Nov 2018 15:06:02 +0100 Subject: [PATCH 1/2] u --- .circleci/config.yml | 1 + scripts/run-appendix.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 scripts/run-appendix.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 5728e829909..7b0a1f52197 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -188,6 +188,7 @@ jobs: - run: go get -u github.com/rakyll/hey - run: go install . - run: ./scripts/run-bench.sh + - run: ./scripts/run-appendix.sh - run: cat BENCHMARKS.md - run: "git clone https://arekkas:$DOCS_TOKEN_PUSH@github.com/ory/docs.git ../docs" - run: "cp BENCHMARKS.md ../docs/docs/performance/hydra.md" diff --git a/scripts/run-appendix.sh b/scripts/run-appendix.sh new file mode 100644 index 00000000000..8ab96a673df --- /dev/null +++ b/scripts/run-appendix.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -euo pipefail + +cd "$( dirname "${BASH_SOURCE[0]}" )/.." + +cat > appendix.md << EOF +--- +id: hydra-appendix +title: Appendix +--- + +## \`hydra serve\` + +\`\`\` +\$ hydra help serve + +`hydra help serve` +\`\`\` + +EOF From c80e52c92d0d7f517c774369a819bc52905df0c7 Mon Sep 17 00:00:00 2001 From: arekkas Date: Fri, 16 Nov 2018 15:07:19 +0100 Subject: [PATCH 2/2] docs: Auto-generate appendix Signed-off-by: arekkas --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7b0a1f52197..3029595cb0c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -189,10 +189,10 @@ jobs: - run: go install . - run: ./scripts/run-bench.sh - run: ./scripts/run-appendix.sh - - run: cat BENCHMARKS.md - run: "git clone https://arekkas:$DOCS_TOKEN_PUSH@github.com/ory/docs.git ../docs" - run: "cp BENCHMARKS.md ../docs/docs/performance/hydra.md" - - run: "(cd ../docs && git add -A && git commit -a -m \"Updates ORY Hydra Performance benchmarks\" && git push origin) || exit 0" + - run: "cp appendix.md ../docs/docs/hydra/appendix.md" + - run: "(cd ../docs && git add -A && git commit -a -m \"Updates ORY Hydra autogenerated docs\" && git push origin) || exit 0" workflows: version: 2