Skip to content

Use more intersphinx references & format some links - #975

Merged
webknjaz merged 52 commits into
python:mainfrom
dukecat0:fix-broken-link
Oct 10, 2021
Merged

webknjaz merged 52 commits into
python:mainfrom
dukecat0:fix-broken-link

Conversation

@dukecat0

@dukecat0 dukecat0 commented Sep 2, 2021 •

Copy link
Copy Markdown
Contributor

No description provided.

@dukecat0
dukecat0 requested a review from webknjaz as a code owner September 2, 2021 16:12
Comment thread README.rst Resolved
Comment thread source/conf.py Resolved
Comment thread source/conf.py Resolved
Comment thread source/conf.py Resolved
Comment thread source/conf.py Resolved
Comment thread source/contribute.rst Resolved
Comment thread source/contribute.rst Resolved
Comment thread source/contribute.rst
.. __: 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/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks to the extlinks defined in conf.py, it's also possible to link GitHub via

:gh:`pypa/packaging.python.org`

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.

I can't find any :gh: in the docs, should I make all references of Github use :gh:?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you plan to change this?

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.

I prefer changing this in separate PR.

@dukecat0

dukecat0 commented Sep 2, 2021 via email

Copy link
Copy Markdown
Contributor Author

Comment thread source/discussions/wheel-vs-egg.rst Resolved
Comment thread source/glossary.rst Resolved
Comment thread source/glossary.rst Resolved

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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/>`_.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(same as above)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, consider declaring detached links and reusing them in text.

@dukecat0 dukecat0 Sep 18, 2021 •

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.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

`new name <old name_>`_

@dukecat0 dukecat0 Sep 19, 2021 •

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.

Seems that it doesn't work? I got an error from Sphinx:

'any' reference target not found:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds like you forgot a trailing underscore.

@dukecat0
dukecat0 requested a review from webknjaz September 18, 2021 08:45
@dukecat0

Copy link
Copy Markdown
Contributor Author

@webknjaz This is ready for review.

Comment thread source/key_projects.rst Outdated
============

`Docs <https://cibuildwheel.readthedocs.io/>`__ |
`Docs <https://cibuildwheel.readthedocs.io/en/stable/>`__ |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

still not fixed?


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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this available via intersphinx?

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.

No, this isn't available via intersphinx. There is no reference for it.

@dukecat0
dukecat0 requested a review from webknjaz September 19, 2021 03:26

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@webknjaz
webknjaz enabled auto-merge October 10, 2021 12:21
@webknjaz
webknjaz merged commit 3f515c4 into python:main Oct 10, 2021
@dukecat0
dukecat0 deleted the fix-broken-link branch October 10, 2021 12:23
@dukecat0 dukecat0 mentioned this pull request Oct 10, 2021
@leuasseurfarrelds247-arch

Copy link
Copy Markdown

954931a

@leuasseurfarrelds247-arch

Copy link
Copy Markdown

8d3e77f

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.

5 participants