summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-linkcheck
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:31:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:31:33 +0000
commite863fd965dd6253243c3342bd6f0adc4fc8aec4d (patch)
treea4c1b6491a82593950043c3f8b2530e80664d768 /tests/roots/test-linkcheck
parentInitial commit. (diff)
downloadsphinx-upstream.tar.xz
sphinx-upstream.zip
Adding upstream version 5.3.0.upstream/5.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/roots/test-linkcheck')
-rw-r--r--tests/roots/test-linkcheck/conf.py4
-rw-r--r--tests/roots/test-linkcheck/links.txt22
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/