Skip to content

Link Colab notebooks to the documentation version - #5663

Open
henrivalle wants to merge 1 commit into
google:mainfrom
henrivalle:docs/use-versioned-colab-notebooks
Open

henrivalle wants to merge 1 commit into
google:mainfrom
henrivalle:docs/use-versioned-colab-notebooks

Conversation

@henrivalle

Copy link
Copy Markdown

Related to #5100.

The Colab launch button can open the development notebook when the user is reading a released version of the documentation. Set the Sphinx Book Theme repository revision from Read the Docs' checked-out Git ref for tag and branch builds. Keep main as the default for local builds and pull request previews, where Read the Docs supplies a PR number rather than a branch.

Verification

  • Rendered the Module and Pytree notebook with Sphinx and checked the generated Colab links for local, release-tag, branch, and pull request preview builds.
  • Confirmed both the Linen and NNX configurations select the expected revision.

Read the Docs environment variable reference and Sphinx Book Theme launch options.

OpenAI Codex assisted with the patch and validation.

@google-cla

google-cla Bot commented Nov 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This branch has not been deployed

No deployments
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.

1 participant