-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: generate and update API reference for cala.sh (#117)
* feat: add spectaql config to generate API reference * chore: add API reference, link from the sidebar * feat: add action to update the API reference * docs: change cala tagline * docs: update api reference on published release only * docs: add rust crate docs to sidebar * chore: docusaurus update
- Loading branch information
Showing
9 changed files
with
6,036 additions
and
219 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# website-update-api-reference.yml | ||
name: Website update API reference | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-api-reference: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: DeterminateSystems/nix-installer-action@v12 | ||
- uses: DeterminateSystems/magic-nix-cache-action@v7 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build the API reference | ||
run: | | ||
cd website | ||
npm install spectaql | ||
npx spectaql spectaql-config.yml -t static -f api-reference.html | ||
- name: Deploy the API reference | ||
run: | | ||
git config --local user.name 'github-actions[bot]' | ||
git config --local user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add website/static/api-reference.html | ||
git commit -m "docs: api reference update: $GITHUB_SHA" | ||
git push origin main |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
introspection: | ||
schemaFile: ../cala-server/schema.graphql | ||
|
||
info: | ||
title: Cala GraphQL API reference | ||
description: Get started on [cala.sh/docs](https://cala.sh/docs/) | ||
|
||
servers: | ||
- url: http://localhost:2252/graphql | ||
description: Local dev environment | ||
production: false |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.