diff --git a/.github/workflows/docs-health-check.yaml b/.github/workflows/docs-health-check.yaml new file mode 100644 index 000000000..4fc63f43a --- /dev/null +++ b/.github/workflows/docs-health-check.yaml @@ -0,0 +1,57 @@ +name: Check Docs Health + +on: + schedule: + - cron: '0 0 * * 0' # Run every Sunday at midnight + workflow_dispatch: + +jobs: + health-check: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Run health check script + id: health_check + continue-on-error: true + run: python scripts/check_docs_health.py + + - name: Check for changes + id: git_status + run: | + if git diff --quiet -- docs_health_report.md; then + echo "No changes to report." + echo "changed=false" >> $GITHUB_OUTPUT + else + echo "Health report or badge has changed." + echo "changed=true" >> $GITHUB_OUTPUT + fi + + - name: Create Pull Request with changes + if: steps.git_status.outputs.changed == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + BRANCH_NAME="docs-health/update-${{ github.run_id }}" + git checkout -b $BRANCH_NAME + git add docs_health_report.md + git commit -m "docs: Update health report" + git push origin $BRANCH_NAME + gh pr create \ + --base "main" \ + --head "$BRANCH_NAME" \ + --title "docs: Update health report (${{ github.run_id }})" \ + --body "Automated documentation health report update. Please review and merge." diff --git a/.github/workflows/version-check.yaml b/.github/workflows/version-check.yaml new file mode 100644 index 000000000..46bfff0d3 --- /dev/null +++ b/.github/workflows/version-check.yaml @@ -0,0 +1,50 @@ +name: Generate Version Report + +on: + pull_request: + types: [opened, synchronize] + branches: + - main + workflow_dispatch: + +jobs: + version-check: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Generate version report + run: python scripts/generate_version_report.py + + - name: Check for changes + id: git_status + run: | + if git diff --quiet -- docs_health_report.md; then + echo "No changes to report." + echo "changed=false" >> $GITHUB_OUTPUT + else + echo "Version report has changed." + echo "changed=true" >> $GITHUB_OUTPUT + fi + + - name: Commit and push changes + if: steps.git_status.outputs.changed == 'true' + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add docs_health_report.md + git commit -m "docs: Update version report" + git push diff --git a/docs/agents/index.md b/docs/agents/index.md index c09ec727e..4732e4c3c 100644 --- a/docs/agents/index.md +++ b/docs/agents/index.md @@ -1,3 +1,7 @@ +--- +version: 1.0.0 +--- + # Agents In the Agent Development Kit (ADK), an **Agent** is a self-contained execution unit designed to act autonomously to achieve specific goals. Agents can perform tasks, interact with users, utilize external tools, and coordinate with other agents. diff --git a/docs_health_report.md b/docs_health_report.md new file mode 100644 index 000000000..96728b05c --- /dev/null +++ b/docs_health_report.md @@ -0,0 +1,112 @@ + +# Sample Documentation Health Report + +**Summary:** **85.7%** of documentation pages were updated in the last 4 weeks. A total of **3** page(s) are considered stale (older than 90 days). + +## Detailed Health by Section + +### Root - ✅ Healthy +All 2 page(s) in this section are up-to-date. + +### agents - ⚠️ Needs Review +2 of 5 page(s) in this section are stale: + +- **docs/agents/custom-agents.md**: Last updated 215 days ago +- **docs/agents/multi-agents.md**: Last updated 198 days ago + +### api-reference - ✅ Healthy +All 3 page(s) in this section are up-to-date. + +### get-started - ⚠️ Needs Review +1 of 4 page(s) in this section are stale: + +- **docs/get-started/quickstart.md**: Last updated 301 days ago + +### tools - ✅ Healthy +All 10 page(s) in this section are up-to-date. + + + + +# Documentation Version Report + +This report provides a summary of the versions of the documentation pages. + +## Version 1.0.0 + +Found 1 pages with this version: + +- [docs/agents/index.md](agents/index.html) + +## Pages without Version Information + +Found 66 pages without version metadata: + +- [docs/index.md](index.html) +- [docs/community.md](community.html) +- [docs/contributing-guide.md](contributing-guide.html) +- [docs/mcp/index.md](mcp/index.html) +- [docs/api-reference/index.md](api-reference/index.html) +- [docs/api-reference/java/legal/jquery.md](api-reference/java/legal/jquery.html) +- [docs/api-reference/java/legal/dejavufonts.md](api-reference/java/legal/dejavufonts.html) +- [docs/api-reference/java/legal/jqueryUI.md](api-reference/java/legal/jqueryUI.html) +- [docs/runtime/index.md](runtime/index.html) +- [docs/runtime/runconfig.md](runtime/runconfig.html) +- [docs/safety/index.md](safety/index.html) +- [docs/evaluate/index.md](evaluate/index.html) +- [docs/deploy/agent-engine.md](deploy/agent-engine.html) +- [docs/deploy/index.md](deploy/index.html) +- [docs/deploy/gke.md](deploy/gke.html) +- [docs/deploy/cloud-run.md](deploy/cloud-run.html) +- [docs/grounding/vertex_ai_search_grounding.md](grounding/vertex_ai_search_grounding.html) +- [docs/grounding/google_search_grounding.md](grounding/google_search_grounding.html) +- [docs/artifacts/index.md](artifacts/index.html) +- [docs/get-started/index.md](get-started/index.html) +- [docs/get-started/installation.md](get-started/installation.html) +- [docs/get-started/about.md](get-started/about.html) +- [docs/get-started/testing.md](get-started/testing.html) +- [docs/get-started/quickstart.md](get-started/quickstart.html) +- [docs/get-started/streaming/index.md](get-started/streaming/index.html) +- [docs/get-started/streaming/quickstart-streaming-java.md](get-started/streaming/quickstart-streaming-java.html) +- [docs/get-started/streaming/quickstart-streaming.md](get-started/streaming/quickstart-streaming.html) +- [docs/streaming/index.md](streaming/index.html) +- [docs/streaming/streaming-tools.md](streaming/streaming-tools.html) +- [docs/streaming/custom-streaming.md](streaming/custom-streaming.html) +- [docs/streaming/custom-streaming-ws.md](streaming/custom-streaming-ws.html) +- [docs/streaming/configuration.md](streaming/configuration.html) +- [docs/streaming/dev-guide/part1.md](streaming/dev-guide/part1.html) +- [docs/tutorials/index.md](tutorials/index.html) +- [docs/tutorials/agent-team.md](tutorials/agent-team.html) +- [docs/observability/weave.md](observability/weave.html) +- [docs/observability/agentops.md](observability/agentops.html) +- [docs/observability/arize-ax.md](observability/arize-ax.html) +- [docs/observability/phoenix.md](observability/phoenix.html) +- [docs/observability/logging.md](observability/logging.html) +- [docs/tools/function-tools.md](tools/function-tools.html) +- [docs/tools/index.md](tools/index.html) +- [docs/tools/third-party-tools.md](tools/third-party-tools.html) +- [docs/tools/google-cloud-tools.md](tools/google-cloud-tools.html) +- [docs/tools/built-in-tools.md](tools/built-in-tools.html) +- [docs/tools/openapi-tools.md](tools/openapi-tools.html) +- [docs/tools/mcp-tools.md](tools/mcp-tools.html) +- [docs/tools/authentication.md](tools/authentication.html) +- [docs/agents/multi-agents.md](agents/multi-agents.html) +- [docs/agents/custom-agents.md](agents/custom-agents.html) +- [docs/agents/llm-agents.md](agents/llm-agents.html) +- [docs/agents/models.md](agents/models.html) +- [docs/agents/workflow-agents/index.md](agents/workflow-agents/index.html) +- [docs/agents/workflow-agents/sequential-agents.md](agents/workflow-agents/sequential-agents.html) +- [docs/agents/workflow-agents/parallel-agents.md](agents/workflow-agents/parallel-agents.html) +- [docs/agents/workflow-agents/loop-agents.md](agents/workflow-agents/loop-agents.html) +- [docs/context/index.md](context/index.html) +- [docs/events/index.md](events/index.html) +- [docs/callbacks/index.md](callbacks/index.html) +- [docs/callbacks/design-patterns-and-best-practices.md](callbacks/design-patterns-and-best-practices.html) +- [docs/callbacks/types-of-callbacks.md](callbacks/types-of-callbacks.html) +- [docs/sessions/index.md](sessions/index.html) +- [docs/sessions/memory.md](sessions/memory.html) +- [docs/sessions/express-mode.md](sessions/express-mode.html) +- [docs/sessions/state.md](sessions/state.html) +- [docs/sessions/session.md](sessions/session.html) + + \ No newline at end of file diff --git a/overrides/main.html b/overrides/main.html index fa266ea52..5291ae5cd 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -36,3 +36,16 @@ {% endblock %} + + +{% block content %} + {{ super() }} + + {% if page.meta.version %} +