Skip to content

Updated rtd links (latest -> main)#416

Merged
prabhuramachandran merged 2 commits into
pypr:mainfrom
nauaneed:fix-docs
May 31, 2025
Merged

Updated rtd links (latest -> main)#416
prabhuramachandran merged 2 commits into
pypr:mainfrom
nauaneed:fix-docs

Conversation

@nauaneed
Copy link
Copy Markdown
Contributor

No description provided.

@nauaneed nauaneed requested a review from Copilot May 30, 2025 09:25
Copy link
Copy Markdown

Copilot AI left a comment

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 hard-coded Read the Docs links from the “latest” version to the “main” branch across documentation.

  • Switch compyle installation link in installation.rst to point at the main version.
  • Update badge image and target URLs in README.rst to use main instead of latest.

Reviewed Changes

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

File Description
docs/source/installation.rst Updated compyle config URL to reference en/main.
README.rst Changed documentation badge and target to version=main.

`LLVM <https://formulae.brew.sh/formula/llvm>`_ can also be installed using
brew_, likewise. Once this is done, you can use the following
`compyle config <https://compyle.readthedocs.io/en/latest/installation.html#config>`_::
`compyle config <https://compyle.readthedocs.io/en/main/installation.html#config>`_::
Copy link

Copilot AI May 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using a Sphinx variable or substitution for the RTD version in this URL to avoid having to update hard-coded links whenever the default branch changes.

Copilot uses AI. Check for mistakes.
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.

How?

Comment thread README.rst
Comment on lines +24 to +25
.. |Documentation Status| image:: https://readthedocs.org/projects/pysph/badge/?version=main
:target: https://pysph.readthedocs.io/en/main/?badge=main
Copy link

Copilot AI May 30, 2025

Choose a reason for hiding this comment

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

[nitpick] You could abstract the RTD version into a variable or use a Sphinx substitution to keep badge URLs in sync and minimize future version updates.

Suggested change
.. |Documentation Status| image:: https://readthedocs.org/projects/pysph/badge/?version=main
:target: https://pysph.readthedocs.io/en/main/?badge=main
.. |Documentation Status| image:: https://readthedocs.org/projects/pysph/badge/?version=|rtd_version|
:target: https://pysph.readthedocs.io/en/|rtd_version|/?badge=|rtd_version|

Copilot uses AI. Check for mistakes.
@prabhuramachandran prabhuramachandran merged commit 07761bf into pypr:main May 31, 2025
7 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.

3 participants