Skip to content

docs: add settings for domain migration#342

Open
elijahgreenstein wants to merge 5 commits into
canonical:mainfrom
elijahgreenstein:main
Open

docs: add settings for domain migration#342
elijahgreenstein wants to merge 5 commits into
canonical:mainfrom
elijahgreenstein:main

Conversation

@elijahgreenstein

Copy link
Copy Markdown

This PR supports the migration of MicroOVN docs from https://canonical-microovn.readthedocs-hosted.com/ to https://ubuntu.com/docs/microovn/:

  • Aligns docs/.readthedocs.yaml with the documentation team's Sphinx Stack
  • Adds Sphinx Stack settings to generate a sitemap
  • Adds settings to support Google Analytics
  • Adds JavaScript to correctly render URLs in the flyout menu (version selector) on the new docs site
  • Updates configuration settings in docs/conf.py to properly render URLs in the built documentation

Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
Sets up MicroOVN docs at `ubuntu.com/docs/microovn`.

Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
Copilot AI review requested due to automatic review settings June 25, 2026 03:48
@elijahgreenstein elijahgreenstein requested a review from a team as a code owner June 25, 2026 03:48

Copilot AI left a comment

Copy link
Copy Markdown

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/Read the Docs configuration and bundled static assets to support migrating the MicroOVN documentation from the Read the Docs hosted domain to https://ubuntu.com/docs/microovn/, including sitemap generation and cookie/analytics tooling.

Changes:

  • Adds URL/base-url configuration in docs/conf.py, enables sphinx_sitemap, and includes new static JS/CSS assets.
  • Updates RTD build configuration to support sitemap lastmod (via full git history) and to cancel PR builds when docs are unchanged.
  • Adds templates/static assets for Google Tag Manager and a cookie/tracker settings UI, plus JS to rewrite flyout links to the new domain.

Reviewed changes

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

Show a summary per file
File Description
docs/conf.py Adds base URL/version-aware settings, enables sitemap extension, and includes new JS/CSS assets.
docs/.sphinx/requirements.txt Adds sphinx-sitemap dependency for sitemap generation.
docs/.sphinx/_templates/header.html Injects Google Tag Manager snippet into the docs header.
docs/.sphinx/_templates/footer.html Adds “Manage your tracker settings” trigger link to the footer.
docs/.sphinx/_static/overwrite_links.js Adds runtime rewriting of RTD flyout/menu links from old domain to new domain.
docs/.sphinx/_static/cookie-banner.css Adds cookie banner / tracker settings modal styling.
docs/.sphinx/_static/bundle.js Adds bundled/minified cookie/tracker settings JS logic and strings.
docs/.readthedocs.yaml Adds post-checkout job steps (unshallow + conditional PR build cancellation).
Files not reviewed (1)
  • docs/.sphinx/_static/bundle.js: Generated file

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

Comment thread docs/.readthedocs.yaml
Comment thread docs/.readthedocs.yaml
Comment thread docs/.sphinx/_static/overwrite_links.js
Comment thread docs/.sphinx/_templates/footer.html
Comment thread docs/conf.py
Comment thread docs/.sphinx/_static/bundle.js
Comment thread docs/.sphinx/_static/cookie-banner.css
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