diff options
Diffstat (limited to 'tests/roots/test-linkcheck')
-rw-r--r-- | tests/roots/test-linkcheck/conf.py | 4 | ||||
-rw-r--r-- | tests/roots/test-linkcheck/links.txt | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/roots/test-linkcheck/conf.py b/tests/roots/test-linkcheck/conf.py new file mode 100644 index 0000000..ac54f73 --- /dev/null +++ b/tests/roots/test-linkcheck/conf.py @@ -0,0 +1,4 @@ +root_doc = 'links' +source_suffix = '.txt' +exclude_patterns = ['_build'] +linkcheck_anchors = True diff --git a/tests/roots/test-linkcheck/links.txt b/tests/roots/test-linkcheck/links.txt new file mode 100644 index 0000000..1d24084 --- /dev/null +++ b/tests/roots/test-linkcheck/links.txt @@ -0,0 +1,22 @@ +This is from CPython documentation. + +* Also, if there is a `default namespace <https://www.w3.org/TR/2006/REC-xml-names-20060816/#defaulting>`__, that full URI gets prepended to all of the non-prefixed tags. + +* The URL having anchor: `https://www.sphinx-doc.org/en/master/usage/installation.html#overview`_ + +Some additional anchors to exercise ignore code + +* `Example Bar invalid <https://www.google.com/#!bar>`_ +* `Example Bar invalid <https://www.google.com#!bar>`_ tests that default ignore anchor of #! does not need to be prefixed with / +* `Example Bar invalid <https://www.google.com/#top>`_ +* `Example anchor invalid <http://www.sphinx-doc.org/en/master/index.html#does-not-exist>`_ +* `Complete nonsense <https://localhost:7777/doesnotexist>`_ +* `Example valid local file <conf.py>`_ +* `Example invalid local file <path/to/notfound>`_ +* https://github.com/sphinx-doc/sphinx/blob/master/sphinx/__init__.py#L2 + +.. image:: https://www.google.com/image.png +.. figure:: https://www.google.com/image2.png + +.. raw:: html + :url: https://www.sphinx-doc.org/ |