Skip to content

Commit af9306d

Browse files
yaozheng-fangclaude
andcommitted
docs: rebuild documentation site on Fumadocs (bilingual zh/en)
Replace the MkDocs Material site with a Fumadocs (Next.js) project. - Bilingual content (Chinese default + English) with i18n routing, language switcher, localized UI and page-action buttons, and Mandarin-tokenized static search. - Migrate ~54 pages from MkDocs markdown to MDX (admonitions -> Callout, content tabs -> Tabs, collapsibles -> Accordions, inlined --8<-- examples, Mermaid, Video), merging richer code examples from the AgentKit GitBook. - New pages: A2UI + VeADK frontend, Agent Skills, A2A Hub, middleware events, built-in MCP tools, system tools, Langchain, AgentKit CLI, API reference, observability overview, installation, local debugging. - Google-ADK-style navigation: root dropdown (Framework / CLI / Reference) with grouped sidebar sections. - Static export for GitHub Pages with base-path handling (assets, MDX images, root redirect, .nojekyll); the POST chat route is excluded from export. - Update the deploy-docs workflow to build the Fumadocs static site on Node 22. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4792f96 commit af9306d

338 files changed

Lines changed: 23607 additions & 6236 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy-docs.yaml‎

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- feat/docs
7+
- feat/new-docs
88
paths:
99
- 'docs/**'
1010
- '.github/workflows/deploy-docs.yaml'
@@ -16,35 +16,57 @@ permissions:
1616
pages: write
1717
id-token: write
1818

19+
# Allow one concurrent deployment; cancel in-progress runs.
20+
concurrency:
21+
group: pages
22+
cancel-in-progress: true
23+
1924
jobs:
20-
deploy:
25+
build:
2126
runs-on: ubuntu-latest
22-
environment:
23-
name: github-pages
27+
defaults:
28+
run:
29+
working-directory: docs
2430
steps:
2531
- name: Checkout repository
2632
uses: actions/checkout@v4
2733

28-
- name: Set up Python
29-
uses: actions/setup-python@v5
34+
- name: Set up pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 10
38+
39+
- name: Set up Node.js
40+
uses: actions/setup-node@v4
3041
with:
31-
python-version: '3.12'
42+
node-version: 22
43+
cache: pnpm
44+
cache-dependency-path: docs/pnpm-lock.yaml
3245

3346
- name: Install dependencies
34-
run: |
35-
cd docs
36-
pip install -r requirements.txt
47+
run: pnpm install --frozen-lockfile
3748

38-
- name: Build MkDocs site
39-
run: |
40-
cd docs
41-
mkdocs build
49+
- name: Build static site (Fumadocs)
50+
run: pnpm build:static
51+
env:
52+
# GitHub Pages project site is served from /<repo>. Without this base
53+
# path, assets and routes 404 under the sub-path. (The pitfall.)
54+
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
55+
# Optional: external Ask-AI endpoint (e.g. a VeFaaS function).
56+
NEXT_PUBLIC_AI_CHAT_URL: ${{ vars.AI_CHAT_URL }}
4257

4358
- name: Upload artifact for GitHub Pages
4459
uses: actions/upload-pages-artifact@v3
4560
with:
46-
path: docs/site/
61+
path: docs/out
4762

63+
deploy:
64+
needs: build
65+
runs-on: ubuntu-latest
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deploy.outputs.page_url }}
69+
steps:
4870
- name: Deploy to GitHub Pages
4971
id: deploy
50-
uses: actions/deploy-pages@v4
72+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,6 @@ cython_debug/
201201
*.mp3
202202
*.pcm
203203

204-
.trae
204+
.trae
205+
.claude
206+
.agents

‎.gitleaks.toml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ description = "Empty environment variables with KEY pattern"
7373
regex = '''os\.environ\[".*?KEY"\]\s*=\s*".+"'''
7474

7575
[allowlist]
76-
paths = ["requirements.txt", "tests", "veadk/realtime/client.py", "veadk/realtime/live.py"]
76+
paths = ["requirements.txt", "tests", "veadk/realtime/client.py", "veadk/realtime/live.py"]
77+
# False positives: the docs search config references the @orama/tokenizers
78+
# package and its createTokenizer() helper. The word "tokenizer" trips
79+
# token-transformer-id-pattern, but these are library identifiers, not secrets.
80+
regexes = [
81+
'''tokenizer''',
82+
]

‎docs/.gitignore‎

