chiark / gitweb /
Vladimír Vondruš [Sun, 2 Jan 2022 23:45:36 +0000 (00:45 +0100)]
documentation/python: improve error reporting in pybind signature parser.
The exceptions were mostly there, but the text got lost at the end!
Silly.
Vladimír Vondruš [Sun, 2 Jan 2022 23:06:27 +0000 (00:06 +0100)]
documentation/python: expand pybind default enum argument tests.
To verify also a case with an enum nested in a pair (which won't get
linked to because we're not *that* advanced yet).
Vladimír Vondruš [Sun, 2 Jan 2022 21:21:50 +0000 (22:21 +0100)]
documentation/python: typing.Generic.__new__() is gone in 3.9.
Vladimír Vondruš [Sun, 2 Jan 2022 20:53:34 +0000 (21:53 +0100)]
documentation/python: implicit TypeVar for typing.List was only in 3.7/8.
If I say typing.List, only Python 3.7 and 3.8 converted that to
typing.List[T], 3.6, 3.9 and 3.10 keep typing.List.
Vladimír Vondruš [Sun, 2 Jan 2022 20:18:34 +0000 (21:18 +0100)]
m.qr: actually, the difference is *also* due to Python versions.
Somehow the attributes have different order, generating a MONSTROUS
difference.
Heh! Why! Why do I have to suffer this much all the time.
Vladimír Vondruš [Sun, 2 Jan 2022 19:51:26 +0000 (20:51 +0100)]
package/ci: haaaaaaaaaaaahhhh docutils also.
Just half a day and I already miss the stability of C++ development.
FFS.
Vladimír Vondruš [Sun, 2 Jan 2022 19:16:50 +0000 (20:16 +0100)]
m.dot, documentation/*: use graphviz 2.44 output for 2.42.2 also.
Hope this finally makes the CI pass.
Vladimír Vondruš [Sun, 2 Jan 2022 19:08:03 +0000 (20:08 +0100)]
package/ci: use older Pygments until I update the test files.
Vladimír Vondruš [Sun, 2 Jan 2022 18:52:07 +0000 (19:52 +0100)]
package/ci: use older qrcode package until I update the regexes.
Vladimír Vondruš [Sun, 2 Jan 2022 17:53:10 +0000 (18:53 +0100)]
package/ci: drop Python 3.5 testing, add 3.8 to 3.10.
Python 3.5 was EOL'd in September 2020 and support for it is being
removed from major packages like pybind. It was also the only version
on which neither the Doxygen nor Python doc generator worked due to lack
of typing annotations, and since those two are the major use cases, I
don't think there's many users relying still on 3.5.
Python 3.6 was EOL'd in December 2021 so *technically* I could drop it
as well, however Ubuntu 18.04 LTS still has it as the default version so
it's good to keep it. I don't really need to use any 3.7-specific
features yet either, so this isn't a problem.
Vladimír Vondruš [Sun, 2 Jan 2022 16:29:27 +0000 (17:29 +0100)]
pelican-theme, m.code, m.dot: make stuff finally work on Pelican 4.5.1+.
Since Pelican 4.5 moved to "namespace plugins", the way plugins are
loaded is different and thus the root plugins/ directory is not in PATH
anymore, leading to errors like
No module named 'ansilexer'
No module named 'latex2svg'
After spending a bit of time looking into how "namespace plugins" are, I
decided to stay with what they say "legacy plugins" because that doesn't
require me to move everything into a pelican.plugins namespace and thus
allows me to reuse the exact same file for plugins to other m.css tools
like the Python doc generator.
Version 4.5.0 had loading of namespaced plugins (the `m.` here) broken
completely, which is why the CI got pinned to 4.2. With 4.5.1 it started
working again and due to how the tests were executed the PATH issues
weren't hit either, leading me to a false sense of security that
everything works again on 4.5.1, while it wasn't. This fix is the final
piece to make everything work again. Sorry that it took over a year to
get in.
Co-authored-by: Lukas Pirl <git@lukas-pirl.de>
Vladimír Vondruš [Sun, 2 Jan 2022 12:15:58 +0000 (13:15 +0100)]
m.plots: fix a deprecation warning with matplotlib 3.5.
It complains that "Support for setting an rcParam that expects a str
value to a non-str value is deprecated since 3.5 and support will be
removed two minor releases later."
Vladimír Vondruš [Sun, 2 Jan 2022 12:09:48 +0000 (13:09 +0100)]
documentation/python: minor.
Those values are already available, so don't calculate them again.
Vladimír Vondruš [Sun, 2 Jan 2022 12:08:47 +0000 (13:08 +0100)]
doc: clarify the same for m.images default options.
Vladimír Vondruš [Sun, 2 Jan 2022 12:07:19 +0000 (13:07 +0100)]
doc: not everyone may like hyphenation or smart quotes.
Plus hyphenation requires extra packages, so don't suggest it by default
-- but clarify that those actually *are* the defaults and so the user
can omit them.
Vladimír Vondruš [Sun, 2 Jan 2022 12:06:08 +0000 (13:06 +0100)]
documentation/python: ensure all plugin hooks are always tested.
Vladimír Vondruš [Sun, 2 Jan 2022 11:49:13 +0000 (12:49 +0100)]
documentation/doxygen: recognize also <s> and <del> tags.
Followup to
12e0081a093ecf5e9dc287c549b4b521d45a2b6b.
Vladimír Vondruš [Sun, 2 Jan 2022 11:39:16 +0000 (12:39 +0100)]
documentation/doxygen: allow \xrefitem with numbers in the middle.
In Magnum I used to have \xrefitem aliases such as \requires_gles20 so
the current regex worked, but when adding \requires_gles20_only it
didn't work anymore. Such a stupid oversight, sorry to whoever else
tripped up on that as well.
Not updating any test case because regexes are write only anyway.
Vladimír Vondruš [Mon, 10 May 2021 13:06:04 +0000 (15:06 +0200)]
doc: mention m-clearfix also for floating elements.
That's where people will use it the most. Funnily enough the clearfix
already had to be used in the markup, so that's one more reason to
just put it directly in the snippet.
Vladimír Vondruš [Mon, 12 Apr 2021 13:47:04 +0000 (15:47 +0200)]
doc: clarify naming for such an important option.
Even I don't remember how it's meant to be named anymore, sigh.
Vladimír Vondruš [Tue, 6 Apr 2021 18:51:58 +0000 (20:51 +0200)]
package/ci: NOTHING IS EVER SIMPLE.
G'damit, can I just make the test run first *and only then* go on with
upgrading all the shit that broke in the few months while I was not
looking?!
Vladimír Vondruš [Tue, 6 Apr 2021 18:40:32 +0000 (20:40 +0200)]
package/ci: run tests verbose so it's clear what got skipped.
Vladimír Vondruš [Tue, 6 Apr 2021 18:40:13 +0000 (20:40 +0200)]
package/ci: install attrs as well.
Got a slight drop in coverage due to that.
Vladimír Vondruš [Tue, 6 Apr 2021 17:26:58 +0000 (19:26 +0200)]
m.dot: update graphviz 2.40 ground truth file.
I'll just assume it's correct.
Vladimír Vondruš [Tue, 6 Apr 2021 18:27:13 +0000 (20:27 +0200)]
package/ci: eugh everything is an unstable pool of mud.
Vladimír Vondruš [Tue, 6 Apr 2021 16:37:19 +0000 (18:37 +0200)]
package/ci: migrate to CircleCI.
Thanks, Travis, for being silent for three months straight. Fuck that
"service".
Vladimír Vondruš [Tue, 6 Apr 2021 16:36:56 +0000 (18:36 +0200)]
Add .yml files to .editorconfig.
Vladimír Vondruš [Tue, 6 Apr 2021 15:28:45 +0000 (17:28 +0200)]
m.htmlsanity: drop Flash-related code and fix compat with docutils 0.17.
That thing is DEAD so there's no reason to bother. This changed in
docutils 0.17, making the current version fail there. Funnily enough,
https://github.com/live-clones/docutils/commit/
659c3f1e46f0c86609936c987b7e2a7a6ef89cb2
looks like they still seem to preserve that somehow. I won't, so all the
related code isn't needed.
The code here was originally taken from docutils but diverged
significantly and given that they still use the deprecated width/height
attribute I see no reason to even attempt cherry-picking their changes.
Vladimír Vondruš [Sun, 8 Nov 2020 15:26:37 +0000 (16:26 +0100)]
m.dot: support subgraphs.
Vladimír Vondruš [Sat, 7 Nov 2020 17:28:22 +0000 (18:28 +0100)]
documentation/doxygen: add a human-readable assert here.
Vladimír Vondruš [Sat, 7 Nov 2020 17:27:04 +0000 (18:27 +0100)]
Update CREDITS.rst.
Blair Conrad [Wed, 10 Jun 2020 11:31:33 +0000 (07:31 -0400)]
Simplify formatting of ANSI-highlighted code
Blair Conrad [Wed, 10 Jun 2020 11:31:33 +0000 (07:31 -0400)]
Omit superfluous g-AnsiDefault, g-AnsiBackgroundDefault classes
Blair Conrad [Wed, 10 Jun 2020 11:31:33 +0000 (07:31 -0400)]
Add missing background styles
Blair Conrad [Wed, 10 Jun 2020 11:31:33 +0000 (07:31 -0400)]
Correct comment regarding bright background colors
Vladimír Vondruš [Sat, 7 Nov 2020 16:52:56 +0000 (17:52 +0100)]
doc: update outdated Doxygen version requirement notices.
Vladimír Vondruš [Sat, 7 Nov 2020 16:38:01 +0000 (17:38 +0100)]
package/ci: go back to Pyphen 0.9.5.
As usual, every upgrade of every package breaks something.
Vladimír Vondruš [Sat, 7 Nov 2020 16:33:03 +0000 (17:33 +0100)]
Updated CREDITS.rst.
Guillaume Jacquemin [Sun, 5 Jul 2020 11:12:05 +0000 (13:12 +0200)]
Update pagination Pelican template.
The template was hardcoded for the default reversed date ordering of
articles.
Marin [Tue, 15 Sep 2020 14:30:26 +0000 (16:30 +0200)]
Fix doxygen base path resolution.
Use top-level doxygen path as base path. In case of recursive descent,
don't allow base path to be overriden.
Vladimír Vondruš [Sat, 7 Nov 2020 15:59:38 +0000 (16:59 +0100)]
doc: cross-link the Doxygen Show Undocumented option from more places.
Vladimír Vondruš [Sat, 7 Nov 2020 15:59:11 +0000 (16:59 +0100)]
doc: document what to do in Doxyfile for nice graphviz look.
Vladimír Vondruš [Sat, 7 Nov 2020 15:58:26 +0000 (16:58 +0100)]
Doc++
Vladimír Vondruš [Sat, 7 Nov 2020 15:29:39 +0000 (16:29 +0100)]
Point to travis-ci.com instead of .org also in the README.
Vladimír Vondruš [Sat, 7 Nov 2020 15:29:02 +0000 (16:29 +0100)]
documentation/doxygen: don't create output dir if it's empty.
It doesn't make sense to me why makedirs() wouldn't just gracefully
no-op that.
Vladimír Vondruš [Fri, 23 Oct 2020 14:35:00 +0000 (16:35 +0200)]
build-status: migrate to travis-ci.com.
Wait, don't tell me it's *this* easy.
Vladimír Vondruš [Fri, 23 Oct 2020 14:34:40 +0000 (16:34 +0200)]
doc: fix another order-dependent processing error.
Vladimír Vondruš [Sat, 10 Oct 2020 18:29:13 +0000 (20:29 +0200)]
Updated credits.
shniubobo [Sat, 10 Oct 2020 17:57:01 +0000 (01:57 +0800)]
Fix import errors in plugins
Fix #178
Vladimír Vondruš [Thu, 8 Oct 2020 14:27:21 +0000 (16:27 +0200)]
m.plots: update the regex hell for matplotlib 3.3.
Vladimír Vondruš [Thu, 8 Oct 2020 11:19:34 +0000 (13:19 +0200)]
package/ci: go back to Pelican 4.2 until I find a fix.
OH GOD, one can't just leave a project alone for 6 months because every
damn thing just breaks, changes or gets removed. Kids these days, FFS.
Imagine if the standard of electrical outlets changed rapidly every two
weeks, you'd just have to constantly buy new fucking adapters and you
would HATE it. So why is it COMPLETELY FINE with software?!
Vladimír Vondruš [Thu, 8 Oct 2020 11:15:30 +0000 (13:15 +0200)]
package/ci: download doxygen from elsewhere.
I don't have time to plow through new bugs in 1.8.18, 19 and 20, so
DON'T delete the old versions FFS.
Sergei Izmailov [Tue, 30 Jun 2020 13:25:28 +0000 (16:25 +0300)]
Adapt to Pillow 7.2 changes
Vladimír Vondruš [Thu, 8 Oct 2020 11:10:28 +0000 (13:10 +0200)]
doc: updated credits.
Sergei Izmailov [Thu, 25 Jun 2020 07:41:59 +0000 (10:41 +0300)]
Fix padding in function names
Co-authored-by: Cris Luengo <cris.l.luengo@gmail.com>
Sergei Izmailov [Sun, 28 Jun 2020 22:18:44 +0000 (01:18 +0300)]
Fix search input focus loose on autocompletion by tab
Vladimír Vondruš [Thu, 8 Oct 2020 10:53:54 +0000 (12:53 +0200)]
documentation/python: improve an assert.
Vladimír Vondruš [Thu, 8 Oct 2020 10:51:57 +0000 (12:51 +0200)]
m.images: improve a failure message.
Vladimír Vondruš [Thu, 8 Oct 2020 10:51:18 +0000 (12:51 +0200)]
documentation/python: pile on more workarounds for typing.Union.
SIGH.
Vladimír Vondruš [Thu, 8 Oct 2020 10:34:48 +0000 (12:34 +0200)]
documentation/python: explicitly test for string type annotations.
No surprise expected, just to have that here.
Vladimír Vondruš [Thu, 8 Oct 2020 10:17:31 +0000 (12:17 +0200)]
documentation/python: define an environment variable when generating.
I need that for some REALLY DIRTY hacks.
Vladimír Vondruš [Thu, 8 Oct 2020 10:02:21 +0000 (12:02 +0200)]
doc: turn the Python monkey-patching docs into a first-class section.
Vladimír Vondruš [Thu, 8 Oct 2020 09:53:08 +0000 (11:53 +0200)]
doc: fix a broken link.
Interesting that Pelican doesn't complain here.
Vladimír Vondruš [Thu, 8 Oct 2020 09:52:27 +0000 (11:52 +0200)]
css: make figcaption follow the heading decoration rules.
So if I have all heading links not underlined, this one is neither.
Sergei Izmailov [Sun, 28 Jun 2020 10:21:33 +0000 (13:21 +0300)]
Fix typo in closing tag name
Vladimír Vondruš [Tue, 9 Jun 2020 17:09:12 +0000 (19:09 +0200)]
pelican-theme: better align tags on jumbo articles.
With a large amount of tags (like on magnum.graphics) it was uglily
misbalanced. Now it should be better.
Vladimír Vondruš [Tue, 9 Jun 2020 16:25:06 +0000 (18:25 +0200)]
m.plots: allow to specify plot width also.
Vladimír Vondruš [Tue, 9 Jun 2020 16:13:30 +0000 (18:13 +0200)]
m.plots: change :labels_extra: and :bar_height: to dashes also.
It was UGHLY also. The previous option name is still recognized, of
course.
Vladimír Vondruš [Tue, 9 Jun 2020 16:08:10 +0000 (18:08 +0200)]
m.code: support :hl-lines: in the .. include:: directive as well.
Not sure why original Docutils didn't have that.
Vladimír Vondruš [Tue, 9 Jun 2020 16:02:55 +0000 (18:02 +0200)]
m.code: change to :hl-lines: instead of :hl_lines:.
I can't stress how much I hated the underscore. Turns out it's there
ONLY because Pygments have an underscore, otherwise there would be a
dash like with all other directives/options/roles. Eh.
The legacy option is still recognized of course.
Vladimír Vondruš [Tue, 9 Jun 2020 11:25:19 +0000 (13:25 +0200)]
css: improve code highlighting for string escapes and interpolation.
And test this look via the m.code plugin.
Vladimír Vondruš [Tue, 9 Jun 2020 12:10:26 +0000 (14:10 +0200)]
documentation/python: list forgotten default option, avoid duplicates.
Vladimír Vondruš [Tue, 9 Jun 2020 12:09:41 +0000 (14:09 +0200)]
documentation/doxygen: doc++
Sergei Izmailov [Tue, 9 Jun 2020 10:05:31 +0000 (13:05 +0300)]
Fix renamed option use
Vladimír Vondruš [Tue, 9 Jun 2020 00:00:27 +0000 (02:00 +0200)]
documentation/doxygen: add an ability to run filters on code.
Finally I'm able to generate Magnum docs without a hastily patched
m.css to convert color literals to color swatches. Ugh this took ages.
Vladimír Vondruš [Mon, 8 Jun 2020 23:58:08 +0000 (01:58 +0200)]
documentation/doxygen,m.code: unify code whitespace stripping.
For some reason due to an accident m.code wasn't strip leading
whitespace in inline code. Of course no test caught this.
Vladimír Vondruš [Mon, 8 Jun 2020 22:22:30 +0000 (00:22 +0200)]
documentation/doxygen: put deprecated label after final/virtual label.
To be consistent with the order in class index pages. Doesn't affect any
tests (which is fine).
Vladimír Vondruš [Mon, 8 Jun 2020 22:15:10 +0000 (00:15 +0200)]
documentation/doxygen: parse inline namespaces.
Vladimír Vondruš [Mon, 8 Jun 2020 22:09:50 +0000 (00:09 +0200)]
documentation/doxygen: don't set is_final=False for non-classes.
Vladimír Vondruš [Mon, 8 Jun 2020 21:48:10 +0000 (23:48 +0200)]
documentation/doxygen: forgot to add final label on nestable classes.
Vladimír Vondruš [Mon, 8 Jun 2020 21:06:10 +0000 (23:06 +0200)]
documentation/doxygen: preserve template info in base classes.
Vladimír Vondruš [Mon, 8 Jun 2020 20:49:03 +0000 (22:49 +0200)]
documentation/doxygen: haha what.
Vladimír Vondruš [Mon, 8 Jun 2020 20:48:00 +0000 (22:48 +0200)]
documentation/doxygen: clarify a bunch of things.
Vladimír Vondruš [Mon, 8 Jun 2020 20:27:22 +0000 (22:27 +0200)]
documentation/doxygen: reduce boilerplate in the tests.
Followup to
5eb113bae33b05701b8e213d2400298ada29138e.
Vladimír Vondruš [Mon, 8 Jun 2020 19:51:20 +0000 (21:51 +0200)]
Updated CREDITS.rst.
Blair Conrad [Thu, 21 May 2020 12:46:57 +0000 (08:46 -0400)]
m.code: revamp ANSI color code handling completely.
Co-authored-by: Sergei Izmailov <sergei.a.izmailov@gmail.com>
Vladimír Vondruš [Mon, 8 Jun 2020 19:35:29 +0000 (21:35 +0200)]
m.code: remove the ZWNJ hack.
Was used only to fix one browser rendering issue on magnum.graphics
which happened only when Unicode blocks were involved. Does not make
sense to pollute all output with it.
Vladimír Vondruš [Mon, 8 Jun 2020 19:33:28 +0000 (21:33 +0200)]
documentation/doxygen: detach the console highlighting symlink.
The ANSI lexer is getting a massive update, and we don't need to test
the whole thing twice.
Vladimír Vondruš [Mon, 8 Jun 2020 18:42:34 +0000 (20:42 +0200)]
m.code: add .. code-block:: and .. sourcecode:: aliases.
Vladimír Vondruš [Mon, 8 Jun 2020 18:23:21 +0000 (20:23 +0200)]
doc: yet another order-dependent generation issue.
Vladimír Vondruš [Mon, 8 Jun 2020 16:46:39 +0000 (18:46 +0200)]
Updated credits.
Yuri Edward [Tue, 12 May 2020 19:53:02 +0000 (21:53 +0200)]
documentation/doxygen: fixed bug with exception references.
Vladimír Vondruš [Mon, 8 Jun 2020 16:36:47 +0000 (18:36 +0200)]
documentation/python: prefix an internal utility function.
Sergei Izmailov [Sat, 16 May 2020 14:33:51 +0000 (17:33 +0300)]
documentation/python: add Iterable to recognized typing types.
Sergei Izmailov [Sat, 16 May 2020 00:42:35 +0000 (03:42 +0300)]
documentation/python: make `parse_pybind_type` more permissive.
pybind11 has some non-standard typing-like annotations, e.g.:
List[List[float[3]][3]] for std::array<std::array<float,3>,3>
Sergei Izmailov [Fri, 15 May 2020 22:34:30 +0000 (01:34 +0300)]
documentation/python: improve pybind11 default argument parsing.
Vladimír Vondruš [Sun, 7 Jun 2020 15:50:53 +0000 (17:50 +0200)]
documentation/doxygen: switch to a config supplied from a Python file.
Keeping full backwards compatibility with the original Doxyfile names,
except for template files which now have to use the new values.
Vladimír Vondruš [Sun, 7 Jun 2020 11:18:39 +0000 (13:18 +0200)]
doc: clarify some more Doxygen (mis)behavior.
Vladimír Vondruš [Sun, 7 Jun 2020 11:04:25 +0000 (13:04 +0200)]
Updated copyright year.
Sergei Izmailov [Sat, 16 May 2020 01:05:45 +0000 (04:05 +0300)]
Fix typo