Skip to content

Docs markup fixes - #10913

Merged
Carreau merged 2 commits into
ipython:masterfrom
douglatornell:docs-markup-fixes
Nov 21, 2017
Merged

Carreau merged 2 commits into
ipython:masterfrom
douglatornell:docs-markup-fixes

Conversation

@douglatornell

Copy link
Copy Markdown
Contributor

@jzf2101 These changes arise out of #10895. They fix 2 of the Sphinx build warnings.

Without the added linebreak the line of ----- is treated as heading
markup for the line below, and it is broken markup because it is an
overline without an underline.
With the added linebreak the line of ------ is rendered as an hr element
and the line below is also rendered.
…-ref.

Before this change the Sphinx tried to produce cross-reference links for
the returned (stdout, stderr) tuple.
The docs build produced a warning because there are 2 possible cross-ref
objects for `stdout`,
one in `IPython.testing.iptestcontroller.TestController`,
the other in `IPython.utils.capture.CapturedIO`.
Neither of those is correct in the context of the `ipexec()` function.
Changing literal ``(stdout, stderr)`` avoids the warning by preventing
the attempt to produce cross-references.
@Carreau Carreau added this to the 6.3 milestone Nov 21, 2017
@Carreau
Carreau merged commit 08024d6 into ipython:master Nov 21, 2017
@Carreau

Carreau commented Nov 21, 2017

Copy link
Copy Markdown
Member

Thanks for diving into this !

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.

2 participants