Lines changed: 26 additions & 172 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,26 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
develop-eggs/
12-
dist/
13-
downloads/
14-
eggs/
15-
.eggs/
16-
lib/
17-
lib64/
18-
parts/
19-
sdist/
20-
var/
21-
wheels/
22-
share/python-wheels/
23-
*.egg-info/
24-
.installed.cfg
25-
*.egg
26-
MANIFEST
27-
28-
# PyInstaller
29-
# Usually these files are written by a python script from a template
30-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31-
*.manifest
32-
*.spec
33-
34-
# Installer logs
35-
pip-log.txt
36-
pip-delete-this-directory.txt
37-
38-
# Unit test / coverage reports
39-
htmlcov/
40-
.tox/
41-
.nox/
42-
.coverage
43-
.coverage.*
44-
.cache
45-
nosetests.xml
46-
coverage.xml
47-
*.cover
48-
*.py,cover
49-
.hypothesis/
50-
.pytest_cache/
51-
cover/
52-
53-
# Translations
54-
*.mo
55-
*.pot
56-
57-
# Django stuff:
58-
*.log
59-
local_settings.py
60-
db.sqlite3
61-
db.sqlite3-journal
62-
63-
# Flask stuff:
64-
instance/
65-
.webassets-cache
66-
67-
# Scrapy stuff:
68-
.scrapy
69-
70-
# Sphinx documentation
71-
docs/_build/
72-
73-
# PyBuilder
74-
.pybuilder/
75-
target/
76-
77-
# Jupyter Notebook
78-
.ipynb_checkpoints
79-
80-
# IPython
81-
profile_default/
82-
ipython_config.py
83-
84-
# pyenv
85-
# For a library or package, you might want to ignore these files since the code is
86-
# intended to run in multiple environments; otherwise, check them in:
87-
# .python-version
88-
89-
# pipenv
90-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
92-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
93-
# install all needed dependencies.
94-
#Pipfile.lock
95-
96-
# poetry
97-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
98-
# This is especially recommended for binary packages to ensure reproducibility, and is more
99-
# commonly ignored for libraries.
100-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
101-
#poetry.lock
102-
103-
# pdm
104-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
105-
#pdm.lock
106-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
107-
# in version control.
108-
# https://pdm.fming.dev/#use-with-ide
109-
.pdm.toml
110-
111-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
112-
__pypackages__/
113-
114-
# Celery stuff
115-
celerybeat-schedule
116-
celerybeat.pid
117-
118-
# SageMath parsed files
119-
*.sage.py
120-
121-
# Environments
122-
.env
123-
.venv
124-
env/
125-
venv/
126-
ENV/
127-
env.bak/
128-
venv.bak/
129-
130-
# Spyder project settings
131-
.spyderproject
132-
.spyproject
133-
134-
# Rope project settings
135-
.ropeproject
136-
137-
# mkdocs documentation
138-
/site
139-
140-
# mypy
141-
.mypy_cache/
142-
.dmypy.json
143-
dmypy.json
144-
145-
# Pyre type checker
146-
.pyre/
147-
148-
# pytype static type analyzer
149-
.pytype/
150-
151-
# Cython debug symbols
152-
cython_debug/
153-
154-
# PyCharm
155-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
156-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
157-
# and can be added to the global gitignore or merged into this file. For a more nuclear
158-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
159-
.idea/
160-
161-
# vscode
162-
.vscode/
163-
# Windsurf
164-
.windsurf
165-
166-
# python package
167-
uv.lock
168-
169-
# VitePress related files (security concern - keep Markdown docs in repo)
170-
docs/package.json
171-
docs/package-lock.json
172-
docs/node_modules/
1+
# deps
2+
/node_modules
3+
4+
# generated content
5+
.source
6+
7+
# test & build
8+
/coverage
9+
/.next/
10+
/out/
11+
/build
12+
*.tsbuildinfo
13+
14+
# misc
15+
.DS_Store
16+
*.pem
17+
/.pnp
18+
.pnp.js
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
# others
24+
.env*.local
25+
.vercel
26+
next-env.d.ts

‎docs/README.md‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# veadk-docs-scaffold
2+
3+
This is a Next.js application generated with
4+
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
5+
6+
It is a Next.js app with [Static Export](https://nextjs.org/docs/app/guides/static-exports) configured.
7+
8+
Run development server:
9+
10+
```bash
11+
npm run dev
12+
# or
13+
pnpm dev
14+
# or
15+
yarn dev
16+
```
17+
18+
Open http://localhost:3000 with your browser to see the result.
19+
20+
## Explore
21+
22+
In the project, you can see:
23+
24+
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
25+
- `lib/layout.shared.tsx`: Shared options for layouts, optional but preferred to keep.
26+
27+
| Route | Description |
28+
| ------------------------- | ------------------------------------------------------ |
29+
| `app/(home)` | The route group for your landing page and other pages. |
30+
| `app/docs` | The documentation layout and pages. |
31+
| `app/api/search/route.ts` | The Route Handler for search. |
32+
33+
### Fumadocs MDX
34+
35+
A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.
36+
37+
Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.
38+
39+
## Learn More
40+
41+
To learn more about Next.js and Fumadocs, take a look at the following
42+
resources:
43+
44+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
45+
features and API.
46+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
47+
- [Fumadocs](https://fumadocs.dev) - learn about Fumadocs

‎docs/app/[lang]/(home)/layout.tsx‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { ReactNode } from 'react';
2+
import { HomeLayout } from 'fumadocs-ui/layouts/home';
3+
import { baseOptions } from '@/lib/layout.shared';
4+
5+
export default async function Layout({
6+
params,
7+
children,
8+
}: {
9+
params: Promise<{ lang: string }>;
10+
children: ReactNode;
11+
}) {
12+
const { lang } = await params;
13+
return <HomeLayout {...baseOptions(lang)}>{children}</HomeLayout>;
14+
}

0 commit comments

Comments
 (0)