chiark / gitweb /
Vladimír Vondruš [Sun, 4 Nov 2018 10:14:26 +0000 (11:14 +0100)]
doxygen: properly fill error message placeholder.
Vladimír Vondruš [Sun, 4 Nov 2018 10:13:44 +0000 (11:13 +0100)]
doxygen: allow both <para> and <mcss:div> be parent of block elements.
Vladimír Vondruš [Sun, 4 Nov 2018 10:06:55 +0000 (11:06 +0100)]
css: improve the debug style a tiny bit.
Vladimír Vondruš [Sat, 3 Nov 2018 21:42:13 +0000 (22:42 +0100)]
doxygen: handle code/formula block/inline distinction always.
And not only when these are in paragraphs -- we can wrap them in a
m.css-specific tag and this would break. There should be no visible
behavioral change with this.
Vladimír Vondruš [Sat, 3 Nov 2018 21:39:30 +0000 (22:39 +0100)]
site: enable debug CSS for local development.
Vladimír Vondruš [Sat, 3 Nov 2018 21:38:41 +0000 (22:38 +0100)]
css: support color swatches in code snippets.
Still needs to be hooked into Pygments, m.code and Doxygen theme
somehow.
Vladimír Vondruš [Sat, 3 Nov 2018 21:28:49 +0000 (22:28 +0100)]
css: fix padding-after for SVG images.
:(
Vladimír Vondruš [Sat, 3 Nov 2018 21:23:58 +0000 (22:23 +0100)]
css: reworked support for floatable components.
What's done, roughly:
* It's now possible to tuck the floating components out of the page
flow similarly to .m-container-inflate. This required me to update
the active section highlighting to handle this case correctly as well
(and there's a lot more CSS for that now, ugh).
* The .m-container-inflate has now padding after to make it better
integrable into everything else.
* OTOH, the all-around padding for .m-col-*-* elements is done only
when they are direct children of .m-row. Otherwise, the padding is
done only for .m-left-*, .m-right-*, .m-center-* and only on sides
where it is needed.
Also added a few tests for functionality that was neglected before.
Vladimír Vondruš [Sat, 3 Nov 2018 13:06:48 +0000 (14:06 +0100)]
Add the light color theme source as well.
Vladimír Vondruš [Sat, 3 Nov 2018 13:03:47 +0000 (14:03 +0100)]
HTTPS links to external sites as well, if possible.
Vladimír Vondruš [Sat, 3 Nov 2018 12:03:33 +0000 (13:03 +0100)]
mcss.mosra.cz is HTTPS now.
Other parts of mosra.cz not yet, as I don't want to bother with broken
design due to the outdated theme right now.
Vladimír Vondruš [Mon, 22 Oct 2018 00:37:27 +0000 (02:37 +0200)]
Magnum has HTTPS now.
Vladimír Vondruš [Mon, 22 Oct 2018 00:35:05 +0000 (02:35 +0200)]
m.htmlsanity: don't choke on links without refuri.
Sorry :(
Vladimír Vondruš [Sun, 21 Oct 2018 20:21:33 +0000 (22:21 +0200)]
doc: fix Doxygen snippet.
What was I doing there?!
Vladimír Vondruš [Sun, 21 Oct 2018 20:20:52 +0000 (22:20 +0200)]
m.htmlsanity: don't apply typography on links with URLs in title.
And e-mail addresses. That's a very bad thing to do.
Vladimír Vondruš [Tue, 16 Oct 2018 12:40:38 +0000 (14:40 +0200)]
css: highlight also diff subheadings.
Vladimír Vondruš [Tue, 16 Oct 2018 12:40:13 +0000 (14:40 +0200)]
artwork: update the theme file with diff highlighting colors.
Vladimír Vondruš [Tue, 16 Oct 2018 11:55:37 +0000 (13:55 +0200)]
css: implement diff colors for the Pygments dark style.
Vladimír Vondruš [Sun, 14 Oct 2018 00:00:59 +0000 (02:00 +0200)]
Doc++
Vladimír Vondruš [Sun, 14 Oct 2018 16:26:25 +0000 (18:26 +0200)]
doxygen: implement support for \dot and \dotfile.
Ugh, this blew up again. Three days to get here.
Vladimír Vondruš [Sun, 14 Oct 2018 16:24:40 +0000 (18:24 +0200)]
doxygen: delimit inline CSS with a semicolon for consistency.
Vladimír Vondruš [Sun, 14 Oct 2018 13:08:07 +0000 (15:08 +0200)]
doxygen: fix parsing of two consecutive HTML navbar links.
Of course I have bugz!
Vladimír Vondruš [Sun, 14 Oct 2018 14:35:40 +0000 (16:35 +0200)]
m.dot: compatibility with graph figures from m.components.
Vladimír Vondruš [Sun, 14 Oct 2018 14:32:10 +0000 (16:32 +0200)]
m.dot: make title optional.
Requiring a title won't make any sense for graph figures.
Vladimír Vondruš [Sun, 14 Oct 2018 00:03:49 +0000 (02:03 +0200)]
m.dot: extract the reusable guts to an independent module.
Will get used in the Doxygen theme, where we don't need docutils or
Pelican.
Vladimír Vondruš [Sun, 14 Oct 2018 14:38:38 +0000 (16:38 +0200)]
m.math: compatibility with math figures from m.components.
Vladimír Vondruš [Sat, 13 Oct 2018 19:18:41 +0000 (21:18 +0200)]
m.math: process all math in the directive at once.
Having multiple blocks is not very useful, as you don't get any of the
fancy typesetting features for that. Use latex arrays for that or
put the math into multiple consecutive directives.
Vladimír Vondruš [Sun, 14 Oct 2018 00:17:46 +0000 (02:17 +0200)]
m.components: support math and graph figures, figure captions.
The m.math and m.dot plugins need to be updated as well, to put the
<svg> directly inside instead of wrapping it in a <div>. THat'll get
done in later commits.
Vladimír Vondruš [Sun, 14 Oct 2018 15:12:36 +0000 (17:12 +0200)]
css: enforce bottom padding on figures w/ components in description.
Otherwise stuff like `div.m-graph:last-child` that resets it back to 0
gets a priority.
Vladimír Vondruš [Sat, 13 Oct 2018 23:57:48 +0000 (01:57 +0200)]
css: make it possible to have math and graph figures.
Also added a test file verifying math coloring priorities.
Vladimír Vondruš [Sat, 13 Oct 2018 16:41:57 +0000 (18:41 +0200)]
css: make graph, plot <svg>s and block math <svg> a block element.
It was inline, which caused weird padding on the bottom.
Vladimír Vondruš [Sat, 13 Oct 2018 17:48:26 +0000 (19:48 +0200)]
css: ensure parity between <img> and <svg> for images and figures.
Vladimír Vondruš [Sat, 13 Oct 2018 16:42:41 +0000 (18:42 +0200)]
css: have padding-after also for plots and graphs.
Not sure why this was omitted.
Vladimír Vondruš [Fri, 12 Oct 2018 20:06:09 +0000 (22:06 +0200)]
doxygen: make it possible to have separate brand link in navbar.
Vladimír Vondruš [Fri, 12 Oct 2018 19:57:53 +0000 (21:57 +0200)]
css: make it possible to have a main/subsite link in the navbar.
Vladimír Vondruš [Fri, 12 Oct 2018 19:36:16 +0000 (21:36 +0200)]
theme: ability to create pages with a passthrough template.
I.e., without any header navbar or footer.
Vladimír Vondruš [Fri, 12 Oct 2018 19:08:41 +0000 (21:08 +0200)]
theme: make it possible to add JS files and arbitrary HTML to page head.
Vladimír Vondruš [Thu, 11 Oct 2018 10:49:32 +0000 (12:49 +0200)]
doxygen: support arbitrary HTML for navbar links.
Vladimír Vondruš [Thu, 11 Oct 2018 10:48:04 +0000 (12:48 +0200)]
doxygen: remove redundancy from test names.
Vladimír Vondruš [Thu, 11 Oct 2018 10:47:32 +0000 (12:47 +0200)]
doxygen: support adding extra stuff to HTML <head>.
There's a new option for that: M_HTML_HEADER. Specify it as a multi-line
value for extra prettiness.
Vladimír Vondruš [Thu, 11 Oct 2018 11:23:29 +0000 (13:23 +0200)]
doxygen: concat string Doxyfile properties with a newline, not a space.
I need this for proper multi-line value support. This was quite a corner
case, so I don't expect any user code breaking. I'm now also properly
handling single quotes in Doxyfile, by accident the test data wasn't
really testing the behavior correctly.
Vladimír Vondruš [Sun, 7 Oct 2018 11:11:16 +0000 (13:11 +0200)]
doxygen: support specifying explicit image width/height.
Vladimír Vondruš [Fri, 28 Sep 2018 17:10:32 +0000 (19:10 +0200)]
doc: remove old and not-true-anymore statements.
Vladimír Vondruš [Wed, 19 Sep 2018 11:40:30 +0000 (13:40 +0200)]
package/ci: argh matplotlib is different now too.
Vladimír Vondruš [Wed, 19 Sep 2018 11:29:49 +0000 (13:29 +0200)]
math: work around a bug in latex xcolor package < 2.12.
Affects Ubuntu 16.04.
Vladimír Vondruš [Wed, 19 Sep 2018 11:04:06 +0000 (13:04 +0200)]
math: update tests for dvisvgm > 2.2.2.
This is not a welcome change, unfortunately. It only bloats the output.
Vladimír Vondruš [Thu, 13 Sep 2018 19:08:05 +0000 (21:08 +0200)]
doc: update Doxygen docs.
I wanted to deprecate \m_div, but nope. Not possible. Everything is
shit.
Vladimír Vondruš [Thu, 13 Sep 2018 18:55:33 +0000 (20:55 +0200)]
doxygen: make it possible to abuse \par for a bigger m.css block.
Vladimír Vondruš [Thu, 13 Sep 2018 18:54:04 +0000 (20:54 +0200)]
doxygen: support \parblock.
Uh, finally a <div>-like thing.
Vladimír Vondruš [Thu, 13 Sep 2018 18:46:29 +0000 (20:46 +0200)]
css: make .m-code-figure and .m-console-figure usable also on <div>s.
For better flexibility -- it's hard to hammer a <figure> out of Doxygen
XML.
Vladimír Vondruš [Thu, 13 Sep 2018 17:49:29 +0000 (19:49 +0200)]
doc: fix warnings coming from (the upcoming) Pelican 3.8.
Vladimír Vondruš [Thu, 13 Sep 2018 17:17:00 +0000 (19:17 +0200)]
css: style focused link/canvas/input outline.
Matches the current item color in top navbar.
Vladimír Vondruš [Thu, 13 Sep 2018 16:58:33 +0000 (18:58 +0200)]
doxygen: workarounds to make coverage.py happy :/
Vladimír Vondruš [Thu, 13 Sep 2018 16:47:34 +0000 (18:47 +0200)]
doxygen: support Qt signals and slots.
Vladimír Vondruš [Thu, 13 Sep 2018 16:44:43 +0000 (18:44 +0200)]
doxygen: ignore private non-virtual functions in user-defined groups.
Only documented virtual private functions are shown.
Vladimír Vondruš [Thu, 13 Sep 2018 15:05:05 +0000 (17:05 +0200)]
theme: properly fallback to FEED_ATOM if FEED_ATOM_URL is not set.
Vladimír Vondruš [Tue, 14 Aug 2018 21:20:28 +0000 (23:20 +0200)]
doxygen: support friend functions.
Not friend classes/structs/unions, in that case Doxygen provides way too
little info to be at all useful.
Vladimír Vondruš [Tue, 14 Aug 2018 19:51:11 +0000 (21:51 +0200)]
doxygen: don't silently ignore friend declarations.
Vladimír Vondruš [Thu, 13 Sep 2018 14:14:57 +0000 (16:14 +0200)]
doxygen: code coverage back to 100%.
Vladimír Vondruš [Thu, 13 Sep 2018 14:12:17 +0000 (16:12 +0200)]
doxygen: don't assert also for unexpected commands inside sections.
Vladimír Vondruš [Thu, 13 Sep 2018 13:56:12 +0000 (15:56 +0200)]
doxygen: page briefs are not available on 1.8.13.
And 1.8.14 binary is *still* not usable on Travis.
Vladimír Vondruš [Thu, 13 Sep 2018 12:59:19 +0000 (14:59 +0200)]
theme: make article date splitting more robust.
This could fail in case there are spaces in some of the generated
values. Still not ideal, should be made configurable (locale-dependent
order etc).
Vladimír Vondruš [Thu, 13 Sep 2018 12:47:41 +0000 (14:47 +0200)]
doxygen: don't assert on unexpected sections / commands.
Until now, putting a @param into a variable description (or similar
unexpected things) resulted in an assertion. Turns out this happens
quite often, so I made that into a warning instead. The contents are
simply ignored.
Vladimír Vondruš [Thu, 13 Sep 2018 11:27:14 +0000 (13:27 +0200)]
doxygen: fix a CASE_SENSE_NAMES omission.
In
1d7c689fd36b6952c0f6877ad9af562e3e10433a I fixed one broken part but
forgot about this one. This one affects the Pages tree and the test of
course didn't check it. Now it does.
Vladimír Vondruš [Thu, 13 Sep 2018 11:16:23 +0000 (13:16 +0200)]
doxygen: as usual, I found more Doxygen bugs while fixing other stuff.
This usual thing in Markdown files, for example:
Hello world
###########
is parsed as a paragraph and a 11th level heading with no title.
UHHMAZING, isn't it. Because of that, I'm no longer asserting on too
large heading levels but instead trying to provide helpful warning
messages for the user.
Vladimír Vondruš [Thu, 13 Sep 2018 10:29:31 +0000 (12:29 +0200)]
doxygen: deprecation status also for pages.
Originally I didn't think this would ever be useful, but recently I
deprecated a whole library and thus also the overview pages for it
should be marked as deprecated.
Vladimír Vondruš [Thu, 13 Sep 2018 10:18:16 +0000 (12:18 +0200)]
doxygen: display the deprecation label next to the name, not after brief.
Vladimír Vondruš [Thu, 13 Sep 2018 09:55:49 +0000 (11:55 +0200)]
theme: display article draft status more prominently.
So I can submit clearly marked draft articles for review and I don't
accidentally leave the draft status enabled when publishing.
Vladimír Vondruš [Wed, 12 Sep 2018 10:39:42 +0000 (12:39 +0200)]
m.plots: make it possible to hide particular extra labels.
Vladimír Vondruš [Sun, 26 Aug 2018 18:40:53 +0000 (20:40 +0200)]
css: added m-spacing-150.
Vladimír Vondruš [Sun, 26 Aug 2018 16:03:15 +0000 (18:03 +0200)]
plugins: new m.link plugin.
Vladimír Vondruš [Sun, 26 Aug 2018 15:52:34 +0000 (17:52 +0200)]
plugins: make it possible to specify classes on all link roles.
Vladimír Vondruš [Sun, 26 Aug 2018 14:46:00 +0000 (16:46 +0200)]
css: ability to remove the underline from links.
This will be a bit harder to do for reST, will need to create a custom
role for it.
Vladimír Vondruš [Sun, 26 Aug 2018 14:27:48 +0000 (16:27 +0200)]
css: add m-block-dot-* to have linear lists delimited by a center dot.
Vladimír Vondruš [Wed, 22 Aug 2018 16:29:39 +0000 (18:29 +0200)]
doxygen: parse the Doxyfile as UTF-8.
Otherwise it blows up on Doxyfiles with non-ASCII characters when system
locale is not UTF-8.
Vladimír Vondruš [Wed, 22 Aug 2018 16:29:11 +0000 (18:29 +0200)]
doc: improve docs for the Doxygen \m_keyword command.
Vladimír Vondruš [Tue, 14 Aug 2018 19:19:57 +0000 (21:19 +0200)]
css: correctly color inline math in doxygen brief descriptions.
Vladimír Vondruš [Tue, 14 Aug 2018 19:15:56 +0000 (21:15 +0200)]
doxygen: wrap long class / namespace <h1>s on semicolons.
Vladimír Vondruš [Tue, 14 Aug 2018 19:12:51 +0000 (21:12 +0200)]
doxygen: support brief for enum values.
Turns out the enum values can be documented like this:
//! A value
enum Enum {
Value, //!< A value
};
and the /// or //! comments, unlike /** */, are treated as brief by
doxygen. This is a completely valid use case and I don't want to force
users to a different syntax here, so here ya go.
Vladimír Vondruš [Sun, 1 Jul 2018 12:40:45 +0000 (14:40 +0200)]
m.dot: compatibility with Graphviz < 2.40.
Ugh. This does not scale at all.
Vladimír Vondruš [Sun, 1 Jul 2018 14:07:07 +0000 (16:07 +0200)]
m.dot: support structs/records as well.
Vladimír Vondruš [Sun, 1 Jul 2018 13:08:03 +0000 (15:08 +0200)]
m.dot: explicitly specify font size of the SVG.
Otherwise it won't go well in combination with auto-scaling and font
sizes of the document relative to screen size (such as in presentation
mode).
Vladimír Vondruš [Mon, 18 Jun 2018 23:45:41 +0000 (01:45 +0200)]
doc: show where graph rendering is tested in build status.
Vladimír Vondruš [Mon, 18 Jun 2018 23:23:53 +0000 (01:23 +0200)]
m.dot: new highly experimental graph drawing plugin.
Vladimír Vondruš [Mon, 18 Jun 2018 23:26:19 +0000 (01:26 +0200)]
m.math: mark private variable as private.
Vladimír Vondruš [Mon, 18 Jun 2018 23:26:01 +0000 (01:26 +0200)]
m.math: escape more things in the regexp.
Vladimír Vondruš [Mon, 18 Jun 2018 23:24:14 +0000 (01:24 +0200)]
doc: it can be just apt install.
Vladimír Vondruš [Mon, 18 Jun 2018 13:13:16 +0000 (15:13 +0200)]
doc: mention that Doxygen math/code rendering is equivalent to Pelican.
I don't want to repeat all the features there :)
Vladimír Vondruš [Mon, 18 Jun 2018 13:11:58 +0000 (15:11 +0200)]
doc: update math docs with new features and behavior.
Vladimír Vondruš [Mon, 18 Jun 2018 13:20:25 +0000 (15:20 +0200)]
m.math: test also math following surrounding text size.
Vladimír Vondruš [Mon, 18 Jun 2018 13:09:13 +0000 (15:09 +0200)]
m.math: ability to color equation parts using m.css color classes.
Vladimír Vondruš [Mon, 18 Jun 2018 09:42:07 +0000 (11:42 +0200)]
m.math: properly escape formula sources in the output.
Vladimír Vondruš [Mon, 18 Jun 2018 09:21:09 +0000 (11:21 +0200)]
m.math: use em units instead of pt.
So it's possible to actually scale the formulas relative to surrounding
text.
Vladimír Vondruš [Mon, 18 Jun 2018 07:50:30 +0000 (09:50 +0200)]
m.math: having "LaTeX Math" in a hover title is as useless as it can get.
I thought browsers would show the <desc> as well, but no. So putting the
math formula directly in the <title>.
Vladimír Vondruš [Mon, 18 Jun 2018 13:06:05 +0000 (15:06 +0200)]
css: make it possible to have colored *parts* of math equations.
Vladimír Vondruš [Mon, 18 Jun 2018 13:05:26 +0000 (15:05 +0200)]
css: make it possible to have math *in buttons*.
Yes, I'm crazy.
Vladimír Vondruš [Mon, 18 Jun 2018 07:54:23 +0000 (09:54 +0200)]
css: make it possible to disable component padding at the bottom.
Reusing the .m-nopadb class from the grid CSS.
Vladimír Vondruš [Mon, 18 Jun 2018 11:30:42 +0000 (13:30 +0200)]
doxygen: avoid having stale url_base when parsing defines.
I *knew* something would blow up here.
Vladimír Vondruš [Mon, 18 Jun 2018 09:29:00 +0000 (11:29 +0200)]
doxygen: put search icon size directly into the markup.
Fixes the problem with a giant magnifying glass when no style is present
and also should fix the random layout bugs with top navbar being twice
as high (which is probably caused by the browser not calculating the
floating etc. properly due to such a huge change after the style is
loaded).
Vladimír Vondruš [Sun, 17 Jun 2018 11:01:53 +0000 (13:01 +0200)]
css: make postprocess.py work on Python < 3.6.