docs(gitbook-75): add json tab to filter example #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: | |
- alpha # change this to the branch we're actively working on, as Gitbook can only sync from a single branch | |
jobs: | |
publish_docs: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'chore(release)')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/buf-setup-action@v1 | |
- name: "Generate OpenAPI spec" | |
run: | | |
cd protos | |
buf generate | |
cp openapi.yaml ../docs/.gitbook.yaml | |
- name: "Generate API Reference Docs" | |
run: | | |
cd scripts/docs | |
pip install pyyaml | |
python gendocs.py |