diff --git a/.circleci/config.yml b/.circleci/config.yml index 5728e829909..3029595cb0c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -188,10 +188,11 @@ jobs: - run: go get -u github.com/rakyll/hey - run: go install . - run: ./scripts/run-bench.sh - - run: cat BENCHMARKS.md + - run: ./scripts/run-appendix.sh - 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 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