-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change color when hovering over code-formatted text (#2007)
I decided to assume that #2006 was in fact a bug, so here's a fix. If it's *not* a bug, we can easily alter this PR to keep the test and discard the CSS change. also includes a small tweak to the existing "breadcrumbs-everywhere" test: ~~putting much less in the `try` block so that it might actually fail in cases where we would want it to fail.~~ *being more explicit about what we expect to sometimes fail, by moving some code out of the `try` block and into an `else` block* closes #2006
- Loading branch information
Showing
4 changed files
with
120 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Test conf file.""" | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "PyData Tests" | ||
copyright = "2020, Pydata community" | ||
author = "Pydata community" | ||
|
||
root_doc = "index" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [] | ||
html_theme = "pydata_sphinx_theme" | ||
html_copy_source = True | ||
html_sourcelink_suffix = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Test of colors | ||
============== | ||
|
||
Some text with a `text link <https://pydata.org>`__. | ||
|
||
Heading 1 | ||
--------- | ||
|
||
Some text with a :ref:`cross reference link <a-cross-reference>` | ||
|
||
Heading 2 | ||
~~~~~~~~~ | ||
|
||
Some text with ``inline code``. | ||
|
||
|
||
.. _a-cross-reference: | ||
|
||
Heading 3 | ||
````````` | ||
|
||
Some text with a |code link|_. | ||
|
||
|
||
.. the below replacement is included to emulate what intersphinx / autodoc / numpydoc generate (links on text formatted as code), which (sadly) can't be done using nesting of standard rST markup. | ||
.. |code link| replace:: ``inline code link`` | ||
.. _code link: https://pydata.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters