-
Notifications
You must be signed in to change notification settings - Fork 5
docs: launch the AWA documentation site #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3a1f642
docs: add public documentation site
hardbyte 802dcc8
ci: initialize docs publish workspaces
hardbyte 81f9b9b
docs: link the published site
hardbyte d074709
docs: make the Python tutorial uv-first
hardbyte 5a09373
docs: address review feedback
hardbyte 9103a7c
docs: make Python quickstart wait for completion
hardbyte ff22b63
docs: use a stable callback timeout anchor
hardbyte 1775478
docs: pin quickstarts to the stable release
hardbyte ddb37fc
docs: fix dark-mode syntax highlighting
hardbyte e057c8e
docs: harden previews and quickstart timeout
hardbyte 0af671f
docs: explain uv tool path setup
hardbyte fc220eb
docs: refine site structure and agent access
hardbyte 6a324a6
docs: address final review findings
hardbyte 9497905
docs: clarify operations and security navigation
hardbyte 274c32c
docs: pin deploy actions and polish quickstart and language switcher
hardbyte 417ee52
Merge branch 'main' into brian/docs-site
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,142 @@ | ||
| name: Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - .github/workflows/docs.yml | ||
| - awa/examples/quickstart.rs | ||
| - awa-python/examples/quickstart.py | ||
| - docs/** | ||
| - mkdocs.yml | ||
| - requirements-docs.txt | ||
| - scripts/build-agent-docs.py | ||
| - scripts/check-docs.sh | ||
| pull_request: | ||
| branches: [main] | ||
| types: [opened, reopened, synchronize, closed] | ||
| paths: | ||
| - .github/workflows/docs.yml | ||
| - awa/examples/quickstart.rs | ||
| - awa-python/examples/quickstart.py | ||
| - docs/** | ||
| - mkdocs.yml | ||
| - requirements-docs.txt | ||
| - scripts/build-agent-docs.py | ||
| - scripts/check-docs.sh | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| # Serialize each preview's updates and cleanup without letting unrelated PRs | ||
| # evict one another from GitHub's single pending slot. Production deploys | ||
| # remain serialized separately; manual runs are intentionally independent. | ||
| group: >- | ||
| awa-docs-${{ | ||
| github.event_name == 'pull_request' | ||
| && format('pr-{0}', github.event.pull_request.number) | ||
| || github.event_name == 'push' | ||
| && 'production' | ||
| || format('manual-{0}', github.run_id) | ||
| }} | ||
| cancel-in-progress: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| if: github.event_name != 'pull_request' || github.event.action != 'closed' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
| cache: pip | ||
| cache-dependency-path: requirements-docs.txt | ||
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Install documentation dependencies | ||
| run: python -m pip install --requirement requirements-docs.txt | ||
|
|
||
| - name: Build docs and check canonical examples | ||
| run: scripts/check-docs.sh | ||
|
|
||
| - name: Prepare Pages artifact | ||
| run: touch site/.nojekyll | ||
|
|
||
| - uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: awa-docs-${{ github.run_id }} | ||
| path: site | ||
| include-hidden-files: true | ||
| if-no-files-found: error | ||
|
|
||
| preview: | ||
| if: >- | ||
| github.event_name == 'pull_request' && | ||
| github.event.action != 'closed' && | ||
| github.event.pull_request.head.repo.full_name == github.repository | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/download-artifact@v8 | ||
| with: | ||
| name: awa-docs-${{ github.run_id }} | ||
| path: site | ||
|
|
||
| - name: Publish pull request preview | ||
| uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 # v1.8.1 | ||
| with: | ||
| source-dir: site | ||
| preview-branch: gh-pages | ||
| umbrella-dir: pr-preview | ||
|
|
||
| remove-preview: | ||
| if: >- | ||
| github.event_name == 'pull_request' && | ||
| github.event.action == 'closed' && | ||
| github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Remove pull request preview | ||
| uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 # v1.8.1 | ||
| with: | ||
| action: remove | ||
| preview-branch: gh-pages | ||
| umbrella-dir: pr-preview | ||
|
|
||
| deploy: | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/download-artifact@v8 | ||
| with: | ||
| name: awa-docs-${{ github.run_id }} | ||
| path: site | ||
|
|
||
| - name: Publish production site | ||
| uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0 | ||
| with: | ||
| branch: gh-pages | ||
| folder: site | ||
| clean-exclude: pr-preview | ||
| force: false | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.