Use `https://` where possible

This commit is contained in:
Adam Turner
2024-01-14 04:18:57 +00:00
parent 08d2a205c0
commit 23cef9b59a
53 changed files with 179 additions and 185 deletions

View File

@@ -15,10 +15,10 @@ if 'test_linkcode' in tags:
def linkcode_resolve(domain, info):
if domain == 'py':
fn = info['module'].replace('.', '/')
return "http://foobar/source/%s.py" % fn
return "https://foobar/source/%s.py" % fn
elif domain == "js":
return "http://foobar/js/" + info['fullname']
return "https://foobar/js/" + info['fullname']
elif domain in ("c", "cpp"):
return f"http://foobar/{domain}/{''.join(info['names'])}"
return f"https://foobar/{domain}/{''.join(info['names'])}"
else:
raise AssertionError()

View File

@@ -31,10 +31,10 @@ The section with a reference to [AuthorYear]_
* First footnote: [#]_
* Second footnote: [1]_
* `Sphinx <http://sphinx-doc.org/>`_
* `Sphinx <https://sphinx-doc.org/>`_
* Third footnote: [#]_
* Fourth footnote: [#named]_
* `URL including tilde <http://sphinx-doc.org/~test/>`_
* `URL including tilde <https://sphinx-doc.org/~test/>`_
* GitHub Page: `https://github.com/sphinx-doc/sphinx <https://github.com/sphinx-doc/sphinx>`_
* Mailing list: `sphinx-dev@googlegroups.com <mailto:sphinx-dev@googlegroups.com>`_
@@ -49,13 +49,13 @@ The section with a reference to [#]_
.. [#] Footnote in section
`URL in term <http://sphinx-doc.org/>`_
`URL in term <https://sphinx-doc.org/>`_
Description Description Description ...
Footnote in term [#]_
Description Description Description ...
`Term in deflist <http://sphinx-doc.org/>`_
`Term in deflist <https://sphinx-doc.org/>`_
Description2
.. [#] Footnote in term

View File

@@ -6,7 +6,7 @@ i18n with definition terms
Some term
The corresponding definition
Some *term* `with link <http://sphinx-doc.org/>`__
Some *term* `with link <https://sphinx-doc.org/>`__
The corresponding definition #2
Some **term** with : classifier1 : classifier2

View File

@@ -8,12 +8,12 @@ External link to Python_.
Internal link to `i18n with external links`_.
Inline link by `Sphinx Site <http://sphinx-doc.org>`_.
Inline link by `Sphinx Site <https://sphinx-doc.org>`_.
Unnamed link__.
.. _Python: http://python.org/index.html
.. __: http://google.com
.. _Python: https://python.org/index.html
.. __: https://google.com
link target swapped translation
@@ -21,7 +21,7 @@ link target swapped translation
link to external1_ and external2_.
link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_.
link to `Sphinx Site <https://sphinx-doc.org>`_ and `Python Site <https://python.org>`_.
.. _external1: https://www.google.com/external1
.. _external2: https://www.google.com/external2
@@ -30,6 +30,6 @@ link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.o
Multiple references in the same line
=====================================
Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
Link to `Sphinx Site <https://sphinx-doc.org>`_, `Python Site <https://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
.. __: http://google.com
.. __: https://google.com

View File

@@ -4,5 +4,5 @@ Raw
.. raw:: html
<iframe src="http://sphinx-doc.org"></iframe>
<iframe src="https://sphinx-doc.org"></iframe>

View File

@@ -6,7 +6,7 @@ Translation Tips
.. _download Sphinx: https://pypi.org/project/Sphinx/
.. _Docutils site: https://docutils.sourceforge.io/
.. _Sphinx site: http://sphinx-doc.org/
.. _Sphinx site: https://sphinx-doc.org/
A-1. Here's how you can `download Sphinx`_.

View File

@@ -10,4 +10,4 @@ i18n with refs inconsistency
.. [#] This is a auto numbered footnote.
.. [ref2] This is a citation.
.. [100] This is a numbered footnote.
.. _reference: http://www.example.com
.. _reference: https://www.example.com

View File

@@ -25,8 +25,8 @@ msgstr "SOME TERM"
msgid "The corresponding definition"
msgstr "THE CORRESPONDING DEFINITION"
msgid "Some *term* `with link <http://sphinx-doc.org/>`__"
msgstr "SOME *TERM* `WITH LINK <http://sphinx-doc.org/>`__"
msgid "Some *term* `with link <https://sphinx-doc.org/>`__"
msgstr "SOME *TERM* `WITH LINK <https://sphinx-doc.org/>`__"
msgid "The corresponding definition #2"
msgstr "THE CORRESPONDING DEFINITION #2"

View File

@@ -25,8 +25,8 @@ msgstr "EXTERNAL LINK TO Python_."
msgid "Internal link to `i18n with external links`_."
msgstr "`EXTERNAL LINKS`_ IS INTERNAL LINK."
msgid "Inline link by `Sphinx Site <http://sphinx-doc.org>`_."
msgstr "INLINE LINK BY `THE SPHINX SITE <http://sphinx-doc.org>`_."
msgid "Inline link by `Sphinx Site <https://sphinx-doc.org>`_."
msgstr "INLINE LINK BY `THE SPHINX SITE <https://sphinx-doc.org>`_."
msgid "Unnamed link__."
msgstr "UNNAMED LINK__."
@@ -37,11 +37,11 @@ msgstr "LINK TARGET SWAPPED TRANSLATION"
msgid "link to external1_ and external2_."
msgstr "LINK TO external2_ AND external1_."
msgid "link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_."
msgstr "LINK TO `THE PYTHON SITE <http://python.org>`_ AND `THE SPHINX SITE <http://sphinx-doc.org>`_."
msgid "link to `Sphinx Site <https://sphinx-doc.org>`_ and `Python Site <https://python.org>`_."
msgstr "LINK TO `THE PYTHON SITE <https://python.org>`_ AND `THE SPHINX SITE <https://sphinx-doc.org>`_."
msgid "Multiple references in the same line"
msgstr "MULTIPLE REFERENCES IN THE SAME LINE"
msgid "Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX SITE <http://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON SITE <http://python.org>`_."
msgid "Link to `Sphinx Site <https://sphinx-doc.org>`_, `Python Site <https://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX SITE <https://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON SITE <https://python.org>`_."

View File

@@ -16,6 +16,6 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "<iframe src=\"http://sphinx-doc.org\"></iframe>"
msgstr "<iframe src=\"HTTP://SPHINX-DOC.ORG\"></iframe>"
msgid "<iframe src=\"https://sphinx-doc.org\"></iframe>"
msgstr "<iframe src=\"HTTPS://SPHINX-DOC.ORG\"></iframe>"

View File

@@ -15,7 +15,7 @@ Contents:
foo
bar
http://sphinx-doc.org/
https://sphinx-doc.org/
baz
qux

View File

@@ -4,4 +4,4 @@ test-roles-download
* :download:`dummy.dat`
* :download:`another/dummy.dat`
* :download:`not_found.dat`
* :download:`Sphinx logo <http://www.sphinx-doc.org/en/master/_static/sphinx-logo.svg>`
* :download:`Sphinx logo <https://www.sphinx-doc.org/en/master/_static/sphinx-logo.svg>`

View File

@@ -114,8 +114,8 @@ latex_elements = {
coverage_c_path = ['special/*.h']
coverage_c_regexes = {'function': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
extlinks = {'issue': ('http://bugs.python.org/issue%s', 'issue %s'),
'pyurl': ('http://python.org/%s', None)}
extlinks = {'issue': ('https://bugs.python.org/issue%s', 'issue %s'),
'pyurl': ('https://python.org/%s', None)}
# modify tags from conf.py
tags.add('confpytag')

View File

@@ -28,9 +28,9 @@ Contents:
lists
otherext
http://sphinx-doc.org/
Latest reference <http://sphinx-doc.org/latest/>
Python <http://python.org/>
https://sphinx-doc.org/
Latest reference <https://sphinx-doc.org/latest/>
Python <https://python.org/>
Indices and tables
==================

View File

@@ -308,7 +308,7 @@ Reference lookup underscore: [Ref_1]_
.. seealso:: something, something else, something more
`Google <http://www.google.com>`_
`Google <https://www.google.com>`_
For everything.
.. hlist::

View File

@@ -15,7 +15,7 @@ Contents:
foo
bar
http://sphinx-doc.org/
https://sphinx-doc.org/
self
.. only:: html
@@ -44,8 +44,8 @@ This used to crash:
.. toctree::
:hidden:
Latest reference <http://sphinx-doc.org/latest/>
Python <http://python.org/>
Latest reference <https://sphinx-doc.org/latest/>
Python <https://python.org/>
Indices and tables
==================