Skip to content

docs: add api-docs GitHub workflow for Python API reference#690

Merged
twishabansal merged 13 commits into
mainfrom
docs/api-ref-workflow
Jun 25, 2026
Merged

docs: add api-docs GitHub workflow for Python API reference#690
twishabansal merged 13 commits into
mainfrom
docs/api-ref-workflow

Conversation

@twishabansal

@twishabansal twishabansal commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Third PR in the API reference pipeline. Adds .github/workflows/api-docs.yml, which runs the PR #689 scripts and deploys to gh-pages, mirroring the Go SDK's api-docs.yml.

Commits split copy from edit: commit 1 copies the Go workflow verbatim. Follow-up commits make edits.

Tested in #691

Copies the Hugo/Docsy site scaffold from the JS SDK repo
(googleapis/mcp-toolbox-sdk-js, docs-site/) byte-for-byte. No Python-specific
changes in this commit — retargeting is done in the follow-up commit so the
diff against the known-good JS pipeline is reviewable in isolation.

Files copied unchanged: archetypes, assets (scss + icon), layouts
(home.latest, home.releases, head-end hook, navbar-version-selector,
sidebar-tree), static (w3.js + favicons), go.mod, go.sum, hugo.toml,
package.json (postcss deps).
Applies the Python-specific edits on top of the verbatim JS copy. Every change
is listed so it can be diffed against the JS pipeline:

- hugo.toml: title -> MCP Toolbox Python API; [params.versions] rewritten to the
  four Python packages (core, adk, langchain, llamaindex), dev only; GitHub menu
  link -> the Python repo; [markup.goldmark.renderHooks.link] useEmbedded =
  fallback kept as a safety net for any relative .md links from pydoc-markdown's
  crossref processor.
- go.mod: module path -> .../mcp-toolbox-sdk-python/docs-site (docsy still pinned
  v0.14.3, matching Go/JS).
- sidebar-tree.html: cross-package links core/adk -> core/adk/langchain/llamaindex.
- .gitignore: ignore Hugo build output (public/, resources/, .hugo_build.lock,
  node_modules/) and docs-site/package-lock.json.

Verified: hugo v0.152.2 extended builds the scaffold clean (Docsy main.css
compiles via PostCSS/autoprefixer); only the harmless no-layout-for-json home
warning remains.
@twishabansal twishabansal marked this pull request as ready for review June 22, 2026 09:38
@twishabansal twishabansal requested a review from a team as a code owner June 22, 2026 09:38
@twishabansal twishabansal added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 22, 2026
The PostCSS toolchain (autoprefixer/postcss/postcss-cli) was installed with
npm install, which re-resolves the latest matching semver on every run. A
broken upstream patch (e.g. browserslist 4.28.3) could then fail both the
deploy and backfill workflows nondeterministically. Commit the lockfile so
npm ci can install the exact, vetted versions instead.
Use npm ci against the committed docs-site lockfile instead of npm install,
which re-resolved latest semver each run and could pull a broken upstream
patch into the deploy build.
Base automatically changed from docs/api-ref-gen-scripts to main June 25, 2026 09:14
@twishabansal twishabansal removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 25, 2026
@twishabansal twishabansal enabled auto-merge (squash) June 25, 2026 09:15
@twishabansal twishabansal merged commit cfe81ad into main Jun 25, 2026
30 checks passed
@twishabansal twishabansal deleted the docs/api-ref-workflow branch June 25, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants