From: Vladimír Vondruš Date: Fri, 16 Nov 2018 23:42:13 +0000 (+0100) Subject: Adapted to Pelican 3.8 {filename} -> {static} changes. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=e1c031325f6b0b047c2d810f6500fb7d9ec7d0e4;p=blog.git Adapted to Pelican 3.8 {filename} -> {static} changes. --- diff --git a/doc/admire/math.rst b/doc/admire/math.rst index 2bfbc787..2947cddd 100644 --- a/doc/admire/math.rst +++ b/doc/admire/math.rst @@ -33,7 +33,7 @@ m.css math .. |o| replace:: · :url: admire/math/ -:cover: {filename}/static/cover-math.jpg +:cover: {static}/static/cover-math.jpg :summary: The fastest possible math rendering for the modern web :footer: .. note-dim:: diff --git a/doc/css.rst b/doc/css.rst index 76d7e521..9215ed9e 100644 --- a/doc/css.rst +++ b/doc/css.rst @@ -100,11 +100,11 @@ to include a proper :html:`` tag. The HTML5 DOCTYPE is also required. the code and console Pygments style, all combined in one file: - :gh:`m-dark.compiled.css ` - (:filesize:`{filename}/../css/m-dark.compiled.css`, - :filesize-gz:`{filename}/../css/m-dark.compiled.css` compressed) + (:filesize:`{static}/../css/m-dark.compiled.css`, + :filesize-gz:`{static}/../css/m-dark.compiled.css` compressed) - :gh:`m-light.compiled.css ` - (:filesize:`{filename}/../css/m-light.compiled.css`, - :filesize-gz:`{filename}/../css/m-light.compiled.css` compressed) + (:filesize:`{static}/../css/m-light.compiled.css`, + :filesize-gz:`{static}/../css/m-light.compiled.css` compressed) I recommend using the original files for development and switching to the compiled versions when publishing the website. diff --git a/doc/css/components-test.rst b/doc/css/components-test.rst index ed86e0b6..82d9e298 100644 --- a/doc/css/components-test.rst +++ b/doc/css/components-test.rst @@ -240,7 +240,7 @@ Badge with lots of text and less text: .. raw:: html
- The Author + The Author

About the author

The Author is lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id elit posuere, consectetur magna congue, @@ -250,7 +250,7 @@ Badge with lots of text and less text:

- The Author + The Author

About the author

The Author is lorem ipsum dolor sit amet, consectetur adipiscing elit.

@@ -936,28 +936,28 @@ Image, centered: .. raw:: html - + Image, centered, link: .. raw:: html
- +
Image, fullwidth (yes, it should be pixelated): .. raw:: html - + Image, fullwidth, link (yes, it should be pixelated): .. raw:: html
- +
SVG image: @@ -996,7 +996,7 @@ Figure, centered: .. raw:: html
- +
A Ship
Photo © The Author
@@ -1006,7 +1006,7 @@ Figure, centered, image link, flat: .. raw:: html
- +
A Ship
Photo © The Author
@@ -1016,7 +1016,7 @@ Figure, fullwidth, without description (yes, it should be pixelated): .. raw:: html
- +
A Ship
@@ -1026,7 +1026,7 @@ unnecessary wrapping of the text: .. raw:: html
- +
A Somewhat Lengthy Caption For A Photo
The Photo Displayed Above Was Kindly Taken And Allowed To Be Used On This Page By The Author. All @@ -1039,7 +1039,7 @@ leaking of the image outside of the page: .. raw:: html
- +
A Somewhat Lengthy Caption For A Photo
The Photo Displayed Above Was Kindly Taken And Allowed To Be Used On This Page By The Author. All @@ -1052,7 +1052,7 @@ instead of extending the border and there should be proper padding on bottom): .. raw:: html
- +
A Somewhat Lengthy Caption For A Photo
The Photo Displayed Above Was Kindly Taken And Allowed To Be Used On This Page By The Author. All @@ -1062,7 +1062,7 @@ instead of extending the border and there should be proper padding on bottom): .. raw:: html
- +
A Somewhat Lengthy Caption For A Photo
@@ -1073,28 +1073,28 @@ Figures of varying colors:
- +
Default figure
Text.
- +
Primary figure
Text.
- +
Success figure
Text.
- +
Warning figure
Text.
@@ -1103,21 +1103,21 @@ Figures of varying colors:
- +
Danger figure
Text.
- +
Info figure
Text.
- +
Dim figure
Text.
@@ -1134,11 +1134,11 @@ Without the link:
- +
F9.0, 1/250 s, ISO 100
- +
F2.8, 1/1600 s, ISO 100
@@ -1151,14 +1151,14 @@ With link, without caption, not inflated:
- - + +
- - + +
@@ -1172,11 +1172,11 @@ Without link or caption:
- +
- +
diff --git a/doc/css/components.rst b/doc/css/components.rst index 8e4f7a64..423f641f 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -164,7 +164,7 @@ Only :html:`

` is supported for a badge. .. raw:: html
- The Author + The Author

About the author

The Author is not really smiling at you from this avatar. Sorry about that. He knows that and @@ -624,7 +624,7 @@ reasons it's a good practice to include the ``alt`` attribute. .. raw:: html - Flowers + Flowers To make the image clickable, wrap the :html:`` tag in an additional :html:`

` and put the :css:`.m-image` class on the :html:`
` element @@ -642,7 +642,7 @@ not the surrounding area: .. raw:: html
- +
.. note-info:: @@ -682,7 +682,7 @@ Optionally you can color the figure border and caption by adding one of the .. raw:: html
- Ship + Ship
A Ship
Photo © The Author
@@ -752,28 +752,28 @@ Example usage (stupidly showing the two images all over again --- sorry):
- - + +
F2.8, 1/1600 s, ISO 100
- - + +
F9.0, 1/250 s, ISO 100
diff --git a/doc/doxygen-test.rst b/doc/doxygen-test.rst index 3de1aa87..114a0456 100644 --- a/doc/doxygen-test.rst +++ b/doc/doxygen-test.rst @@ -27,7 +27,7 @@ Test :save_as: doxygen/test/index.html :breadcrumb: {filename}/doxygen.rst Doxygen theme -:css: {filename}/static/m-dark.doxygen.compiled.css +:css: {static}/static/m-dark.doxygen.compiled.css Lists ===== diff --git a/doc/doxygen.rst b/doc/doxygen.rst index fe5d687e..57bec932 100644 --- a/doc/doxygen.rst +++ b/doc/doxygen.rst @@ -162,7 +162,7 @@ If you see something unexpected or not see something expected, check the - Search for symbols using any prefix - Fully controllable by keyboard -.. image:: {filename}/static/opengl-search.png +.. image:: {static}/static/opengl-search.png .. note-success:: diff --git a/doc/examples/authors/an-author.rst b/doc/examples/authors/an-author.rst index 1e45b841..301db288 100644 --- a/doc/examples/authors/an-author.rst +++ b/doc/examples/authors/an-author.rst @@ -1,7 +1,7 @@ An Author ######### -:image: {filename}/static/mosra.jpg +:image: {static}/static/mosra.jpg :badge: Info badge for `An Author <{author}an-author>`_ provided by the `Metadata <{filename}/plugins/metadata.rst>`_ plugin. diff --git a/doc/examples/categories/examples.rst b/doc/examples/categories/examples.rst index a812bba9..bcdfa0c6 100644 --- a/doc/examples/categories/examples.rst +++ b/doc/examples/categories/examples.rst @@ -1,7 +1,7 @@ Examples ######## -:image: {filename}/static/site.jpg +:image: {static}/static/site.jpg :badge: Info badge for the `Examples <{category}examples>`_ category provided by the `Metadata <{filename}/plugins/metadata.rst>`_ plugin. diff --git a/doc/examples/jumbo-article-hide-summary.rst b/doc/examples/jumbo-article-hide-summary.rst index 75915b11..bdc017a6 100644 --- a/doc/examples/jumbo-article-hide-summary.rst +++ b/doc/examples/jumbo-article-hide-summary.rst @@ -28,7 +28,7 @@ Article with hidden summary --- a jumbo one .. role:: language-la :class: language-la -:cover: {filename}/static/ship.jpg +:cover: {static}/static/ship.jpg :date: 2017-12-06 1:00 :category: Examples :tags: Jumbo, Special diff --git a/doc/examples/jumbo-article.rst b/doc/examples/jumbo-article.rst index ba7de9e9..9bbc30eb 100644 --- a/doc/examples/jumbo-article.rst +++ b/doc/examples/jumbo-article.rst @@ -28,7 +28,7 @@ An article --- a jumbo one .. role:: language-la :class: language-la -:cover: {filename}/static/ship.jpg +:cover: {static}/static/ship.jpg :date: 2017-09-08 1:00 :category: Examples :tags: Jumbo diff --git a/doc/index.rst b/doc/index.rst index f2cc3c6c..102e3d6d 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -27,7 +27,7 @@ m.css :save_as: index.html :url: -:cover: {filename}/static/cover.jpg +:cover: {static}/static/cover.jpg :summary: A no-nonsense, no-JavaScript CSS framework and Pelican theme for content-oriented websites :hide_navbar_brand: True @@ -60,7 +60,7 @@ m.css Get the essence - | :filesize-gz:`{filename}/../css/m-dark.compiled.css` of gzipped CSS, + | :filesize-gz:`{static}/../css/m-dark.compiled.css` of gzipped CSS, | licensed under MIT .. container:: m-row m-container-inflate @@ -69,7 +69,7 @@ m.css .. block-success:: *Pure* CSS and HTML - Everything you need is :filesize-gz:`{filename}/../css/m-dark.compiled.css` + Everything you need is :filesize-gz:`{static}/../css/m-dark.compiled.css` of compressed CSS. This framework has exactly 0 bytes of JavaScript because *nobody actually needs it*. Even for responsive websites. diff --git a/doc/pelican/theme.rst b/doc/pelican/theme.rst index ddcdfe45..7a84eb70 100644 --- a/doc/pelican/theme.rst +++ b/doc/pelican/theme.rst @@ -353,10 +353,10 @@ element. Indenting the lines is possible by putting an escaped space in front ######## :css: - {filename}/static/webgl.css - {filename}/static/canvas-controls.css + {static}/static/webgl.css + {static}/static/canvas-controls.css :js: - {filename}/static/showcase.js + {static}/static/showcase.js :html_header: