Skip to content

docs: move docs to ubuntu.com/docs/pebble#882

Open
dwilding wants to merge 5 commits into
masterfrom
dotcom-migration
Open

docs: move docs to ubuntu.com/docs/pebble#882
dwilding wants to merge 5 commits into
masterfrom
dotcom-migration

Conversation

@dwilding

@dwilding dwilding commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This PR updates our doc config so that all URLs use ubuntu.com/docs/pebble instead of the backend URL from Read the Docs. Our docs are still hosted on Read the Docs, but we'll be proxying them under ubuntu.com/docs.

Preview docs built from this branch. After this PR merges, I'll switch those docs to build from master and redirect the existing docs.

Main changes

  • Updated Pebble doc URLs in docs/conf.py.
  • Updated hardcoded URLs for Pebble.
  • Added a script docs/_static/overwrite_links.js, which is not strictly needed at the moment. This script makes sure that the version switcher from Read the Docs has correct URLs - but we don't use the version switcher. I'm including the script because it's a standard part of the new docs setup at Canonical.

Extra changes

  • Updated the intersphinx URL for Ops. To account for operator#2545.

Future work (not in this PR)

  • Update URLs for other docs - Juju and Rockcraft.

Comment thread docs/conf.py

# sphinx-sitemap uses html_baseurl to generate the full URL for each page:
sitemap_url_scheme = "{link}"
sitemap_filename = "doc-sitemap.xml"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need to customise the sitemap filename to prevent Read the Docs from deleting it (🤷‍♂️). I'll be updating the central ubuntu.com config to locate our sitemap.

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