From 6c5f77c68988a45cced493d18545fcdd4c3348e0 Mon Sep 17 00:00:00 2001 From: igo95862 Date: Sun, 16 May 2021 15:53:58 +0300 Subject: [PATCH] doc: Upgrade pygments.org links to HTTPS --- EXAMPLES | 2 +- doc/_templates/index.html | 2 +- doc/usage/restructuredtext/directives.rst | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EXAMPLES b/EXAMPLES index 598f41b4f3..416de71671 100644 --- a/EXAMPLES +++ b/EXAMPLES @@ -356,7 +356,7 @@ Documentation using a custom theme or integrated in a website * `Open vSwitch `__ * `PlatformIO `__ * `PyEphem `__ -* `Pygments `__ +* `Pygments `__ * `Plone User Manual (German) `__ * `PSI4 `__ * `PyMOTW `__ diff --git a/doc/_templates/index.html b/doc/_templates/index.html index 4b2f13a426..a37579c292 100644 --- a/doc/_templates/index.html +++ b/doc/_templates/index.html @@ -29,7 +29,7 @@
  • {%trans%}Automatic indices: general index as well as a language-specific module indices{%endtrans%}
  • {%trans%}Code handling: automatic highlighting using the Pygments highlighter{%endtrans%}
  • + href="https://pygments.org">Pygments highlighter{%endtrans%}
  • {%trans path=pathto('ext/builtins')%}Extensions: automatic testing of code snippets, inclusion of docstrings from Python modules (API docs), and more{%endtrans%}
  • diff --git a/doc/usage/restructuredtext/directives.rst b/doc/usage/restructuredtext/directives.rst index 995804e370..24f3af9d8b 100644 --- a/doc/usage/restructuredtext/directives.rst +++ b/doc/usage/restructuredtext/directives.rst @@ -424,7 +424,7 @@ code blocks using multiple varied syntaxes. Finally, the in your documentation. In all cases, Syntax highlighting is provided by `Pygments -`_. When using literal blocks, this is configured using +`_. When using literal blocks, this is configured using any :rst:dir:`highlight` directives in the source file. When a ``highlight`` directive is encountered, it is used until the next ``highlight`` directive is encountered. If there is no ``highlight`` directive in the file, the global @@ -452,7 +452,7 @@ If highlighting with the selected language fails (i.e. Pygments emits an want to ensure consistent highlighting, you should fix your version of Pygments. -__ http://pygments.org/docs/lexers +__ https://pygments.org/docs/lexers .. rst:directive:: .. highlight:: language