Skip to content

docs: document the API reference docs pipeline in DEVELOPER.md#697

Merged
twishabansal merged 19 commits into
mainfrom
docs/api-ref-developer-guide
Jun 25, 2026
Merged

docs: document the API reference docs pipeline in DEVELOPER.md#697
twishabansal merged 19 commits into
mainfrom
docs/api-ref-developer-guide

Conversation

@twishabansal

@twishabansal twishabansal commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an API Reference Documentation section to the existing root DEVELOPER.md, documenting the docs feature (pydoc-markdown → Hugo/Docsy → gh-pages). Mirrors JS #388, adapted for Python.

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.
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.
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 backfill build.
Add an API Reference Documentation section to the existing DEVELOPER.md
covering the deploy workflow, version picker, backfill workflow (with preview),
and local builds.
@twishabansal twishabansal marked this pull request as ready for review June 22, 2026 11:24
@twishabansal twishabansal requested a review from a team as a code owner June 22, 2026 11:24
@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
@twishabansal twishabansal marked this pull request as draft June 22, 2026 11:25
@twishabansal twishabansal marked this pull request as ready for review June 22, 2026 11:26
The API reference's documented surface is the curated MODULES in generate-api-docs.sh; explain that single source of truth and the steps (script case arm, api-docs.yml tag router + default build list, hugo.toml version picker) to onboard a new package.
Base automatically changed from docs/api-ref-backfill to main June 25, 2026 09:36
@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 merged commit 1e2a096 into main Jun 25, 2026
30 checks passed
@twishabansal twishabansal deleted the docs/api-ref-developer-guide branch June 25, 2026 10:03
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