Skip to content

docs: migrate docs hosting site to ubuntu.com/docs (Infra)#2718

Open
tang-mm wants to merge 6 commits into
mainfrom
docs-url-migration
Open

docs: migrate docs hosting site to ubuntu.com/docs (Infra)#2718
tang-mm wants to merge 6 commits into
mainfrom
docs-url-migration

Conversation

@tang-mm

@tang-mm tang-mm commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This pull request updates the Checkbox documentation configuration and assets to align with its new hosting location at ubuntu.com/docs/checkbox.

Description

Changes following the migration guide at https://github.com/canonical/RTD-Proxy/blob/main/docs/how-to/migrate.rst

  • Add Google Analytics tags, using upstream templates from starter-pack
  • Updated sitemap URL and product slug in docs/conf.py to use the new ubuntu.com/docs/checkbox domain,
  • Added a templated JavaScript file overwrite_links.js to support dynamically generated links in the ReadTheDocs flyout (version indicator in the bottom-right corner) to point to the new domain. This does not affect the current domain.

Resolved issues

CDOC-370

Documentation

N/A (refer to the original migration guide)

Tests

Manual validation on staging at staging.ubuntu.com/docs/checkbox (requires VPN)

Related proxy configuration in Launchpad:

Copilot AI review requested due to automatic review settings July 22, 2026 04:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Sphinx documentation configuration and theme assets to support hosting Checkbox docs at ubuntu.com/docs/checkbox, including new Canonical header/footer templates and a small JS helper for ReadTheDocs flyout link rewriting.

Changes:

  • Update docs/conf.py for new ubuntu.com/docs/checkbox base URLs, slug, templates, and JS inclusion.
  • Add Canonical header/footer HTML templates and a JS file to rewrite RTD flyout links to the new domain.
  • Update the homepage related-links metadata to point to the project repository.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/index.rst Updates :relatedlinks: entry shown on the docs home page
docs/conf.py Adjusts docs site URL/base URL, enables templates, adds JS, and sets ubuntu.com slug
docs/.sphinx/_templates/header.html Adds Canonical navigation header + GTM snippet
docs/.sphinx/_templates/footer.html Adds Canonical footer structure + cookie/tracker settings link
docs/.sphinx/_static/overwrite_links.js Rewrites RTD-hosted links in the flyout to the ubuntu.com/docs domain

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/index.rst
Comment thread docs/conf.py
Comment thread docs/conf.py
Comment thread docs/.sphinx/_templates/header.html
Comment thread docs/.sphinx/_templates/footer.html
Comment thread docs/conf.py Outdated
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