chiark / gitweb /
Vladimír Vondruš [Thu, 2 Nov 2017 17:57:10 +0000 (18:57 +0100)]
Doc++
Vladimír Vondruš [Thu, 2 Nov 2017 17:51:47 +0000 (18:51 +0100)]
m.htmlsanity: better consistency for collapsed <p>s in additional fields.
Previously (and that's also how stock Pelican behaves) article summaries
and other FORMATTED_FIELDS had <p> collapsing disabled completely. That
made some inconsistencies in the HTML markup (i.e., a m.css note in
article summary would look slightly differently compared to a note in
article content because of the additional <p>).
Now <p>s are collapsed for FORMATTED_FIELDS as well and the HTML writer
has an additional exception that it *does not* remove <p>s from nodes
that are directly inside field bodies.
Vladimír Vondruš [Thu, 2 Nov 2017 16:33:36 +0000 (17:33 +0100)]
I fail at reST.
Even after seven months of writing it. Kill me.
Vladimír Vondruš [Wed, 1 Nov 2017 23:01:37 +0000 (00:01 +0100)]
site: new landing page dedicated for math features.
Vladimír Vondruš [Wed, 1 Nov 2017 22:56:44 +0000 (23:56 +0100)]
themes: omitting bold italic font was a bad idea.
Some other not really matching (slightly bolder) font was chosen
instead, making things ugly.
Vladimír Vondruš [Wed, 1 Nov 2017 22:55:18 +0000 (23:55 +0100)]
doc: fix and improve docs about math.
Vladimír Vondruš [Wed, 1 Nov 2017 22:53:17 +0000 (23:53 +0100)]
css: make hiding brand link on landing pages opt-in.
Not all landing pages repeat it, probably just one does that -- the
index one.
Vladimír Vondruš [Wed, 1 Nov 2017 22:44:44 +0000 (23:44 +0100)]
css: add .m-strong and .m-em classes.
Meant to help work around reST limitation of not being able to have
strong emphasis.
Vladimír Vondruš [Wed, 1 Nov 2017 17:39:41 +0000 (18:39 +0100)]
doc: mention that m-grid.css can be used WITHOUT ALL THE OTHER CRUFT.
Vladimír Vondruš [Wed, 1 Nov 2017 17:21:43 +0000 (18:21 +0100)]
doc: make the hand-written SVG valid.
With no conflicting IDs and using proper tag names.
Vladimír Vondruš [Wed, 1 Nov 2017 17:19:59 +0000 (18:19 +0100)]
m.math: document the behavior better.
Vladimír Vondruš [Wed, 1 Nov 2017 16:48:37 +0000 (17:48 +0100)]
m.htmlsanity: figure legend shouldn't be wrapped in a <div>.
The <div> element is not allowed inside <figure> in the HTML5 standard.
Vladimír Vondruš [Wed, 1 Nov 2017 16:45:52 +0000 (17:45 +0100)]
css: document that code blocks overflow with a scrollbar.
Instead of the lines being wrapped.
Vladimír Vondruš [Wed, 1 Nov 2017 16:45:30 +0000 (17:45 +0100)]
doc: forgot to close a tag in raw HTML.
Ugh.
Vladimír Vondruš [Wed, 1 Nov 2017 16:21:12 +0000 (17:21 +0100)]
css: added .m-light class to make part of a heading thinner.
Also documented how headings behave.
Vladimír Vondruš [Wed, 1 Nov 2017 12:36:27 +0000 (13:36 +0100)]
m.math: it's <desc>, not <description>.
*Now* it's valid HTML5.
Vladimír Vondruš [Wed, 1 Nov 2017 12:34:32 +0000 (13:34 +0100)]
m.math: unique names for SVG paths and pages.
Makes the markup valid HTML5 and avoids strange issues with missing /
wrong paths due to conflicting IDs.
Vladimír Vondruš [Tue, 31 Oct 2017 12:13:34 +0000 (13:13 +0100)]
css: put scrollbars on large maths.
Vladimír Vondruš [Tue, 31 Oct 2017 12:01:24 +0000 (13:01 +0100)]
Properly credit latex2svg.
Vladimír Vondruš [Mon, 30 Oct 2017 10:50:42 +0000 (11:50 +0100)]
theme: article header date formatting should not depend on DATE_FORMATS.
It's affected only by the locale in it, but that's desired.
Vladimír Vondruš [Sun, 29 Oct 2017 20:47:42 +0000 (21:47 +0100)]
theme: charset meta tag should be first in head.
Huh. Makes sense. Reported by https://sonarwhal.com/scanner/.
Vladimír Vondruš [Sun, 29 Oct 2017 20:41:57 +0000 (21:41 +0100)]
This is just stupid :(
Vladimír Vondruš [Sun, 29 Oct 2017 20:38:35 +0000 (21:38 +0100)]
Tone down even more.
Vladimír Vondruš [Thu, 26 Oct 2017 20:59:51 +0000 (22:59 +0200)]
theme: treat CSS file links as possibly SITEURL-relative as well.
Vladimír Vondruš [Thu, 26 Oct 2017 20:28:27 +0000 (22:28 +0200)]
doc: don't use outdated CSS classes.
Vladimír Vondruš [Thu, 26 Oct 2017 20:25:27 +0000 (22:25 +0200)]
theme: standardize and document slug for blog-related pages.
Vladimír Vondruš [Wed, 25 Oct 2017 11:26:32 +0000 (13:26 +0200)]
doc: cover image for the website.
Vladimír Vondruš [Tue, 24 Oct 2017 16:35:42 +0000 (18:35 +0200)]
Remove all workarounds related to the old schizophrenic URL handling.
Vladimír Vondruš [Tue, 24 Oct 2017 16:26:53 +0000 (18:26 +0200)]
doc: this should be a warning.
Vladimír Vondruš [Tue, 24 Oct 2017 16:26:42 +0000 (18:26 +0200)]
doc: fix reference.
Vladimír Vondruš [Tue, 24 Oct 2017 16:23:08 +0000 (18:23 +0200)]
m.htmlsanity: introduce and use new format_siteurl filter.
I needed a way to prepend SITEURL to page, article, tag etc URLs that's
consistent with current (wrong) Pelican way of doing it:
'/'.join([SITEURL, url])
That of course doesn't work when `url` is an absolute URL, so I'm using
urljoin (but still staying compatible with the above). This is now also
used throughout the template -- I mistakenly assumed that when SITEURL
is set, all page.url etc. properties already have it, but that's
apparently *not* the case, which caused me a bit of headache the past
months.
Vladimír Vondruš [Tue, 24 Oct 2017 15:32:42 +0000 (17:32 +0200)]
doc: properly document what BLOGURL and BLOGNAME do.
And also *use* them. Ugh.
Vladimír Vondruš [Tue, 24 Oct 2017 15:31:41 +0000 (17:31 +0200)]
doc: mention that even the Pelican theme itself needs m.htmlsanity.
Well. That makes it a bit harder to adopt now :/
Vladimír Vondruš [Tue, 24 Oct 2017 12:32:28 +0000 (14:32 +0200)]
css: updated postprocessed CSS files.
Vladimír Vondruš [Tue, 24 Oct 2017 12:31:43 +0000 (14:31 +0200)]
css: darker background for jumbo articles / landing pages.
Vladimír Vondruš [Tue, 24 Oct 2017 12:31:24 +0000 (14:31 +0200)]
m.images: make it possible to enforce alt text for all images and figures.
Vladimír Vondruš [Tue, 24 Oct 2017 12:30:44 +0000 (14:30 +0200)]
plugins: prefix config options by plugin name.
So it's clear what is what.
Vladimír Vondruš [Tue, 24 Oct 2017 12:29:54 +0000 (14:29 +0200)]
m.images: shuffle the code around a bit.
Vladimír Vondruš [Tue, 24 Oct 2017 11:29:24 +0000 (13:29 +0200)]
doc: mention server-side compression config for Apache.
Vladimír Vondruš [Tue, 24 Oct 2017 10:34:45 +0000 (12:34 +0200)]
theme: reduce indentation of the markup a bit.
Vladimír Vondruš [Tue, 24 Oct 2017 10:29:22 +0000 (12:29 +0200)]
theme: generated markup look update.
Vladimír Vondruš [Tue, 24 Oct 2017 09:12:19 +0000 (11:12 +0200)]
m.images: make image grid working on Py3.4.
https://stackoverflow.com/questions/
12720450/unpacking-arguments-only-named-arguments-may-follow-expression
Vladimír Vondruš [Tue, 24 Oct 2017 09:07:40 +0000 (11:07 +0200)]
theme: don't repeat SITENAME if it's the same as page title.
So instead of
m.css | m.css
on the index page one gets just
m.css
Vladimír Vondruš [Tue, 24 Oct 2017 09:07:06 +0000 (11:07 +0200)]
site: properly finally fix link configuration for publishing.
Vladimír Vondruš [Tue, 24 Oct 2017 09:06:34 +0000 (11:06 +0200)]
Wrap the content to 80 cols.
Vladimír Vondruš [Mon, 23 Oct 2017 14:31:26 +0000 (16:31 +0200)]
css: fix top navbar background on small screen sizes.
Vladimír Vondruš [Mon, 23 Oct 2017 14:31:12 +0000 (16:31 +0200)]
Add Gitter link to footer.
Vladimír Vondruš [Mon, 23 Oct 2017 09:42:04 +0000 (11:42 +0200)]
Not so under construction anymore.
Vladimír Vondruš [Mon, 23 Oct 2017 09:38:48 +0000 (11:38 +0200)]
Initial contribution guide.
Vladimír Vondruš [Mon, 23 Oct 2017 09:09:48 +0000 (11:09 +0200)]
Backport Pelican theme and plugins to work with stock 3.7.1.
I hate what I just did, but it was inevitable.
Vladimír Vondruš [Mon, 23 Oct 2017 09:08:11 +0000 (11:08 +0200)]
Tone down a bit.
Vladimír Vondruš [Mon, 23 Oct 2017 09:07:51 +0000 (11:07 +0200)]
Mention the license a bunch of times on the website as well.
The Gitter Badger [Mon, 23 Oct 2017 09:23:21 +0000 (09:23 +0000)]
Add Gitter badge
Vladimír Vondruš [Mon, 23 Oct 2017 07:28:25 +0000 (09:28 +0200)]
htmlsanity: don't put comments into HTML as <!-- -->.
The escaping is weird for the license header because of <> and I don't
think this is of any use.
Vladimír Vondruš [Mon, 23 Oct 2017 07:24:10 +0000 (09:24 +0200)]
css: updated compiled CSS files.
Vladimír Vondruš [Mon, 23 Oct 2017 07:22:39 +0000 (09:22 +0200)]
css: ignore license blobs when postprocessing.
OTOH, put just a single one explicitly at the start.
Vladimír Vondruš [Mon, 23 Oct 2017 07:19:44 +0000 (09:19 +0200)]
License this thing as MIT.
I would have almost forgotten. Ugh.
Vladimír Vondruš [Mon, 23 Oct 2017 07:12:46 +0000 (09:12 +0200)]
css: ignore empty lines and comments when compiling.
Vladimír Vondruš [Sun, 22 Oct 2017 14:00:12 +0000 (16:00 +0200)]
README update.
Vladimír Vondruš [Sun, 22 Oct 2017 13:37:57 +0000 (15:37 +0200)]
doc: Doxygen tagfile to showcase the m.dox plugin.
Vladimír Vondruš [Sun, 22 Oct 2017 13:37:37 +0000 (15:37 +0200)]
Initial documentation and website.
Vladimír Vondruš [Sun, 22 Oct 2017 13:34:33 +0000 (15:34 +0200)]
css: updated compiled CSS files.
Vladimír Vondruš [Sun, 22 Oct 2017 13:33:31 +0000 (15:33 +0200)]
css: move unrelated things out of m-grid.css.
Vladimír Vondruš [Sun, 22 Oct 2017 13:28:09 +0000 (15:28 +0200)]
plugins: new button directives.
Vladimír Vondruš [Sun, 22 Oct 2017 13:27:46 +0000 (15:27 +0200)]
css: styling for buttons.
Vladimír Vondruš [Sun, 22 Oct 2017 13:26:30 +0000 (15:26 +0200)]
css: make base font size configurable.
Vladimír Vondruš [Sun, 22 Oct 2017 13:15:49 +0000 (15:15 +0200)]
theme: proper social meta tag URL for overriden index page.
Vladimír Vondruš [Sun, 22 Oct 2017 13:15:27 +0000 (15:15 +0200)]
css: new .m-small and .m-big CSS classes for text.
Vladimír Vondruš [Sun, 22 Oct 2017 13:14:16 +0000 (15:14 +0200)]
css: dark pygments style update.
Vladimír Vondruš [Wed, 18 Oct 2017 13:00:00 +0000 (15:00 +0200)]
css: get rid of combined margin overrides for inflatable content.
In particular, these were treated by the browser as having more priority
than the :last-child selectors removing the bottom padding on elements
on bottom of sections / page.
Hopefully I didn't break anything else with this :D
Vladimír Vondruš [Wed, 18 Oct 2017 12:52:46 +0000 (14:52 +0200)]
css: align tables to center by default.
For consistency with images, figures etc.
Vladimír Vondruš [Wed, 18 Oct 2017 12:52:22 +0000 (14:52 +0200)]
theme: properly expand links in landing page.
Vladimír Vondruš [Wed, 18 Oct 2017 12:51:49 +0000 (14:51 +0200)]
plugins: make the expand_links Jinja filter actually working.
Vladimír Vondruš [Wed, 18 Oct 2017 12:48:49 +0000 (14:48 +0200)]
css: consistent coloring for primary/info style in dark theme.
Vladimír Vondruš [Thu, 12 Oct 2017 09:47:47 +0000 (11:47 +0200)]
css: make border radius configurable.
Vladimír Vondruš [Wed, 11 Oct 2017 19:50:00 +0000 (21:50 +0200)]
plugins: new m.filesize plugin.
Vladimír Vondruš [Wed, 11 Oct 2017 19:41:03 +0000 (21:41 +0200)]
css: updated compiled versions of CSS files.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:58 +0000 (21:39 +0200)]
theme: make the index page equivalent to archives if not overriden.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:36 +0000 (21:39 +0200)]
theme: don't crash if majority of configuration is missing.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:04 +0000 (21:39 +0200)]
theme: make it possible to provide more than one extra CSS for a page.
To make it consistent with CSS_FILES.
Vladimír Vondruš [Wed, 11 Oct 2017 19:38:46 +0000 (21:38 +0200)]
theme: provide social meta tags for pages as well.
Vladimír Vondruš [Wed, 11 Oct 2017 19:38:17 +0000 (21:38 +0200)]
theme: provide twitter:card meta tag even if article cover is not present.
Vladimír Vondruš [Wed, 11 Oct 2017 19:36:39 +0000 (21:36 +0200)]
theme: no need to strip tags from article title.
Also: might be harmful if using quotes etc.
Vladimír Vondruš [Wed, 11 Oct 2017 19:36:00 +0000 (21:36 +0200)]
theme: provide <link rel="prev"> etc. for paginated listings.
Vladimír Vondruš [Wed, 11 Oct 2017 19:35:17 +0000 (21:35 +0200)]
css: import also the pygments style to make things easy.
Vladimír Vondruš [Wed, 11 Oct 2017 19:34:34 +0000 (21:34 +0200)]
css: sane default height of the top navpanel.
So it's not too tiny when there's nothing inside.
Vladimír Vondruš [Wed, 11 Oct 2017 19:33:11 +0000 (21:33 +0200)]
theme: moved the CSS files outside of the arbitrary inc/ directory.
The user shall have the full power where to put those files using
THEME_STATIC_DIR.
Vladimír Vondruš [Wed, 20 Sep 2017 11:24:37 +0000 (13:24 +0200)]
css, theme: support for landing pages.
Also goes together with improved layout for jumbo articles, as the two
are now kinda similar use cases, but in a different context.
Vladimír Vondruš [Tue, 19 Sep 2017 19:26:56 +0000 (21:26 +0200)]
theme: highlight navbar items based on slug, not title.
Because more than one subpage can (and usually does) have the same
title.
Vladimír Vondruš [Tue, 19 Sep 2017 19:22:23 +0000 (21:22 +0200)]
theme: support for page breadcrumb attributes.
Vladimír Vondruš [Tue, 19 Sep 2017 19:20:15 +0000 (21:20 +0200)]
theme: adapt to link expansion API changes.
Vladimír Vondruš [Tue, 19 Sep 2017 18:56:19 +0000 (20:56 +0200)]
m.htmlsanity: add expand_link[s] Jinja2 filters.
This depends on part of https://github.com/getpelican/pelican/pull/2164
(in particular having the _link_expander() function), everything else
from the PR is implemented here.
Vladimír Vondruš [Mon, 18 Sep 2017 17:00:40 +0000 (19:00 +0200)]
css: .m-jumbo class and related unique things are now IDs.
Because there can be only one on the page.
Vladimír Vondruš [Sat, 16 Sep 2017 19:20:40 +0000 (21:20 +0200)]
css: styling for breadcrumb navigation.
Vladimír Vondruš [Fri, 15 Sep 2017 20:01:18 +0000 (22:01 +0200)]
css: properly align the navbar with contents.
Was narrower by 0.25rem from each side. Also simplified the markup a
bit.
Vladimír Vondruš [Fri, 15 Sep 2017 18:47:31 +0000 (20:47 +0200)]
css: updated compiled versions of CSS styles.
Vladimír Vondruš [Fri, 15 Sep 2017 18:47:01 +0000 (20:47 +0200)]
css: avoid IE doing ugly things where it shouldn't.
Vladimír Vondruš [Fri, 15 Sep 2017 18:42:32 +0000 (20:42 +0200)]
css, m.images: delimit image grid rows with a wrapper <div>.
Allows me to remove the ugly hack from m-grid.css, fixes misalignment
in some browsers (IE, Edge, FF) and makes the images properly span the
full content width in *all* cases now.
Vladimír Vondruš [Fri, 15 Sep 2017 18:18:48 +0000 (20:18 +0200)]
css: provide postprocessed versions of CSS files.
Makes the whole thing work on IE and Edge! Yay!
Vladimír Vondruš [Fri, 15 Sep 2017 16:13:12 +0000 (18:13 +0200)]
css: fix variable names.