Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use our docs url for the ogp:url properties Sphinx generates #1411

Conversation

james-garner-canonical
Copy link
Contributor

Currently we use the Open Graph configuration from the canonical-starter-pack without any modifications, but we should use the hosting url for our docs instead of theirs.

The Open Graph configuration is used by Sphinx to generate the Open Graph Protocol (ogp) properties in our docs pages. This information is used when generating link previews, for example when linking to our docs in Mattermost messages:
image

The ogp:url properties are incorrect, e.g.

<meta property="og:url" content="https://canonical-starter-pack.readthedocs-hosted.com/state-transition-testing.html" />

In practice these urls seem to be ignored in link previews, but let's fix them anyway since it's simple.

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Thanks!

@james-garner-canonical james-garner-canonical merged commit 9d84f75 into canonical:main Oct 7, 2024
30 checks passed
tonyandrewmeyer pushed a commit to tonyandrewmeyer/operator that referenced this pull request Oct 9, 2024
…anonical#1411)

Currently we use the Open Graph configuration
from the canonical-starter-pack without any modifications, but we should
use the hosting url for our docs instead of theirs.

The Open Graph configuration is used by Sphinx to generate the Open
Graph Protocol (ogp) properties in our docs pages. This information is
used when generating link previews, for example when linking to our docs
in Mattermost messages.

In practice these `ogp:url`s seem to be ignored in link previews, but let's
fix them anyway since it's simple.
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.

3 participants