chiark / gitweb /
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.
Vladimír Vondruš [Sun, 17 Jun 2018 10:06:08 +0000 (12:06 +0200)]
package/ci: test that I didn't forget to update compiled CSS.
Vladimír Vondruš [Sun, 17 Jun 2018 10:54:37 +0000 (12:54 +0200)]
Doc++
Vladimír Vondruš [Sun, 17 Jun 2018 10:53:06 +0000 (12:53 +0200)]
doxygen: make it possible to hide m.css options from Doxygen.
Makes the output finally bearable.
Vladimír Vondruš [Sun, 17 Jun 2018 09:55:13 +0000 (11:55 +0200)]
site: avoid ugly wrapping on /admire/math/.
Soon it also won't be a Pelican plugin anymore.
Vladimír Vondruš [Sun, 17 Jun 2018 09:54:13 +0000 (11:54 +0200)]
css: use concrete font weight value.
I'm using semibold version of Source Sans Pro, which is 600, not 800.
Vladimír Vondruš [Sun, 17 Jun 2018 09:52:18 +0000 (11:52 +0200)]
css: make code font size configurable from the theme.
Not every combination of font and monospace font works with scaling the
code to 0.9 -- the light theme has base font size only 14px and there
the code would be too small. Also use `em` instead of `rem` so it
follows surrounding text size.
Vladimír Vondruš [Sun, 17 Jun 2018 09:50:01 +0000 (11:50 +0200)]
css: properly handle variable declarations with comments in postprocess.py.
Vladimír Vondruš [Sun, 17 Jun 2018 09:41:20 +0000 (11:41 +0200)]
doxygen: don't crash on anchors with IDs that don't match the compound.
Vladimír Vondruš [Thu, 14 Jun 2018 11:58:41 +0000 (13:58 +0200)]
m.components: provide roles for labels.
I got extremely tired of writing this myself *every time*.
Vladimír Vondruš [Wed, 13 Jun 2018 21:55:57 +0000 (23:55 +0200)]
css: strip trailing comments also for lines with variables.
I am back at 8.9 kB, yay!
Vladimír Vondruš [Wed, 13 Jun 2018 10:20:07 +0000 (12:20 +0200)]
Make the latex2svg caching fully optional.
Vladimír Vondruš [Wed, 13 Jun 2018 10:08:01 +0000 (12:08 +0200)]
css: separate page layout styling out from m-components.css.
For the presentation framework I need the responsiveness,
typography, components but definitely not popup menus or jumbo article
styling. So away it goes, into a new m-layout.css file.
This also means the theme setup is now in a separate m-theme-*.css file
and the m-dark.css / m-light.css is just a "driver file" that imports
everything else. There will be a m-dark-presentation.css /
m-light-presentation.css driver file as well.
Vladimír Vondruš [Wed, 13 Jun 2018 09:50:06 +0000 (11:50 +0200)]
css: reduce excessive line length.
Vladimír Vondruš [Wed, 13 Jun 2018 09:17:06 +0000 (11:17 +0200)]
css: deduplicate parser code in the CSS preprocessor.
No change in the output (which was desired).
Vladimír Vondruš [Mon, 11 Jun 2018 13:42:31 +0000 (15:42 +0200)]
Exclude the third-party latex2svg.py from code coverage.
Vladimír Vondruš [Mon, 11 Jun 2018 13:35:07 +0000 (15:35 +0200)]
Include general symbols for math rendering.
I needed that for the \degree symbol.
Vladimír Vondruš [Mon, 11 Jun 2018 13:32:49 +0000 (15:32 +0200)]
Implement caching of rendered math output.
Stores the output of divsvgm in a dict and (de)serializes that in the
filesystem to preserve it across runs. Rough speedup:
* For the Magnum website, initial generation went down from 14 seconds
to 9, with subsequent runs just 2.5 seconds.
* For the Magnum docs, generation time went down from 1:33 to just 14
seconds.
Vladimír Vondruš [Mon, 11 Jun 2018 13:28:57 +0000 (15:28 +0200)]
m.math: properly reset formula counter on page breaks.
Otherwise the output was not deterministic anymore.
Vladimír Vondruš [Sat, 9 Jun 2018 15:07:23 +0000 (17:07 +0200)]
doxygen: warn if included code snippet is empty.
Very useful since Doxygen stays silent in this case.
Vladimír Vondruš [Mon, 4 Jun 2018 07:21:40 +0000 (09:21 +0200)]
plugins: new m.vk plugin.
Vladimír Vondruš [Mon, 4 Jun 2018 07:04:47 +0000 (09:04 +0200)]
plugins: avoid dependency on __init__.py for simple link plugins.
Duplicated the common code over. It's fully covered, so it's okay.
Vladimír Vondruš [Mon, 4 Jun 2018 06:28:57 +0000 (08:28 +0200)]
doxygen: mention that block-level \m_class has to be separated by a
newline.
I *really tried* to make it work, but it was not worth the pain.
Vladimír Vondruš [Mon, 21 May 2018 20:20:41 +0000 (22:20 +0200)]
doxygen: <image> doesn't have to be always in <para>.
Vladimír Vondruš [Sat, 19 May 2018 11:31:02 +0000 (13:31 +0200)]
m.code: don't blow up if inline literal doesn't have language.
Vladimír Vondruš [Sat, 19 May 2018 11:24:24 +0000 (13:24 +0200)]
doxygen: implement <small>.
Vladimír Vondruš [Sat, 19 May 2018 11:23:21 +0000 (13:23 +0200)]
doxygen: implement <hruler/>.
Vladimír Vondruš [Sat, 19 May 2018 09:05:09 +0000 (11:05 +0200)]
doc: include client search tests in Build Status.
Vladimír Vondruš [Sat, 19 May 2018 08:54:00 +0000 (10:54 +0200)]
doxygen: support \section etc. in function documentation.
Not rendered into <section> tags as that breaks the style, it's just
basic <hX> tags. Also ensuring that \param, \return etc. are propagated
from there.
Vladimír Vondruš [Sat, 19 May 2018 08:50:09 +0000 (10:50 +0200)]
doxygen: minor cleanup.
Vladimír Vondruš [Sat, 19 May 2018 08:29:16 +0000 (10:29 +0200)]
doxygen: proper <hX> hierarchy for headings in non-top-level description.
Also don't emit the \section warning for these, it does not make sense.
Vladimír Vondruš [Wed, 16 May 2018 10:31:41 +0000 (12:31 +0200)]
m.plots: matplotlib otherwise keeps everything in memory.
Huh.
Vladimír Vondruš [Wed, 16 May 2018 10:12:48 +0000 (12:12 +0200)]
m.plots: work around test failure on Travis.
Only one ID is different, which is still okay to validate a separate
test case.
Vladimír Vondruš [Wed, 16 May 2018 09:49:40 +0000 (11:49 +0200)]
m.plots: make the font configurable so we can pass the CI.
Vladimír Vondruš [Wed, 16 May 2018 09:13:25 +0000 (11:13 +0200)]
m.plots: matplotlib uses X by default?!
Vladimír Vondruš [Wed, 16 May 2018 09:09:48 +0000 (11:09 +0200)]
package/ci: install matplotlib.
Vladimír Vondruš [Tue, 15 May 2018 21:52:58 +0000 (23:52 +0200)]
plugins: new m.plots plugin for rendering inline SVG plots.
Vladimír Vondruš [Wed, 16 May 2018 09:00:56 +0000 (11:00 +0200)]
doc: fix breadcrumb.
Vladimír Vondruš [Tue, 15 May 2018 16:54:01 +0000 (18:54 +0200)]
doxygen: be nicer to KDevelop syntax highlighter.
Vladimír Vondruš [Tue, 15 May 2018 16:53:43 +0000 (18:53 +0200)]
doxygen: verify that latex blow up is handled properly.
Vladimír Vondruš [Tue, 15 May 2018 16:52:57 +0000 (18:52 +0200)]
plugins: properly print error from latex2svg when something fails.
Vladimír Vondruš [Tue, 15 May 2018 15:25:25 +0000 (17:25 +0200)]
doxygen: don't crash during search building on too long function arguments.
In some very pathological cases the function parameter list might exceed
256 characters, which won't fit in the serialized data. But that also
won't fit in the search result list so there's no point in storing so
much. Truncating to 65 characters and adding an ellipsis after.
Vladimír Vondruš [Tue, 15 May 2018 15:28:27 +0000 (17:28 +0200)]
doxygen: make KDevelop higlighting happier.
Vladimír Vondruš [Mon, 7 May 2018 20:53:05 +0000 (22:53 +0200)]
doxygen: fix crash with class inheritance outside of a namespace.
Amazing that I didn't come across this until now.
Vladimír Vondruš [Sun, 6 May 2018 12:54:34 +0000 (14:54 +0200)]
doxygen: bundle a matching favicon by default.
Vladimír Vondruš [Sun, 6 May 2018 12:33:47 +0000 (14:33 +0200)]
plugins: new plugin m.alias.
Vladimír Vondruš [Sun, 6 May 2018 11:16:20 +0000 (13:16 +0200)]
doc: highlight the Doxygen search functionality a bit more.
Vladimír Vondruš [Sun, 6 May 2018 11:07:56 +0000 (13:07 +0200)]
theme: render the draft status in article footer.
Vladimír Vondruš [Sun, 6 May 2018 11:07:17 +0000 (13:07 +0200)]
doc: mention the m.css Doxygen theme in m.dox documentation.
Vladimír Vondruš [Sun, 6 May 2018 10:49:24 +0000 (12:49 +0200)]
m.dox: make it possible to link to arbitrary anchors.
Yes, this would clash with anchors inserted by Doxygen itself, but that
use case doesn't make any sense anyway.
Vladimír Vondruš [Sun, 6 May 2018 10:31:57 +0000 (12:31 +0200)]
doxygen: avoid needless dependency on Pelican and docutils.
These were pulled in transitively from m.math and I was not aware of
that. Sorry. Now it's just jinja2 and Pygments needed, as documented.
Vladimír Vondruš [Mon, 30 Apr 2018 14:21:54 +0000 (16:21 +0200)]
doxygen: properly support CASE_SENSE_NAMES set to NO.
I was working around the indexpage/index name mismatch by using
<compoundname> for pages, but that doesn't work well when
CASE_SENSE_NAMES is disabled. This fixes it.
Vladimír Vondruš [Fri, 27 Apr 2018 15:03:03 +0000 (17:03 +0200)]
doxygen: implement table caption parsing.
Vladimír Vondruš [Fri, 27 Apr 2018 14:56:31 +0000 (16:56 +0200)]
doxygen: don't crash when encountering sections with _1 in them.
Vladimír Vondruš [Fri, 27 Apr 2018 14:40:13 +0000 (16:40 +0200)]
doxygen: use state.current_compound.url instead of state.current_url.
Makes it more flexible for future additions.
Vladimír Vondruš [Wed, 25 Apr 2018 15:06:47 +0000 (17:06 +0200)]
Doc++
Vladimír Vondruš [Wed, 25 Apr 2018 11:40:23 +0000 (13:40 +0200)]
doxygen: JAVADOC_AUTOBRIEF is... wow. I need to take a shower.
Or, don't blow up on an unfortunate series of bad events.
1. If a file has a copyright header starting with /// and delimited with
**** and JAVADOC_AUTOBRIEF is set to ON, Doxygen treats the first ***
line as a brief documentation, which then made m.css fail because it
doesn't expect stuff like <para><hruler/></para> inside
<briefdescriptions>. The <hruler/> is still not implemented yet,
though.
2. Who would have thought that
/// A brief docs.
/// @{
/// Some detailed docs.
would be understood as a two-paragraph brief?!
3. And who would have thought that
/// ============
/// The Thing
/// ============
would create a brief containing some === characters and a <heading>
inside?! Here I just give up and ignore the whole thing.
Vladimír Vondruš [Wed, 25 Apr 2018 11:18:01 +0000 (13:18 +0200)]
doxygen: actually, just abort when CREATE_SUBDIRS is enabled.
Vladimír Vondruš [Wed, 25 Apr 2018 11:11:55 +0000 (13:11 +0200)]
doxygen: it's CREATE_SUBDIRS, not GENERATE_SUBDIRS. Stupid me.
Vladimír Vondruš [Wed, 25 Apr 2018 09:24:37 +0000 (11:24 +0200)]
Treat *.h files as C++.
Vladimír Vondruš [Wed, 25 Apr 2018 09:21:08 +0000 (11:21 +0200)]
Make the GitHub language bar prettier.
Vladimír Vondruš [Wed, 25 Apr 2018 06:22:44 +0000 (08:22 +0200)]
doxygen: warn if GENERATE_SUBDIRS is enabled.
Vladimír Vondruš [Wed, 25 Apr 2018 06:22:08 +0000 (08:22 +0200)]
doc: minimal Troubleshooting section for the Pelican theme.
Vladimír Vondruš [Wed, 25 Apr 2018 06:21:30 +0000 (08:21 +0200)]
doc: a new Troubleshooting section for the Doxygen theme.
So I don't have to repeat myself :)
Vladimír Vondruš [Wed, 25 Apr 2018 06:21:05 +0000 (08:21 +0200)]
doc: more prominent link to the Doxygen theme "demo".
Vladimír Vondruš [Thu, 12 Apr 2018 20:14:26 +0000 (22:14 +0200)]
doxygen: fix <h2></h3>.
Amazing when such a glaring issue gets unnoticed in hundreds of test
files.
Vladimír Vondruš [Thu, 12 Apr 2018 16:15:19 +0000 (18:15 +0200)]
doxygen: minor cleanup.
Vladimír Vondruš [Thu, 12 Apr 2018 16:14:53 +0000 (18:14 +0200)]
doxygen: implement support for the \exception keyword.
Vladimír Vondruš [Thu, 12 Apr 2018 14:35:21 +0000 (16:35 +0200)]
doxygen: verify that \param etc. is extracted out of a list as well.
Previously this was asserting because I didn't expect Doxygen to be so
shitty and put these *inside* of some random list without ending that
list first. This also uncovers a lot of other nasty Doxygen bugs, so I'm
just creating a very restricted repro case that doesn't trigger them.
I lost all hope with Doxygen. Kill it with fire and start over.
Vladimír Vondruš [Thu, 12 Apr 2018 14:44:01 +0000 (16:44 +0200)]
doxygen: safety assert so we don't miss \retval that's in weird places.
Missed that when implementing \retval support in
5e6d0bcaae00412c3acbd371f11ef6276af6d0b9.
Vladimír Vondruš [Thu, 12 Apr 2018 14:12:28 +0000 (16:12 +0200)]
doxygen, m.math: update math rendering tests.
For some reason the paths are in a different order now.
Vladimír Vondruš [Mon, 9 Apr 2018 10:55:45 +0000 (12:55 +0200)]
doxygen: prevent particular Doxyfile values from becoming empty.
In particular the HTML_EXTRA_STYLESHEET, which is set to empty by the
doxygen -g
generated Doxyfile.
Vladimír Vondruš [Mon, 9 Apr 2018 10:05:38 +0000 (12:05 +0200)]
doxygen: be more failproof for depth attribute returned from dvisvgm.
Sometimes the regex doesn't match and returns None, even though I tried
reaallyy hard to make it match. This fixes it for good.
Vladimír Vondruš [Mon, 9 Apr 2018 10:04:37 +0000 (12:04 +0200)]
doxygen: make it possible to highlight Jinja templates.
There's no well-known extension for these and Doxygen \code{.ext}
*requires* an extension inside {} otherwise it blows up.
Vladimír Vondruš [Mon, 9 Apr 2018 10:00:19 +0000 (12:00 +0200)]
doxygen: don't crash when encountering xrefs in the form of @_1@.
Triggered by Android NDK docs.
Vladimír Vondruš [Thu, 8 Mar 2018 10:29:16 +0000 (11:29 +0100)]
Build status avoid jumpy relayout when loading.
Vladimír Vondruš [Thu, 8 Mar 2018 10:28:28 +0000 (11:28 +0100)]
Build status: no point in showing long stuff like 117 minutes.
Vladimír Vondruš [Sun, 11 Feb 2018 23:05:04 +0000 (00:05 +0100)]
doxygen: don't mark things containing \bug as deprecated.
Ugh am I stupid?!
Vladimír Vondruš [Sun, 11 Feb 2018 21:43:36 +0000 (22:43 +0100)]
doxygen: the search might lead to the same page, so restore the scrollbar.
Vladimír Vondruš [Sun, 11 Feb 2018 21:42:41 +0000 (22:42 +0100)]
doxygen: eat T / Tab only if no modifier keys are pressed.
Otherwise Ctrl-T and Shift-Tab for opening a new / going to another tab
don't work as they should.
Vladimír Vondruš [Sun, 11 Feb 2018 19:58:47 +0000 (20:58 +0100)]
doxygen: improve the search help text.
Vladimír Vondruš [Sun, 11 Feb 2018 17:46:33 +0000 (18:46 +0100)]
doxygen: count also all aliases to the search symbol count.
Vladimír Vondruš [Sun, 11 Feb 2018 17:40:20 +0000 (18:40 +0100)]
doxygen: minor cleanup.
Vladimír Vondruš [Sun, 11 Feb 2018 17:39:22 +0000 (18:39 +0100)]
doc: \section commands elsewhere than top-level docs are not supported.
The visual layout is not ready for such thing at all.
Vladimír Vondruš [Sun, 11 Feb 2018 17:38:45 +0000 (18:38 +0100)]
doxygen: propagate keywords from inside sections as well.
Vladimír Vondruš [Sun, 11 Feb 2018 17:26:48 +0000 (18:26 +0100)]
doxygen: minor cleanup.
Vladimír Vondruš [Sun, 11 Feb 2018 17:09:29 +0000 (18:09 +0100)]
doxygen: go back in history when closing search.
Instead of polluting it even more. Makes back button and context
preservation behave much better now.
Vladimír Vondruš [Sun, 11 Feb 2018 17:03:09 +0000 (18:03 +0100)]
doxygen: render the aliases in search better.
In particular it's more important what's the alias than what's the name
it points to.
Vladimír Vondruš [Sun, 11 Feb 2018 10:42:10 +0000 (11:42 +0100)]
doxygen: properly bubble up also enum-values-as-keywords from sections.
Vladimír Vondruš [Sat, 10 Feb 2018 23:26:38 +0000 (00:26 +0100)]
doxygen: properly bubble search keywords from sections upwards.
Vladimír Vondruš [Sat, 10 Feb 2018 23:23:28 +0000 (00:23 +0100)]
doxygen: test that search keywords inside sections are bubbled up.
They aren't.
Vladimír Vondruš [Sat, 10 Feb 2018 22:23:20 +0000 (23:23 +0100)]
doxygen: test another case of result URL merging.
This time min() on line 279.
Vladimír Vondruš [Sat, 10 Feb 2018 16:32:10 +0000 (17:32 +0100)]
doxygen: this is not needed, it was tested elsewhere.
Vladimír Vondruš [Sat, 10 Feb 2018 16:31:36 +0000 (17:31 +0100)]
doxygen: fix heavily nested result URL combining.
The test passes again.
Vladimír Vondruš [Sat, 10 Feb 2018 16:29:06 +0000 (17:29 +0100)]
doxygen: test that nested namespaces have the URL properly combined.
They don't.
Vladimír Vondruš [Sat, 10 Feb 2018 16:22:39 +0000 (17:22 +0100)]
doxygen: document why a test is skipped.