Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a7d22fa
docs: Add User Guide section
dishaprakash Mar 5, 2026
a9c315c
rebase
dishaprakash Mar 5, 2026
50e37bb
docs: Add reference and other docs
dishaprakash Mar 5, 2026
43f2b69
Update docs/en/reference/faq.md
dishaprakash Mar 5, 2026
8d97bab
chore: Add workflows to deploy to cloudflare
dishaprakash Mar 6, 2026
8f0ea15
use sticky comment
dishaprakash Mar 6, 2026
6e1c0c3
remove prs from pull_request_target and add second hugo config
dishaprakash Mar 7, 2026
a2eb7be
add header
dishaprakash Mar 7, 2026
8a58ffa
docs: implement deep re-routing, pagination, and migration banner
dishaprakash Mar 7, 2026
4a5432e
Apply suggestion from @gemini-code-assist[bot]
dishaprakash Mar 7, 2026
d45d9b6
gemini review changes
dishaprakash Mar 7, 2026
80822be
minor fix
dishaprakash Mar 7, 2026
c654670
docs: Optimize llms.txt and llms-full.txt
dishaprakash Mar 7, 2026
315df49
add documentation
dishaprakash Mar 8, 2026
3833b43
update integration directory structure
dishaprakash Mar 8, 2026
a48e3dd
docs: Add page standardization to external source integrations
dishaprakash Mar 8, 2026
435acc6
add documentation and ci check
dishaprakash Mar 8, 2026
40dd323
docs: Add page standardization to external tool integrations
dishaprakash Mar 8, 2026
e74b609
docs: integrate Pagefind search, Google Analytics, and feedback buttons
dishaprakash Mar 9, 2026
06ae36b
Update .hugo/layouts/partials/search-input.html
dishaprakash Mar 9, 2026
9ab6076
cleanup
dishaprakash Mar 9, 2026
922dcf4
Merge branch 'documentation-reorg' into google-analytics
dishaprakash Mar 12, 2026
9fd9356
Update lint-docs-source-page.sh
dishaprakash Mar 12, 2026
9b31a01
Update lint-docs-tool-page.sh
dishaprakash Mar 12, 2026
e9d01e2
Update DEVELOPER.md
dishaprakash Mar 12, 2026
42e31a3
Update deploy_previous_version_docs.yaml
dishaprakash Mar 12, 2026
1912d38
Update deploy_previous_version_docs_to_cf.yaml
dishaprakash Mar 12, 2026
f848c58
Update deploy_versioned_docs.yaml
dishaprakash Mar 12, 2026
cd80e83
Update deploy_versioned_docs_to_cf.yaml
dishaprakash Mar 12, 2026
fca742d
Update docs_preview_deploy_cf.yaml
dishaprakash Mar 12, 2026
38fb103
Update _index.md
dishaprakash Mar 12, 2026
f114119
Update cockroachdb-list-schemas.md
dishaprakash Mar 12, 2026
e218290
Update lint-docs-tool-page.sh
dishaprakash Mar 12, 2026
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
2 changes: 1 addition & 1 deletion .ci/lint-docs-source-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ if has_errors:
sys.exit(1)
print("Success: Source pages validated.")
sys.exit(0)
EOF
EOF
2 changes: 1 addition & 1 deletion .ci/lint-docs-tool-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ if has_errors:
sys.exit(1)
else:
print("Success: All Tool pages passed structure validation.")
EOF
EOF
3 changes: 3 additions & 0 deletions .github/workflows/deploy_dev_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
HUGO_BASEURL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/dev
HUGO_RELATIVEURLS: false

- name: Build Pagefind Search Index
run: npx pagefind --site public

- name: Create Staging Directory
run: |
mkdir staging
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/deploy_previous_version_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ github.event.inputs.version_tag }}

- name: Build Pagefind Index (Archived Version)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand All @@ -95,6 +99,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ github.event.inputs.version_tag }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to root
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand All @@ -103,4 +111,4 @@ jobs:
publish_branch: versioned-gh-pages
keep_files: true
allow_empty_commit: true
commit_message: "deploy: docs to root for ${{ github.event.inputs.version_tag }}"
commit_message: "deploy: docs to root for ${{ github.event.inputs.version_tag }}"
8 changes: 8 additions & 0 deletions .github/workflows/deploy_previous_version_docs_to_cf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ github.event.inputs.version_tag }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to cloudflare-pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand All @@ -95,6 +99,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ github.event.inputs.version_tag }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to root
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy_versioned_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Build Pagefind Index (Versioned)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand All @@ -84,6 +88,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to root
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy_versioned_docs_to_cf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand All @@ -84,6 +88,10 @@ jobs:
HUGO_RELATIVEURLS: false
HUGO_PARAMS_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Build Pagefind Index (Root)
run: npx pagefind --site public
working-directory: .hugo

- name: Deploy to root
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs_preview_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: "docs"
permissions:
contents: write
pull-requests: write

# This Workflow depends on 'github.event.number',
# not compatible with branch or manual triggers.
on:
Expand Down Expand Up @@ -81,6 +81,9 @@ jobs:
HUGO_ENVIRONMENT: preview
HUGO_RELATIVEURLS: false

- name: Build Pagefind Search Index
run: npx pagefind --site public

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs_preview_deploy_cf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
HUGO_ENVIRONMENT: preview
HUGO_RELATIVEURLS: false

- name: Build Pagefind Search Index
run: npx pagefind --site public

- name: Deploy to Cloudflare Pages via Wrangler
id: cf_deploy
uses: cloudflare/wrangler-action@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ node_modules
# hugo
.hugo/public/
.hugo/resources/_gen
.hugo/static/pagefind/
.hugo_build.lock

# coverage
Expand Down
15 changes: 13 additions & 2 deletions .hugo/hugo.cloudflare.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,25 @@ ignoreFiles = ["quickstart/shared", "quickstart/python", "quickstart/js", "quick
github_repo = "https://github.com/googleapis/genai-toolbox"
github_project_repo = "https://github.com/googleapis/genai-toolbox"
github_subdir = "docs"
offlineSearch = true
offlineSearch = false
version_menu = "Releases"
disableMigrationBanner = true
releases_url = "/releases.releases"
global_logo_url = "/"
pagefind = true
version = "Dev"
[params.ui]
ul_show = 100
showLightDarkModeMenu = true
breadcrumb_disable = true
breadcrumb_disable = false
sidebar_menu_foldable = true
sidebar_menu_compact = false
[params.ui.feedback]
enable = true
yes = 'Glad to hear it! Please <a href="https://github.com/googleapis/genai-toolbox/issues/new">tell us how we can improve</a>.'
no = 'Sorry to hear that. Please <a href="https://github.com/googleapis/genai-toolbox/issues/new">tell us how we can improve</a>.'
[params.ui.readingtime]
enable = true

[[params.versions]]
version = "Dev"
Expand Down Expand Up @@ -151,3 +158,7 @@ ignoreFiles = ["quickstart/shared", "quickstart/python", "quickstart/js", "quick

[outputs]
home = ["HTML", "RSS", "LLMS", "LLMS-FULL", "releases"]

[services]
[services.googleAnalytics]
id = "G-GLSV9KD8BF"
16 changes: 14 additions & 2 deletions .hugo/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,24 @@ ignoreFiles = ["quickstart/shared", "quickstart/python", "quickstart/js", "quick
github_repo = "https://github.com/googleapis/genai-toolbox"
github_project_repo = "https://github.com/googleapis/genai-toolbox"
github_subdir = "docs"
offlineSearch = true
offlineSearch = false
version_menu = "Releases"
releases_url = "/genai-toolbox/releases.releases"
global_logo_url = "/genai-toolbox/"
version = "Dev"
pagefind = true
[params.ui]
ul_show = 100
showLightDarkModeMenu = true
breadcrumb_disable = true
breadcrumb_disable = false
sidebar_menu_foldable = true
sidebar_menu_compact = false
[params.ui.feedback]
enable = true
yes = 'Glad to hear it! Please <a href="https://github.com/googleapis/genai-toolbox/issues/new">tell us how we can improve</a>.'
no = 'Sorry to hear that. Please <a href="https://github.com/googleapis/genai-toolbox/issues/new">tell us how we can improve</a>.'
[params.ui.readingtime]
enable = true

[[params.versions]]
version = "Dev"
Expand Down Expand Up @@ -173,3 +180,8 @@ ignoreFiles = ["quickstart/shared", "quickstart/python", "quickstart/js", "quick

[outputs]
home = ["HTML", "RSS", "LLMS", "LLMS-FULL", "releases"]

# Google Analytics ID
[services]
[services.googleAnalytics]
id = "G-GLSV9KD8BF"
6 changes: 4 additions & 2 deletions .hugo/layouts/docs/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ partial "pager.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
<hr class="mt-5 mb-4">
<div class="mt-4">
{{ partial "feedback.html" . }}
<br />
{{ end }}
{{ if (.Site.Params.DisqusShortname) }}
Expand Down
6 changes: 4 additions & 2 deletions .hugo/layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ partial "pager.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
<hr class="mt-5 mb-4">
<div class="mt-4">
{{ partial "feedback.html" . }}
<br />
{{ end }}
{{ if (.Site.Params.DisqusShortname) }}
Expand Down
Loading
Loading