From: Vladimír Vondruš Date: Sat, 3 Nov 2018 13:03:47 +0000 (+0100) Subject: HTTPS links to external sites as well, if possible. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=2584fcc15fa9a90209cbe439b642914758f86e16;p=blog.git HTTPS links to external sites as well, if possible. --- diff --git a/doc/css/components.rst b/doc/css/components.rst index d2c9623f..acb9273b 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -967,8 +967,7 @@ It's also possible to have matching border for a console output. Just use The ``latex2svg.py`` utility from :gh:`tuxu/latex2svg` can be used to generate SVG representation of your LaTeX math formulas. Assuming you have some LaTeX -distribution and `dvisvgm `_ installed, the usage -is simple: +distribution and `dvisvgm `_ installed, the usage is: .. code:: sh diff --git a/doc/css/grid.rst b/doc/css/grid.rst index 798d85f0..916b52d9 100644 --- a/doc/css/grid.rst +++ b/doc/css/grid.rst @@ -37,7 +37,7 @@ Grid system .. role:: html(code) :language: html -Inspired by `Bootstrap `_, the grid system is the +Inspired by `Bootstrap `_, the grid system is the heart of a responsive website layout. The `m-grid.css <{filename}/css.rst>`_ file contains all the setup you need for it, it's completely standalone. Besides that, in order to have devices recognize your website properly as diff --git a/doc/doxygen.rst b/doc/doxygen.rst index b206529a..f25dcfb0 100644 --- a/doc/doxygen.rst +++ b/doc/doxygen.rst @@ -46,12 +46,12 @@ Doxygen theme :language: sh A modern, mobile-friendly drop-in replacement for the stock -`Doxygen `_ HTML output, with a first-class search +`Doxygen `_ HTML output, with a first-class search functionality. Generated from Doxygen-produced XML files, filenames and URLs are fully compatible with the stock output to avoid broken links once you switch. -.. button-success:: http://doc.magnum.graphics +.. button-success:: https://doc.magnum.graphics Live demo @@ -168,7 +168,7 @@ If you see something unexpected or not see something expected, check the If you want to know more, the search functionality implementation and features are detailed - `in this blog post `_. + `in this blog post `_. `Important differences to stock HTML output`_ --------------------------------------------- @@ -883,7 +883,7 @@ rendered HTML output: Centered. @endparblock - @m_div{m-button m-primary} @m_div{m-big}See + @m_div{m-button m-primary} @m_div{m-big}See it live! @m_enddiv @m_div{m-small} uses the m.css theme @m_enddiv @m_enddiv This text contains a @span{m-text m-success} green @endspan word. @@ -896,7 +896,7 @@ rendered HTML output: Centered. - .. button-primary:: http://doc.magnum.graphics + .. button-primary:: https://doc.magnum.graphics See it live! diff --git a/doc/pelican.rst b/doc/pelican.rst index 174ceb7f..2def9fd8 100644 --- a/doc/pelican.rst +++ b/doc/pelican.rst @@ -98,7 +98,7 @@ subdirectory with a ``.rst`` extension. For this example that would be :summary: This article has a cool summary. This article has not only cool summary, but also has cool contents. Lorem? - *Ipsum.* `Hi, google! `_ + *Ipsum.* `Hi, google! `_ If you did everything right, the auto-reload script should pick the file up and process it (check the console output). Then it's just a matter of refreshing diff --git a/doc/pelican/theme.rst b/doc/pelican/theme.rst index d1c0d9bc..ddcdfe45 100644 --- a/doc/pelican/theme.rst +++ b/doc/pelican/theme.rst @@ -285,12 +285,12 @@ Example configuration to give sane defaults to all social meta tags: .. code:: py M_BLOG_NAME = "Your Brand Blog" - M_BLOG_URL = 'http://blog.your.brand/' + M_BLOG_URL = 'https://blog.your.brand/' M_BLOG_DESCRIPTION = "Your Brand is the brand that provides all that\'s needed." M_SOCIAL_TWITTER_SITE = '@your.brand' M_SOCIAL_TWITTER_SITE_ID = 1234567890 - M_SOCIAL_IMAGE = 'http://your.brand/static/site.png' + M_SOCIAL_IMAGE = 'https://your.brand/static/site.png' M_SOCIAL_BLOG_SUMMARY = "This is the brand you need" .. _global-site-image: @@ -529,7 +529,7 @@ of articles shown. Example configuration: .. note-success:: You can see how this block looks on the Magnum Engine main page: - http://magnum.graphics + https://magnum.graphics `(Social) meta tags for pages`_ ------------------------------- diff --git a/doc/pelican/writing-content.rst b/doc/pelican/writing-content.rst index 3d8b0b4b..3347b7a9 100644 --- a/doc/pelican/writing-content.rst +++ b/doc/pelican/writing-content.rst @@ -396,7 +396,7 @@ created using the :rst:`.. _anchor:` syntax. ============ Repeated link to `Google`_. Anonymous links that share the same titles - `here `__ and `here `__. + `here `__ and `here `__. Link to `an anchor`_ above. .. _an anchor: @@ -411,7 +411,7 @@ created using the :rst:`.. _anchor:` syntax.

A heading

Repeated link to `Google`_. Anonymous links that share the same titles - `here `__ and `here `__. + `here `__ and `here `__. Link to `an anchor`_ above. .. raw:: html diff --git a/doc/plugins/htmlsanity.rst b/doc/plugins/htmlsanity.rst index 5ccf92aa..27da2628 100644 --- a/doc/plugins/htmlsanity.rst +++ b/doc/plugins/htmlsanity.rst @@ -58,7 +58,7 @@ including the ``m/`` directory into one of your :py:`PLUGIN_PATHS` and add M_HTMLSANITY_SMART_QUOTES = True M_HTMLSANITY_HYPHENATION = True -Hyphenation (see below) requires the `Pyphen `_ library, +Hyphenation (see below) requires the `Pyphen `_ library, either install it via ``pip`` or your distribution package manager or disable it with the above setting. @@ -164,7 +164,7 @@ implementing that feature. Lack of word wrap is visible especially on narrow screens of mobile devices, where there is just way too much blank space because of long words being wrapped on new lines. -The hyphenation is done using `Pyphen `_ and is applied to +The hyphenation is done using `Pyphen `_ and is applied to whole document contents and fields that are included in the :py:`FORMATTED_FIELDS`. All other fields including document title are excluded from hyphenation, the same goes for literal and raw blocks and links with URL (or e-mail) as a title. @@ -303,8 +303,8 @@ with a formatter that makes use of `urljoin S₂ [label="1"] For more information check the official -`GraphViz Reference `_, in particular the -extensive `attribute documentation `_. +`GraphViz Reference `_, in particular the +extensive `attribute documentation `_. .. note-warning:: diff --git a/pelican-theme/test/page_html_escape/content.rst b/pelican-theme/test/page_html_escape/content.rst index 2bdfeb80..12659ff8 100644 --- a/pelican-theme/test/page_html_escape/content.rst +++ b/pelican-theme/test/page_html_escape/content.rst @@ -4,4 +4,4 @@ Escaping in content - `Self link <{filename}/page.rst>`_ (overriden URL) - `Self link with more params added <{filename}/page.rst#so=this&works="bad">`_ - `Link to other page <{filename}/landing.rst>`_ (it doesn't have URL overriden) -- `Link outside `_. +- `Link outside `_.