chiark / gitweb /
blog.git
7 years agotemplate: no need to use dehyphenate for document titles anymore.
Vladimír Vondruš [Mon, 11 Sep 2017 16:30:21 +0000 (18:30 +0200)]
template: no need to use dehyphenate for document titles anymore.

7 years agom.htmlsanity: make hyphenation scope saner.
Vladimír Vondruš [Tue, 12 Sep 2017 10:09:22 +0000 (12:09 +0200)]
m.htmlsanity: make hyphenation scope saner.

Article summary is now hyphenated, document title and other fields are
not. Also not hyphenating inline raw nodes (breaks math).

7 years agom.components: components for colored text blocks.
Vladimír Vondruš [Tue, 12 Sep 2017 10:08:11 +0000 (12:08 +0200)]
m.components: components for colored text blocks.

7 years agom.images: override the Figure directive as well.
Vladimír Vondruš [Mon, 11 Sep 2017 15:19:01 +0000 (17:19 +0200)]
m.images: override the Figure directive as well.

And add the m-figure class implicitly.

7 years agom.images: add outer <div> with all classes if the image has a target.
Vladimír Vondruš [Mon, 11 Sep 2017 15:18:30 +0000 (17:18 +0200)]
m.images: add outer <div> with all classes if the image has a target.

To match the expectations of m.css.

7 years agom.images: properly support the image :target: option.
Vladimír Vondruš [Mon, 11 Sep 2017 15:17:57 +0000 (17:17 +0200)]
m.images: properly support the image :target: option.

7 years agom.images: don't fail if Pillow is not available.
Vladimír Vondruš [Mon, 11 Sep 2017 15:16:52 +0000 (17:16 +0200)]
m.images: don't fail if Pillow is not available.

