File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -193,16 +193,15 @@ the second mention is more appropriate for a link. Some units are long enough
193193to have a few repeated links. Use judgement to decide when a link will help
194194the reader.
195195
196- Do not use a link when the link would point to the current unit. It's natural
197- to use the name of a function in the documentation for the function, but a link
198- on that function name that simply reloads the section the user is already
199- reading is useless and distracting.
196+ We use a Sphinx extension to suppress links within a section to the same
197+ section. Previously, editors had to carefully use an exclamation mark in a
198+ Sphinx reference (``:func:`!map` ``) to prevent such links.
200199
201200Do not use links in section headers. They distract from the title of the
202201section. The term will be mentioned in the paragraph text and can be linked
203202from there.
204203
205- Sphinx provides ways to automatically add links to references, and a way to
204+ Sphinx automatically adds links to references, and a way to
206205suppress the link. Using roles like ``:func:`map` `` will link to the
207206documentation for ``map ``. You can suppress the link while keeping the
208207semantic presentation of the function name by adding an exclamation point
You can’t perform that action at this time.
0 commit comments