chiark / gitweb /
Vladimír Vondruš [Thu, 30 Nov 2017 17:47:58 +0000 (18:47 +0100)]
doc: improve docs about the include directive.
Vladimír Vondruš [Thu, 30 Nov 2017 17:47:33 +0000 (18:47 +0100)]
css: updated postprocessed CSS files.
Vladimír Vondruš [Thu, 30 Nov 2017 17:45:01 +0000 (18:45 +0100)]
css: overlap page cover and content a bit.
So the transition is not so clearly visible.
Vladimír Vondruš [Thu, 30 Nov 2017 17:06:12 +0000 (18:06 +0100)]
css: fix text alignment once more.
Vladimír Vondruš [Sun, 26 Nov 2017 01:58:48 +0000 (02:58 +0100)]
css: make text alignment work properly in <th> elements.
Vladimír Vondruš [Sun, 26 Nov 2017 01:56:01 +0000 (02:56 +0100)]
Support for colored terminal output highlighting.
Vladimír Vondruš [Sun, 26 Nov 2017 01:52:11 +0000 (02:52 +0100)]
m.code: patch the builtin include directive for our code support.
Uglyyyy.
Vladimír Vondruš [Thu, 23 Nov 2017 13:08:44 +0000 (14:08 +0100)]
css: all <pre> tags should be treated equally for inflating.
Vladimír Vondruš [Thu, 23 Nov 2017 13:07:45 +0000 (14:07 +0100)]
css: copypaste error.
But a harmless one, as the default color is the, um, default color
anyway. In the builtin themes, at least.
Vladimír Vondruš [Wed, 29 Nov 2017 23:29:29 +0000 (00:29 +0100)]
m.htmlsanity: properly use DEFAULT_LANG and :lang: metadata.
There's a patch to Pelican at https://github.com/getpelican/pelican/pull/2256
which propagates DEFAULT_LANG to docutils, but until that's accepted
and released, I'm detecting its presence and falling back to
monkey-patched version that enables the same from within the
m.htmlsanity plugin.
Besides that, the per-page/per-article :lang: metadata are also taken
into account. The docs were updated to reflect this.
Vladimír Vondruš [Wed, 29 Nov 2017 23:25:01 +0000 (00:25 +0100)]
m.htmlsanity: use double quotes for text.
Vladimír Vondruš [Wed, 29 Nov 2017 23:23:22 +0000 (00:23 +0100)]
m.htmlsanity: don't fail so hard if Pyphen is not available.
Vladimír Vondruš [Wed, 29 Nov 2017 21:11:17 +0000 (22:11 +0100)]
doc: this won't work if the path does not exist yet.
Vladimír Vondruš [Wed, 29 Nov 2017 21:11:02 +0000 (22:11 +0100)]
Minor README updates.
Vladimír Vondruš [Sat, 18 Nov 2017 17:42:39 +0000 (18:42 +0100)]
dox: fix latex2svg.py path.
Vladimír Vondruš [Sat, 18 Nov 2017 17:19:32 +0000 (18:19 +0100)]
css: update the compiled CSS files.
Vladimír Vondruš [Sat, 18 Nov 2017 17:17:12 +0000 (18:17 +0100)]
doc: use native reST anchors.
Vladimír Vondruš [Sat, 18 Nov 2017 17:12:58 +0000 (18:12 +0100)]
css: code blocks are now darker instead of lighter.
I like it better now. Also a few other related fixes. Thanks to
@Squareys for the idea!
Vladimír Vondruš [Sat, 18 Nov 2017 17:12:06 +0000 (18:12 +0100)]
css: ability to disable the hover effect on tables.
Vladimír Vondruš [Sat, 18 Nov 2017 17:11:12 +0000 (18:11 +0100)]
css: new Badge component.
Vladimír Vondruš [Sat, 18 Nov 2017 16:08:58 +0000 (17:08 +0100)]
css: new Label component.
Vladimír Vondruš [Sat, 18 Nov 2017 15:18:01 +0000 (16:18 +0100)]
doc: push for better semantics of notes and blocks.
Vladimír Vondruš [Sat, 18 Nov 2017 14:17:44 +0000 (15:17 +0100)]
css: hint that two-column navbar should have successive numbering.
And apply that to the theme as well.
Vladimír Vondruš [Sat, 18 Nov 2017 14:17:03 +0000 (15:17 +0100)]
css: make it possible to add a thinner subtitle to navbar brand.
Vladimír Vondruš [Sat, 18 Nov 2017 14:10:44 +0000 (15:10 +0100)]
css: set the hamburger glyph in top navbar from CSS.
Instead of hardcoding it from the markup. This way when the CSS is not
present at all (broken site), the user is not present with confusing
hamburgers on the top.
Important: unless you are using the builtin Pelican theme, you need to
update your markup to remove the hamburger glyph, otherwise you'll have
two of them there.
Vladimír Vondruš [Fri, 10 Nov 2017 09:22:31 +0000 (10:22 +0100)]
doc: improve the Writing Content section with more info and links.
Vladimír Vondruš [Tue, 7 Nov 2017 17:16:21 +0000 (18:16 +0100)]
m.htmlsanity: apply hyphenation to everything in FORMATTED_FIELDS.
Instead of just the summary. Makes more sense.
Vladimír Vondruš [Tue, 7 Nov 2017 17:14:51 +0000 (18:14 +0100)]
theme: better behaving category/author/tag list on jumbo articles.
Vladimír Vondruš [Tue, 7 Nov 2017 17:09:03 +0000 (18:09 +0100)]
template: deduplicate article footer markup.
Vladimír Vondruš [Tue, 7 Nov 2017 16:51:03 +0000 (17:51 +0100)]
m.htmlsanity: use a single global variable to save settings.
Vladimír Vondruš [Tue, 7 Nov 2017 15:35:40 +0000 (16:35 +0100)]
css: make figure work with lengthy caption or large images.
Previously lengthy caption or description was extending beyond image
instead of being wrapped. Also large images didn't stop at 100% width,
leaking out of the page.
Vladimír Vondruš [Tue, 7 Nov 2017 15:31:52 +0000 (16:31 +0100)]
site: sane date formatting.
Vladimír Vondruš [Mon, 6 Nov 2017 20:21:42 +0000 (21:21 +0100)]
site: fix publication.
Vladimír Vondruš [Mon, 6 Nov 2017 20:21:20 +0000 (21:21 +0100)]
Better credits for latex2svg.
Sorry!
Vladimír Vondruš [Mon, 6 Nov 2017 17:24:33 +0000 (18:24 +0100)]
doc: document the author list in Page Layout section as well.
Vladimír Vondruš [Mon, 6 Nov 2017 17:22:25 +0000 (18:22 +0100)]
Revert "css: better behaving background on short pages."
Breaks figure and code figure borders, because they have z-index se to
-1, which causes them to get hidden behind the body background. Not sure
how to solve that better for now, so I'm just reverting to the lesser of
the two evils.
This reverts commit
7844e00a6f93d379104896bcd5500a2f0bc9afcc.
Vladimír Vondruš [Mon, 6 Nov 2017 17:09:13 +0000 (18:09 +0100)]
theme: make use of article.modified property.
Vladimír Vondruš [Mon, 6 Nov 2017 16:55:44 +0000 (17:55 +0100)]
theme: ability to optionally show also author list.
Vladimír Vondruš [Mon, 6 Nov 2017 16:55:20 +0000 (17:55 +0100)]
theme: remove unnecessary space.
Vladimír Vondruš [Mon, 6 Nov 2017 16:53:15 +0000 (17:53 +0100)]
theme: prefix also theme-related config with M_ to avoid confusion.
Sorry. A fully breaking change for the Pelican theme.
Vladimír Vondruš [Sun, 5 Nov 2017 17:21:58 +0000 (18:21 +0100)]
site: publish only what's needed from the theme.
Vladimír Vondruš [Sun, 5 Nov 2017 17:19:05 +0000 (18:19 +0100)]
Update bundled latex2svg from upstream.
Vladimír Vondruš [Sun, 5 Nov 2017 15:58:26 +0000 (16:58 +0100)]
Improve documentation about additional dependencies.
And also provide a short guide how to build the m.css website itself.
gotchafr [Sat, 4 Nov 2017 13:05:23 +0000 (14:05 +0100)]
Missing libgs warning (latex2svg.py) and generation failing.
Problem was the the name looked for 'libgs' on linux platform it should
be 'gs'. On Ubuntu 16.04 find_library gives 'libgs.so.9'
Last, but not least, LaTeX packages... (not small ones indeed!)
```
sudo apt-get install texlive-base
sudo apt-get install texlive-latex-extra
sudo apt-get install texlive-fonts-extra
```
Vladimír Vondruš [Sat, 4 Nov 2017 13:04:44 +0000 (14:04 +0100)]
doc: explicitly put code roles into all files.
Even though Pelican doesn't complain now, as it depends heavily on the
order in which the files are parsed.
gotchafr [Sat, 4 Nov 2017 12:58:54 +0000 (13:58 +0100)]
Better locale name for date formatting.
gotchafr [Sat, 4 Nov 2017 12:58:15 +0000 (13:58 +0100)]
Correct text role error on pelican 3.7.1
Vladimír Vondruš [Thu, 2 Nov 2017 20:22:20 +0000 (21:22 +0100)]
site: minor conf updates.
Vladimír Vondruš [Thu, 2 Nov 2017 20:21:50 +0000 (21:21 +0100)]
doc: writing m.css in a typewriter font is *ugly*.
Vladimír Vondruš [Thu, 2 Nov 2017 20:21:03 +0000 (21:21 +0100)]
doc: this is not needed anymore.
Vladimír Vondruš [Thu, 2 Nov 2017 19:48:16 +0000 (20:48 +0100)]
css: better behaving background on short pages.
Previously, if the page was too short, the lighter footer background was
not all the way down, looking ugly. Now the <html> element has the
footer background color and that's overriden by <body> to the body
background.
Again, I hope this doesn't break anyone's site :)
Vladimír Vondruš [Thu, 2 Nov 2017 19:44:38 +0000 (20:44 +0100)]
site: huh.
Vladimír Vondruš [Thu, 2 Nov 2017 19:44:21 +0000 (20:44 +0100)]
site: put my e-mail to the footer.
Yay! More spam!
Vladimír Vondruš [Thu, 2 Nov 2017 19:43:41 +0000 (20:43 +0100)]
theme: apply format_siteurl to all navbar and feed links.
So all URLs are absolute.
Vladimír Vondruš [Thu, 2 Nov 2017 19:42:43 +0000 (20:42 +0100)]
doc: document the format_siteurl Jinja2 filter better.
Vladimír Vondruš [Thu, 2 Nov 2017 19:23:32 +0000 (20:23 +0100)]
theme: ability to override which menu item is highlighted.
Vladimír Vondruš [Thu, 2 Nov 2017 19:13:54 +0000 (20:13 +0100)]
theme: new :header: and :footer: page fields.
I'm putting the page-specific navigation there, because otherwise
highlighting the last page section would highlight the nav as well and
that is just wrong in so many ways.
Vladimír Vondruš [Thu, 2 Nov 2017 18:19:41 +0000 (19:19 +0100)]
css: m-container-inflatable is now a class instead of ID.
Because I realized that having multiple inflatable containers (one after
another) is a completely valid use case. Sorry for breaking your stuff
with this.
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