It should be possible to use the plugin even w/o Pillow (but then image
grid won't work).

7 years agom.htmlsanity: patch image node writing to not include useless alt attrib.
Vladimír Vondruš [Mon, 11 Sep 2017 15:15:54 +0000 (17:15 +0200)]
m.htmlsanity: patch image node writing to not include useless alt attrib.

7 years agom.htmlsanity: actually add the highlight CSS class to inline code.
Vladimír Vondruš [Mon, 11 Sep 2017 15:15:09 +0000 (17:15 +0200)]
m.htmlsanity: actually add the highlight CSS class to inline code.

So I don't have to add it manually every time.

7 years agom.htmlsanity: patch for difference between docutils 0.13 and 0.14.
Vladimír Vondruš [Mon, 11 Sep 2017 15:14:00 +0000 (17:14 +0200)]
m.htmlsanity: patch for difference between docutils 0.13 and 0.14.

With the default being for 0.14 (forward-compatible).

7 years agom.htmlsanity: we're replacing builtin SmartQuotes.
Vladimír Vondruš [Mon, 11 Sep 2017 15:13:25 +0000 (17:13 +0200)]
m.htmlsanity: we're replacing builtin SmartQuotes.

No need to mess w/ priority.

7 years agocss: fix clickable .m-image.
Vladimír Vondruš [Mon, 11 Sep 2017 14:18:29 +0000 (16:18 +0200)]
css: fix clickable .m-image.

The bottom margin was not applied because of the outer <a> element,
moreover the <a> element was spanning the whole page width instead of
just the image. A fix requires additional outer <div> now.

7 years agocss: make image grid inflated the same way as notes, blocks and frames.
Vladimír Vondruš [Mon, 11 Sep 2017 14:08:39 +0000 (16:08 +0200)]
css: make image grid inflated the same way as notes, blocks and frames.

Looks better on mobile, as the images span the full width then.
Unfortunately this required a hack that I'm not really proud of.

7 years agocss: more code reordering.
Vladimír Vondruš [Mon, 11 Sep 2017 11:30:35 +0000 (13:30 +0200)]
css: more code reordering.

7 years agocss: make it image grid more flexible.
Vladimír Vondruš [Mon, 11 Sep 2017 11:26:45 +0000 (13:26 +0200)]
css: make it image grid more flexible.

It's now possible to omit the link, omit the caption or both.

7 years agocss: don't highlight blocks/notes/frames/codeblocks that are not inflated.
Vladimír Vondruš [Mon, 11 Sep 2017 11:25:40 +0000 (13:25 +0200)]
css: don't highlight blocks/notes/frames/codeblocks that are not inflated.

This assumes that <section> elements are only part of an <article> and
nothing else.

7 years agocss: styling for higlighted lines in code blocks.
Vladimír Vondruš [Mon, 11 Sep 2017 11:24:49 +0000 (13:24 +0200)]
css: styling for higlighted lines in code blocks.

And support for .m-inverted-highlight.

7 years agom.images: use <figcaption> instead of <div> for image grid caption.
Vladimír Vondruš [Mon, 11 Sep 2017 11:24:13 +0000 (13:24 +0200)]
m.images: use <figcaption> instead of <div> for image grid caption.

7 years agom.images: avoid conflict of PIL with my own Image class.
Vladimír Vondruš [Mon, 11 Sep 2017 11:23:52 +0000 (13:23 +0200)]
m.images: avoid conflict of PIL with my own Image class.

7 years agom.components: add block-flat directive to match the CSS components.
Vladimír Vondruš [Mon, 11 Sep 2017 11:23:27 +0000 (13:23 +0200)]
m.components: add block-flat directive to match the CSS components.

7 years agom.gh: repository link title doesn't need to be a full URL.
Vladimír Vondruš [Mon, 11 Sep 2017 11:22:27 +0000 (13:22 +0200)]
m.gh: repository link title doesn't need to be a full URL.

Because it's obvious what's meant.

7 years agom.gh: shorten the commit link title to 7 chars of the SHA-1.
Vladimír Vondruš [Mon, 11 Sep 2017 11:22:00 +0000 (13:22 +0200)]
m.gh: shorten the commit link title to 7 chars of the SHA-1.

7 years agom.gl: fix link target of :glfn:.
Vladimír Vondruš [Mon, 11 Sep 2017 11:21:30 +0000 (13:21 +0200)]
m.gl: fix link target of :glfn:.

7 years agotheme: various updates.
Vladimír Vondruš [Mon, 11 Sep 2017 11:19:54 +0000 (13:19 +0200)]
theme: various updates.

Fixed code indentation on a bunch of places, got rid of TAGCLOUD_LEVELS
as the style had it hardcoded anyway, adapted to padding changes in the
CSS style.

7 years agocss: remove top/bottom padding of .m-container, make it more flexible.
Vladimír Vondruš [Mon, 11 Sep 2017 11:17:59 +0000 (13:17 +0200)]
css: remove top/bottom padding of .m-container, make it more flexible.

Updated padding of other elements accordingly, added new .m-nopad*
classes to make things easier for the templates.

7 years agocss: fix article section highlighting for some components.
Vladimír Vondruš [Sun, 10 Sep 2017 20:08:53 +0000 (22:08 +0200)]
css: fix article section highlighting for some components.

 * Non-inflated code blocks were mistakenly inflated in highlighted
   sections. Code blocks with additional classes were not inflated by
   mistake.
 * The content of blocks, frames and notes is now properly padded to
   align with the rest of the page and doesn't jump on highlight.
 * Inflated notes now have their left border colored when highlighted.

7 years agocss: coloring also for <th> elements.
Vladimír Vondruš [Sun, 10 Sep 2017 16:54:06 +0000 (18:54 +0200)]
css: coloring also for <th> elements.

7 years agocss: compress the code a bit, finish the doc comment.
Vladimír Vondruš [Sun, 10 Sep 2017 16:50:16 +0000 (18:50 +0200)]
css: compress the code a bit, finish the doc comment.

7 years agocss: code reordering.
Vladimír Vondruš [Sun, 10 Sep 2017 16:43:29 +0000 (18:43 +0200)]
css: code reordering.

7 years agom.htmlsanity: add dehyphenate filter and use it straight away.
Vladimír Vondruš [Fri, 8 Sep 2017 09:35:44 +0000 (11:35 +0200)]
m.htmlsanity: add dehyphenate filter and use it straight away.

7 years agom.htmlsanity: produce &shy; instead of U+00AD in the hyphenate filter.
Vladimír Vondruš [Fri, 8 Sep 2017 09:34:48 +0000 (11:34 +0200)]
m.htmlsanity: produce &shy; instead of U+00AD in the hyphenate filter.

Makes the result easier to spot in the resulting HTML code.

7 years agoMinor README update.
Vladimír Vondruš [Tue, 12 Sep 2017 10:00:13 +0000 (12:00 +0200)]
Minor README update.

7 years agotheme: proper jumbo article header splitting.
Vladimír Vondruš [Fri, 25 Aug 2017 23:12:38 +0000 (01:12 +0200)]
theme: proper jumbo article header splitting.

7 years agotheme: support large Twitter cards.
Vladimír Vondruš [Fri, 25 Aug 2017 23:12:25 +0000 (01:12 +0200)]
theme: support large Twitter cards.

7 years agocss: remove stupid defaults for <pre>.
Vladimír Vondruš [Fri, 25 Aug 2017 11:05:37 +0000 (13:05 +0200)]
css: remove stupid defaults for <pre>.

7 years agocss: better full-width for the <pre> tag.
Vladimír Vondruš [Fri, 25 Aug 2017 11:05:00 +0000 (13:05 +0200)]
css: better full-width for the <pre> tag.

Content-box sizing only makes problems.

7 years agocss: superfluous semicolon.
Vladimír Vondruš [Thu, 24 Aug 2017 11:15:55 +0000 (13:15 +0200)]
css: superfluous semicolon.

7 years agocss: use proper gradient background for jumbo articles.
Vladimír Vondruš [Thu, 24 Aug 2017 11:15:09 +0000 (13:15 +0200)]
css: use proper gradient background for jumbo articles.

7 years agotheme: consistent padding for (jumbo) articles.
Vladimír Vondruš [Thu, 24 Aug 2017 11:14:15 +0000 (13:14 +0200)]
theme: consistent padding for (jumbo) articles.

7 years agocss: make padding consistent.
Vladimír Vondruš [Thu, 24 Aug 2017 11:13:49 +0000 (13:13 +0200)]
css: make padding consistent.

7 years agotheme: partial fix for the misaligned navbar hamburger icon.
Vladimír Vondruš [Thu, 24 Aug 2017 09:52:46 +0000 (11:52 +0200)]
theme: partial fix for the misaligned navbar hamburger icon.

There's still some misalignment in total (left and right border of the
menu items is not on the same line as left and right border of the
text), but that needs a bigger change later.

