Docs: avoid repetitions of class references in functions.rst#150891
Docs: avoid repetitions of class references in functions.rst#150891m-aciek wants to merge 2 commits into
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 |
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: