Docs: avoid repetitions of class references in functions.rst#150891
Conversation
With Linklint we link only first reference in a paragraph. Explicitly leave only reference which is expected to link. In dict, frozendict, frozenset and set reference docs.
Documentation build overview
7 files changed ·
|
|
As I read these paragraphs, I wonder what value these sentences actually add:
About linklint: it's an interesting idea to preserve links in "See ..." sentences. I wonder if it is reliable enough, and if there are other sentence structures to consider. Also, what about translations? |
Good point: "See x and y for documentation on x and y" is rather pointless! Let's delete them and just have the previous mentions link as usual. Something like this? Create a new dictionary. The :class:`dict` object is the dictionary class.
- See :class:`dict` and :ref:`typesmapping` for documentation about this class.
+ See also :ref:`typesmapping` for documentation about this class. |
…ons, revert unreferencing classes names
|
Thank you for the review! I've simplified all paragraphs.
We would need to maintain also translations' sentence structures to keep this behaviour for localised docs. In Polish the one-to-one translation would be |
|
Thanks! |
|
Sorry, @m-aciek and @hugovk, I could not cleanly backport this to |
|
GH-151405 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @m-aciek and @hugovk, I could not cleanly backport this to |
|
GH-151406 is a backport of this pull request to the 3.14 branch. |
|
GH-151407 is a backport of this pull request to the 3.13 branch. |
With Linklint we link only first reference in a paragraph. In effect references intended to link aren't links.
Simplify descriptions to avoid repetitions and this issue. In dict, frozendict, frozenset and set reference docs.
Before:
After:
Changelog: