Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Auto-generate appendix (#1174)
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <aeneas@ory.am>
aeneasr authored and arekkas committed Nov 18, 2018

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 4665ebd commit e343661
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions scripts/run-appendix.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e343661

Please sign in to comment.