Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root: ./docs/

structure:
readme: index.md
summary: SUMMARY.md
47 changes: 47 additions & 0 deletions .github/workflows/sync-gitbook-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Sync docs to gitbook-docs

on:
push:
branches: [main]
paths:
- 'docs/**'
- '.gitbook.yaml'
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Sync docs to gitbook-docs branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

cp -r docs /tmp/docs
cp .gitbook.yaml /tmp/.gitbook.yaml

if git ls-remote --exit-code --heads origin gitbook-docs; then
git checkout gitbook-docs
else
git checkout --orphan gitbook-docs
git rm -rf . --quiet || true
fi

rm -rf docs .gitbook.yaml
cp -r /tmp/docs .
cp /tmp/.gitbook.yaml .

git add docs/ .gitbook.yaml
if git diff --cached --quiet; then
echo "No changes to sync."
exit 0
fi
git commit -m "sync: update docs from main"
git push origin gitbook-docs
21 changes: 21 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Summary

* [Introduction](index.md)

## Guides

* [Models](models.md)
* [Tools](tools.md)
* [Callbacks](callbacks.md)
* [Tracing](tracing.md)
* [Serving](serving.md)
* [Evaluation](evaluation.md)

## Cookbook

* [Your first agent](cookbook/your-first-agent.md)
* [Evaluating an agent](cookbook/your-first-agent-evaluation.md)
* [MCP agent](cookbook/mcp-agent.md)
* [Callbacks](cookbook/callbacks.md)
* [Serve over A2A](cookbook/serve-a2a.md)
* [Local LLM](cookbook/agent-with-local-llm.md)
Loading