7 years agohtmlsanity: render figure captions as <figcaption>.
Vladimír Vondruš [Wed, 23 Aug 2017 15:48:48 +0000 (17:48 +0200)]
htmlsanity: render figure captions as <figcaption>.

7 years agocss: styling for HTML5 <figure> tag.
Vladimír Vondruš [Wed, 23 Aug 2017 15:47:56 +0000 (17:47 +0200)]
css: styling for HTML5 <figure> tag.

7 years agocss: introduce flat blocks.
Vladimír Vondruš [Wed, 23 Aug 2017 15:47:20 +0000 (17:47 +0200)]
css: introduce flat blocks.

I just needed to have the .m-flat used somewhere to justify using it for
figures later.

7 years agocss: image grid borders should have proper color based on style.
Vladimír Vondruš [Wed, 23 Aug 2017 15:46:56 +0000 (17:46 +0200)]
css: image grid borders should have proper color based on style.

7 years agocss: make text alignment work properly with .m-noindent.
Vladimír Vondruš [Wed, 23 Aug 2017 15:46:31 +0000 (17:46 +0200)]
css: make text alignment work properly with .m-noindent.

7 years agotheme: more indentation/whitespace fixes.
Vladimír Vondruš [Wed, 23 Aug 2017 15:45:50 +0000 (17:45 +0200)]
theme: more indentation/whitespace fixes.

7 years agotheme: indenting content is *wrong*.
Vladimír Vondruš [Wed, 23 Aug 2017 15:44:13 +0000 (17:44 +0200)]
theme: indenting content is *wrong*.

Because the indentation (obviously) affects stuff inside <pre> tags. All
page/article content is now unindented and wrapped in a HTML comment to
make it better visible in the source.

I don't expect article summaries to have <pre> tags inside, so that's a
non-issue.

