Generate the enum documentation based of the common/enums.rs

So that makes it harder to forget to update the docs

Note that the new builtin_enums.md does not contain a `### Values`
section header anymore. Also some enum where documented with the full
enum value (such as `TextHorizontalAlignment.left`) while now this
is omitted

The CI should fail if one forget to run `cargo xtask enumdocs` after
adding an enum or changing the docs
This commit is contained in:
Olivier Goffart 2022-05-13 11:55:31 +02:00 committed by Olivier Goffart
parent fe6463d0ad
commit 9fa59d38cd
10 changed files with 376 additions and 172 deletions

View file

@ -8,5 +8,6 @@ The .slint UI Design Language
Language Reference<markdown/langref.md>
markdown/builtin_elements.md
markdown/builtin_enums.md
markdown/widgets.md
markdown/layouting.md