Skip to content

Conversation

@MicahGale
Copy link
Contributor

@MicahGale MicahGale commented Feb 24, 2025

Description

This PR fixes an SEO error I suspect that docs.openmc.org is having (which should be confirmed with Google search console). The error is that no pages are marked as "canonical", which is the page that a search engine will display as the default. This would prevent older versions showing up in search results instead of "stable".

This is a quick fix that just tells sphinx/rtd which URL is canonical. You can confirm this works by checking the source the RTD build which shows:

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
...
    <link rel="canonical" href="https://docs.openmc.org/en/stable/index.html" />
...

Fixes #3323.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@MicahGale MicahGale marked this pull request as ready for review February 24, 2025 18:07
Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks @MicahGale!

@paulromano paulromano enabled auto-merge (squash) February 24, 2025 18:32
@paulromano paulromano merged commit fed4b28 into openmc-dev:develop Feb 25, 2025
15 checks passed
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.

Docs lack canonical URL

2 participants