Repository navigation
Use more intersphinx references & format some links - #975
Conversation
| .. __: https://github.com/pypa/python-packaging-user-guide/ | ||
| .. __: https://github.com/pypa/python-packaging-user-guide/issues | ||
| .. __: https://github.com/pypa/python-packaging-user-guide/pulls | ||
| .. __: https://github.com/pypa/packaging.python.org/ |
There was a problem hiding this comment.
Thanks to the extlinks defined in conf.py, it's also possible to link GitHub via
:gh:`pypa/packaging.python.org`There was a problem hiding this comment.
I can't find any :gh: in the docs, should I make all references of Github use :gh:?
There was a problem hiding this comment.
It's not in the docs. The built-in extlinks Sphinx extension allows defining arbitrary simple roles. You can find the mapping with all of the project-specific definitions in conf.py.
There was a problem hiding this comment.
I think you can use it across the project but only update the links that were broken. Updating anything beyond that is out of the scope of this PR.
There was a problem hiding this comment.
I prefer changing this in separate PR.
|
I agree with you. However, linkcheck will give errors when it detected
redirect. What can we do here?
…On Fri, 3 Sep 2021, 00:14 Sviatoslav Sydorenko, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In README.rst
<#975 (comment)>
:
> @@ -7,7 +7,7 @@ The "Python Packaging User Guide" (PyPUG) aims to be the authoritative resource
how to package and install distributions in Python using current tools.
To follow the development of Python packaging, see the `Python
-Packaging Authority <https://www.pypa.io>`_.
+Packaging Authority <https://www.pypa.io/en/latest/>`_.
I don't think this needs fixing. There's a proper redirect in place.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#975 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQKKUNS6XUCBNICGACRBDK3T76PHLANCNFSM5DJPA6HA>
.
|
|
|
||
| For new projects, the recommended versioning scheme is based on `Semantic Versioning | ||
| <http://semver.org>`_, but adopts a different approach to handling pre-releases and | ||
| <https://semver.org/>`_, but adopts a different approach to handling pre-releases and |
There was a problem hiding this comment.
I think we should prefer links without a trailing slash for the site roots.
|
|
||
| Python projects adopting semantic versioning should abide by clauses 1-8 of the | ||
| `Semantic Versioning 2.0.0 specification <http://semver.org>`_. | ||
| `Semantic Versioning 2.0.0 specification <https://semver.org/>`_. |
There was a problem hiding this comment.
Also, consider declaring detached links and reusing them in text.
There was a problem hiding this comment.
However, they have different names, which one is Semantic Versioning and one is Semantic Versioning 2.0.0 specification. How can I declare these links, although they are the same?
There was a problem hiding this comment.
Seems that it doesn't work? I got an error from Sphinx:
'any' reference target not found:
There was a problem hiding this comment.
Sounds like you forgot a trailing underscore.
|
@webknjaz This is ready for review. |
| ============ | ||
|
|
||
| `Docs <https://cibuildwheel.readthedocs.io/>`__ | | ||
| `Docs <https://cibuildwheel.readthedocs.io/en/stable/>`__ | |
|
|
||
| For more information see the `User Installs | ||
| <https://pip.readthedocs.io/en/latest/user_guide.html#user-installs>`_ section | ||
| <https://pip.pypa.io/en/latest/user_guide/#user-installs>`_ section |
There was a problem hiding this comment.
Isn't this available via intersphinx?
There was a problem hiding this comment.
No, this isn't available via intersphinx. There is no reference for it.
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
webknjaz
left a comment
There was a problem hiding this comment.
I think there's no major issues with this PR anymore so I'm going to merge it now. Any other improvements may be made separately.
No description provided.