7 years agotheme: make the output pretty indented.
Vladimír Vondruš [Wed, 23 Aug 2017 11:18:47 +0000 (13:18 +0200)]
theme: make the output pretty indented.

There will be a minifier step later anyway, but this helps debugging
(and my OCD) a lot.

7 years agoplugins: strip whitespace from render_rst filter output.
Vladimír Vondruš [Wed, 23 Aug 2017 11:18:03 +0000 (13:18 +0200)]
plugins: strip whitespace from render_rst filter output.

7 years agoplugins: added .gitignore.
Vladimír Vondruš [Tue, 11 Jul 2017 15:09:02 +0000 (17:09 +0200)]
plugins: added .gitignore.

7 years agotheme: use different setting for feed URLs.
Vladimír Vondruš [Tue, 11 Jul 2017 15:08:25 +0000 (17:08 +0200)]
theme: use different setting for feed URLs.

7 years agoInitial README.
Vladimír Vondruš [Wed, 5 Jul 2017 22:58:45 +0000 (00:58 +0200)]
Initial README.

7 years agoplugins: reST directive for linking to Doxygen docs.
Vladimír Vondruš [Tue, 4 Jul 2017 09:26:03 +0000 (11:26 +0200)]
plugins: reST directive for linking to Doxygen docs.

7 years agoplugins: reST directives for image and image grid.
Vladimír Vondruš [Tue, 4 Jul 2017 09:24:40 +0000 (11:24 +0200)]
plugins: reST directives for image and image grid.

7 years agoplugins: reST roles for linking to GL symbols and extensions.
Vladimír Vondruš [Tue, 4 Jul 2017 09:22:39 +0000 (11:22 +0200)]
plugins: reST roles for linking to GL symbols and extensions.

7 years agoplugins: reST roles for linking to GitHub articles.
Vladimír Vondruš [Tue, 4 Jul 2017 09:22:01 +0000 (11:22 +0200)]
plugins: reST roles for linking to GitHub articles.

7 years agoplugins: reST directives for m.css note/block/frame components.
Vladimír Vondruš [Tue, 4 Jul 2017 09:21:09 +0000 (11:21 +0200)]
plugins: reST directives for m.css note/block/frame components.

7 years agocss: initial dark version of Pygments style.
Vladimír Vondruš [Tue, 4 Jul 2017 09:20:34 +0000 (11:20 +0200)]
css: initial dark version of Pygments style.

7 years agoInitial version of the Pelican theme.
Vladimír Vondruš [Tue, 4 Jul 2017 09:20:08 +0000 (11:20 +0200)]
Initial version of the Pelican theme.

7 years agoInitial version of m.css grid and components, in two styles.
Vladimír Vondruš [Tue, 4 Jul 2017 09:15:56 +0000 (11:15 +0200)]
Initial version of m.css grid and components, in two styles.

7 years agohtmlsanity: Jinja2 filter for hyphenation.
Vladimír Vondruš [Tue, 4 Jul 2017 09:11:23 +0000 (11:11 +0200)]
htmlsanity: Jinja2 filter for hyphenation.

7 years agohtmlsanity: hyphenation implementation.
Vladimír Vondruš [Tue, 4 Jul 2017 09:11:05 +0000 (11:11 +0200)]
htmlsanity: hyphenation implementation.

7 years agohtmlsanity: smart quotes implementation.
Vladimír Vondruš [Tue, 4 Jul 2017 09:10:36 +0000 (11:10 +0200)]
htmlsanity: smart quotes implementation.

7 years agohtmlsanity: ability to render reST via Jinja2 filter.
Vladimír Vondruš [Tue, 4 Jul 2017 09:08:31 +0000 (11:08 +0200)]
htmlsanity: ability to render reST via Jinja2 filter.

7 years agoInitial version of Pelican HTML sanity plugin.
Vladimír Vondruš [Tue, 4 Jul 2017 09:05:11 +0000 (11:05 +0200)]
Initial version of Pelican HTML sanity plugin.

This is needed by basically everything else, so it comes first.

7 years agoInitial commit.
Vladimír Vondruš [Tue, 4 Jul 2017 09:01:19 +0000 (11:01 +0200)]
Initial commit.