From 9486f826b9729c7d3e94ddb69d6869598dfb0419 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Wed, 18 Dec 2019 15:45:47 -0600 Subject: Update many links to use HTTPS and skip redirects --- CHANGES | 2 +- doc/docs/integrate.rst | 4 ++-- doc/docs/java.rst | 8 ++++---- doc/docs/lexerdevelopment.rst | 2 +- doc/docs/moinmoin.rst | 2 +- doc/docs/plugins.rst | 4 ++-- doc/docs/rstdirective.rst | 2 +- doc/faq.rst | 34 +++++++++++++++++----------------- doc/languages.rst | 38 +++++++++++++++++++------------------- external/rst-directive.py | 4 ++-- pygments/formatters/html.py | 4 ++-- setup.py | 2 +- 12 files changed, 53 insertions(+), 53 deletions(-) diff --git a/CHANGES b/CHANGES index 6ac44302..049fe4c0 100644 --- a/CHANGES +++ b/CHANGES @@ -808,7 +808,7 @@ Version 1.4 - Support ``application/javascript`` as a JavaScript mime type (#504). -- Support `Offload `_ C++ Extensions as +- Support `Offload `_ C++ Extensions as keywords in the C++ lexer (#484). - Escape more characters in LaTeX output (#505). diff --git a/doc/docs/integrate.rst b/doc/docs/integrate.rst index 77daaa43..5f266ac5 100644 --- a/doc/docs/integrate.rst +++ b/doc/docs/integrate.rst @@ -12,7 +12,7 @@ that uses Pygments to render source code in :file:`external/markdown-processor.py`. You can copy and adapt it to your liking. -.. _Markdown: http://www.freewisdom.org/projects/python-markdown/ +.. _Markdown: https://pypi.org/project/Markdown/ TextMate -------- @@ -20,7 +20,7 @@ TextMate Antonio Cangiano has created a Pygments bundle for TextMate that allows to colorize code via a simple menu option. It can be found here_. -.. _here: http://antoniocangiano.com/2008/10/28/pygments-textmate-bundle/ +.. _here: https://programmingzen.com/pygments-textmate-bundle/ Bash completion --------------- diff --git a/doc/docs/java.rst b/doc/docs/java.rst index f553463c..a8a5beb3 100644 --- a/doc/docs/java.rst +++ b/doc/docs/java.rst @@ -2,18 +2,18 @@ Use Pygments in Java ===================== -Thanks to `Jython `_ it is possible to use Pygments in +Thanks to `Jython `_ it is possible to use Pygments in Java. This page is a simple tutorial to get an idea of how this works. You can -then look at the `Jython documentation `_ for more +then look at the `Jython documentation `_ for more advanced uses. Since version 1.5, Pygments is deployed on `Maven Central -`_ as a JAR, as is Jython +`_ as a JAR, as is Jython which makes it a lot easier to create a Java project. -Here is an example of a `Maven `_ ``pom.xml`` file for a +Here is an example of a `Maven `_ ``pom.xml`` file for a project running Pygments: .. sourcecode:: xml diff --git a/doc/docs/lexerdevelopment.rst b/doc/docs/lexerdevelopment.rst index 530d8c15..c776457b 100644 --- a/doc/docs/lexerdevelopment.rst +++ b/doc/docs/lexerdevelopment.rst @@ -197,7 +197,7 @@ defined, it defaults to `re.MULTILINE`. For more information about regular expression flags see the page about `regular expressions`_ in the Python documentation. -.. _regular expressions: http://docs.python.org/library/re.html#regular-expression-syntax +.. _regular expressions: https://docs.python.org/library/re.html#regular-expression-syntax Scanning multiple tokens at once diff --git a/doc/docs/moinmoin.rst b/doc/docs/moinmoin.rst index 8b2216b3..80ed25c3 100644 --- a/doc/docs/moinmoin.rst +++ b/doc/docs/moinmoin.rst @@ -36,4 +36,4 @@ If you do not want to do that and are willing to accept larger HTML output, you can set the ``INLINESTYLES`` option to True. -.. _Moin: http://moinmoin.wikiwikiweb.de/ +.. _Moin: https://moinmo.in/ diff --git a/doc/docs/plugins.rst b/doc/docs/plugins.rst index a6f8d7b0..1008013a 100644 --- a/doc/docs/plugins.rst +++ b/doc/docs/plugins.rst @@ -7,7 +7,7 @@ use the lexer/formatter/style/filter lookup functions (`lexers.get_lexer_by_name et al.), you can use `setuptools`_ entrypoints to add new lexers, formatters or styles as if they were in the Pygments core. -.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools +.. _setuptools: https://pypi.org/project/setuptools/ That means you can use your highlighter modules with the `pygmentize` script, which relies on the mentioned functions. @@ -82,7 +82,7 @@ This documentation doesn't explain how to use those entrypoints because this is covered in the `setuptools documentation`_. That page should cover everything you need to write a plugin. -.. _setuptools documentation: http://peak.telecommunity.com/DevCenter/setuptools +.. _setuptools documentation: https://setuptools.readthedocs.io/en/latest/ Extending The Core diff --git a/doc/docs/rstdirective.rst b/doc/docs/rstdirective.rst index c0d503b3..edc117d3 100644 --- a/doc/docs/rstdirective.rst +++ b/doc/docs/rstdirective.rst @@ -19,4 +19,4 @@ From Pygments 0.9, the directive is shipped in the distribution as ``.. code::`` directives and highlights the contents in the specified language if the `handlecodeblocks` option is true. -.. _ReST: http://docutils.sf.net/rst.html +.. _ReST: https://docutils.sourceforge.io/rst.html diff --git a/doc/faq.rst b/doc/faq.rst index 61d19856..c094d085 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -89,41 +89,41 @@ Who uses Pygments? This is an (incomplete) list of projects and sites known to use the Pygments highlighter. -* `Wikipedia `_ -* `BitBucket `_, a Mercurial and Git hosting site +* `Wikipedia `_ +* `BitBucket `_, a Mercurial and Git hosting site * `The Sphinx documentation builder `_, for embedded source examples -* `rst2pdf `_, a reStructuredText to PDF converter -* `Codecov `_, a code coverage CI service -* `Trac `_, the universal project management tool -* `AsciiDoc `_, a text-based documentation generator -* `ActiveState Code `_, the Python Cookbook successor +* `rst2pdf `_, a reStructuredText to PDF converter +* `Codecov `_, a code coverage CI service +* `Trac `_, the universal project management tool +* `AsciiDoc `_, a text-based documentation generator +* `ActiveState Code `_, the Python Cookbook successor * `ViewVC `_, a web-based version control repository browser -* `BzrFruit `_, a Bazaar branch viewer +* `BzrFruit `_, a Bazaar branch viewer * `QBzr `_, a cross-platform Qt-based GUI front end for Bazaar -* `Review Board `_, a collaborative code reviewing tool -* `Diamanda `_, a Django powered wiki system with support for Pygments +* `Review Board `_, a collaborative code reviewing tool +* `Diamanda `_, a Django powered wiki system with support for Pygments * `Progopedia `_ (`English `_), an encyclopedia of programming languages -* `Bruce `_, a reStructuredText presentation tool +* `Bruce `_, a reStructuredText presentation tool * `PIDA `_, a universal IDE written in Python -* `BPython `_, a curses-based intelligent Python shell -* `PuDB `_, a console Python debugger -* `XWiki `_, a wiki-based development framework in Java, using Jython +* `BPython `_, a curses-based intelligent Python shell +* `PuDB `_, a console Python debugger +* `XWiki `_, a wiki-based development framework in Java, using Jython * `roux `_, a script for running R scripts and creating beautiful output including graphs * `hurl `_, a web service for making HTTP requests * `wxHTMLPygmentizer `_ is a GUI utility, used to make code-colorization easier -* `Postmarkup `_, a BBCode to XHTML generator +* `Postmarkup `_, a BBCode to XHTML generator * `WpPygments `_, and `WPygments `_, highlighter plugins for WordPress * `Siafoo `_, a tool for sharing and storing useful code and programming experience * `D source `_, a community for the D programming language * `dpaste.com `_, another Django pastebin -* `Django snippets `_, a pastebin for Django code +* `Django snippets `_, a pastebin for Django code * `Fayaa `_, a Chinese pastebin * `Incollo.com `_, a free collaborative debugging tool -* `PasteBox `_, a pastebin focused on privacy +* `PasteBox `_, a pastebin focused on privacy * `hilite.me `_, a site to highlight code snippets * `patx.me `_, a pastebin * `Fluidic `_, an experiment in diff --git a/doc/languages.rst b/doc/languages.rst index 57bea8ea..5ef26e19 100644 --- a/doc/languages.rst +++ b/doc/languages.rst @@ -11,8 +11,8 @@ Programming languages * ActionScript * Ada * Agda (incl. literate) -* `Alloy `_ -* `AMPL `_ +* `Alloy `_ +* `AMPL `_ * ANTLR * APL * AppleScript @@ -24,13 +24,13 @@ Programming languages * BBC Basic * Befunge * BlitzBasic -* `Boa `_ +* `Boa `_ * Boo * `Boogie `_ * BrainFuck * C, C++ (incl. dialects like Arduino) * C# -* `Chapel `_ +* `Chapel `_ * `Charm++ CI `_ * Cirru * Clay @@ -61,19 +61,19 @@ Programming languages * Fancy * Fantom * `Fennel `_ -* `FloScript `_ +* `FloScript `_ * Fortran * `FreeFEM++ `_ * F# * GAP * Gherkin (Cucumber) * GLSL shaders -* `Golo `_ +* `Golo `_ * Gosu * Groovy -* `Haskell `_ (incl. Literate Haskell) +* `Haskell `_ (incl. Literate Haskell) * HLSL -* `HSpec `_ +* `HSpec `_ * Hy * IDL * Idris (incl. Literate Idris) @@ -106,7 +106,7 @@ Programming languages * NesC * NewLISP * Nimrod -* `Nit `_ +* `Nit `_ * Notmuch * NuSMV * Objective-C @@ -115,7 +115,7 @@ Programming languages * OCaml * Opa * OpenCOBOL -* `ParaSail `_ +* `ParaSail `_ * Pawn * PHP * `Perl 5 `_ @@ -126,10 +126,10 @@ Programming languages * PowerShell * `Praat `_ * Prolog -* `Python `_ 2.x and 3.x (incl. console sessions and +* `Python `_ 2.x and 3.x (incl. console sessions and tracebacks) * QBasic -* `Racket `_ +* `Racket `_ * `Raku `_ a.k.a. Perl 6 * `REBOL `_ * `Red `_ @@ -151,7 +151,7 @@ Programming languages * `Slurm `_ * Smalltalk * SNOBOL -* `Snowball `_ +* `Snowball `_ * `Solidity `_ * SourcePawn * `Stan `_ @@ -159,7 +159,7 @@ Programming languages * Stata * Swift * Swig -* `SuperCollider `_ +* `SuperCollider `_ * Tcl * `Tera Term language `_ * TypeScript @@ -174,7 +174,7 @@ Programming languages * Visual Basic.NET * Visual FoxPro * `Whiley `_ -* `Xtend `_ +* `Xtend `_ * XQuery * `Zeek `_ * Zephir @@ -194,12 +194,12 @@ Template languages * Handlebars * JSP (Java Server Pages) * Liquid -* `Myghty `_ (the HTML::Mason based framework) +* `Myghty `_ (the HTML::Mason based framework) * `Mako `_ (the Myghty successor) * Slim * `Smarty `_ templates (PHP templating) * Tea -* `Twig `_ +* `Twig `_ Other markup ------------ @@ -244,11 +244,11 @@ Other markup * MySQL * NCAR command language * Nginx config files -* `Nix language `_ +* `Nix language `_ * NSIS scripts * Notmuch * POV-Ray scenes -* `Puppet `_ +* `Puppet `_ * QML * Ragel * Redcode diff --git a/external/rst-directive.py b/external/rst-directive.py index e0c39b32..6f3173c4 100644 --- a/external/rst-directive.py +++ b/external/rst-directive.py @@ -27,9 +27,9 @@ Look at the `directive documentation`_ to get all the gory details. - .. _Docutils: http://docutils.sf.net/ + .. _Docutils: https://docutils.sourceforge.io/ .. _directive documentation: - http://docutils.sourceforge.net/docs/howto/rst-directives.html + https://docutils.sourceforge.io/docs/howto/rst-directives.html :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 042f04cf..be9d8534 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -61,7 +61,7 @@ def _get_ttype_class(ttype): CSSFILE_TEMPLATE = '''\ /* -generated by Pygments +generated by Pygments Copyright 2006-2019 by the Pygments team. Licensed under the BSD license, see LICENSE for details. */ @@ -75,7 +75,7 @@ DOC_HEADER = '''\ diff --git a/setup.py b/setup.py index e72580b2..0c9f4f54 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ from pygments import __version__ setup( name = 'Pygments', version = __version__, - url = 'http://pygments.org/', + url = 'https://pygments.org/', license = 'BSD License', author = 'Georg Brandl', author_email = 'georg@python.org', -- cgit v1.2.1