Commit graph

221 commits

Author SHA1 Message Date
Olivier Goffart
f231522f7e Change the homepage URL in the Rust API's Cargo.toml 2023-02-20 08:52:38 +01:00
Olivier Goffart
5b3cde87ab Update dependencies 2023-02-15 10:28:02 +01:00
Tobias Hunger
671d22d762
tools: Tree sitter update for 1.0 (#2144)
Make our tree-sitter parser handle all the 1.0 syntax.
2023-02-10 14:46:47 +01:00
Tobias Hunger
e1e4be2497
Use sphinx to generate the Slint language reference (#2218)
* docs: Move the langref to sphinx

* docs: Use sphinx to build nighly doc snapshot of langref
2023-02-10 11:51:36 +01:00
Tobias Hunger
e8ee468cc6 xtask: Sort enums when generating enum docs
It's much easier for humans to find entries that way!
2023-02-09 18:31:34 +01:00
Tobias Hunger
d93445bd0b docs: Remove inline langref documentation and link the mdbook
For node and cpp, I use relative links to point to the slint language
reference documentation.

For the slint crate documentation I create a link to
https://slint-ui.com/releases/VERSION/... instead: This needs to work from
docs.rs as well as from our own docs area on slint-ui.com! That is
pretty ugly: I can not even define constants for this as the crate docs
need to come before anything else.
2023-02-07 12:10:07 +01:00
ogoffart
e7f48512ee Bump version number to 1.0.0 2023-02-03 11:07:15 +01:00
Tobias Hunger
40b847defc xtask: Generate builtin_enums in docs/langref _and_ docs
... for now ...
2023-01-31 15:08:52 +01:00
Olivier Goffart
ae20ec59c8 Rename PointerEventButton::None to PointerEventButton::Other
And mark the enum non_exhaustive

closes #1903
2023-01-26 13:36:54 +01:00
Olivier Goffart
00de1867ae Janitor: deps upgrade 2023-01-16 10:47:55 +01:00
Simon Hausmann
8a0d666353
Excluder docker ignore file from license check 2023-01-04 21:03:21 +01:00
ogoffart
ce07d078ce Bump version number to 0.3.4 2022-12-16 09:36:15 +00:00
ogoffart
fb02b4118b Bump version number to 0.3.3 2022-11-28 13:11:11 +00:00
Tobias Hunger
b949689e35 Revert "tools: Put code shared between online editor and vscode in NPM package"
This caused trouble with both the online editor as well as the VSCode
extension when built in CI.

This reverts commit c8b434021e.
2022-11-25 17:34:32 +01:00
Tobias Hunger
c8b434021e tools: Put code shared between online editor and vscode in NPM package
Put the shared code into an NPM package. This makes especially vscode
much happier as it does not need to build code outside its project root
anymore:-)
2022-11-24 12:57:47 +01:00
ogoffart
2171773a3e Bump version number to 0.3.2 2022-10-28 09:30:14 +00:00
Olivier Goffart
58a0e2b8c0 Fix the licence checker again 2022-10-28 10:01:48 +02:00
Olivier Goffart
ea8fef89ee Make the license checker happy about Cargo.lock 2022-10-28 09:51:36 +02:00
Tobias Hunger
107c68e35a janitor: Update toml-edit to 0.15 2022-10-26 08:59:36 +02:00
Tobias Hunger
2bbf236e25 janitor: Update clap to 4.0 (+fix some typos) 2022-10-26 08:59:36 +02:00
ogoffart
261614b914 Bump version number to 0.3.1 2022-09-15 14:39:51 +02:00
Tobias Hunger
865d663352
Redo online_editor (#1593)
* Rework the online editor

Implement something that looks more like an application and e.g. allows
to have dockable widgets, a menu bar and keyboard shortcuts.

* xtask: Handle .css files license information

* xtask: Simplify xtask file regexps

No need for many of the .+/.*, we can group them better with the most
specific matches first and then getting more and more general
afterwards.

* reuse: Add .css files for the online_editor
2022-09-07 17:08:55 +02:00
ogoffart
05a49da906 Bump version number to 0.3.0 2022-09-06 13:00:22 +02:00
Tobias Hunger
58d5491594 online_editor: Tweak eslint configuration and fix reported issues 2022-08-16 12:13:16 +02:00
Olivier Goffart
ac4f3e97ad Change slint enum values to be PascalCase in rust
... while still being kebab-case in .slint

Some enums might become public API and we want to have them as
PascalCase to respect the rust conventions
2022-07-22 12:23:52 +02:00
ogoffart
6b15d2e479 Bump version number to 0.2.6 2022-07-06 09:58:14 +00:00
Olivier Goffart
deba176c72 Janitor: bump dependencies versions 2022-06-29 09:02:43 +02:00
Olivier Goffart
3949045e1b Rename the editor folder to editors 2022-06-27 17:44:46 +02:00
Olivier Goffart
7eff0e5a30 Fix compilation in presence of a Cargo.lock
We use new clap api so we need to raise the version
2022-06-14 11:34:40 +02:00
Simon Hausmann
ca74f91320 Fix clap deprecation warnings 2022-06-14 11:06:54 +02:00
Olivier Goffart
9fa59d38cd 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
2022-05-13 13:15:51 +02:00
ogoffart
3709ded44d Bump version number to 0.2.5 2022-05-09 16:16:00 +00:00
ogoffart
c160ec2aef Bump version number to 0.2.4 2022-05-09 13:49:25 +00:00
ogoffart
6395cdfc09 Bump version number to 0.2.3 2022-05-04 12:32:58 +00:00
Olivier Goffart
88d55e036a xtask: Fix node package script
the xshell API changed a bit and does not create the destination directory,
also the path from the iterator is absolute.
2022-05-04 13:52:21 +02:00
Olivier Goffart
59cc65c774 Janitor: upgrade cbindgen 2022-04-26 11:55:34 +02:00
Olivier Goffart
af3db79472 Janitor: Update cbindgen 2022-04-19 15:32:42 +02:00
Olivier Goffart
634e4387c6 Update toml_edit and xshell 2022-04-14 19:18:05 +02:00
Olivier Goffart
e85e69fda0
Declare .slint enum in one place in i-slint-common
This avoid repeating the enums both in the compiler and in
the runtime library, and register them in a bunch of other places.

So it should be easier to add enums and enum values

Since cbindgen doesn't see through the macro, generate the enum
manually
2022-04-14 19:17:48 +02:00
Olivier Goffart
40c98d6d05 Update cbindgen and enable MouseCursor::move
cbindgen 0.21 was released which contains https://github.com/eqrion/cbindgen/pull/724
which allow to use raw identifier in enums shared with C++.
So now we can have `MouseCursor.move` in slint  despite it being a rust keyword

Note that the strum macro also have trouble with the raw identifier, so we
take that in account in the conversion functions in the interpreter
2022-04-05 06:39:50 +02:00
Tobias Hunger
bdb1ae4ca0 Make CI's copyright lawyers happy 2022-03-31 10:50:01 +02:00
Tobias Hunger
c68291b7f8 Janitor: Clap update + basic functionality addition to all binaries
Make clap generate `--version`, and make it add more informtaion from
Cargo.toml available in `--help`.
2022-03-10 12:34:36 +01:00
ogoffart
7b50791db4 Bump version number to 0.2.2 2022-03-10 08:48:33 +00:00
Simon Hausmann
3a50755cab
Add MCU board config setup (#1006)
* Add MCU board config setup

Let the mcu backend provide the link flags via I_DEP_* and the
Slint-build crate now offers a function to allow printing Slint-specific
rustc flags.
2022-03-03 13:31:40 +01:00
Simon Hausmann
d3df83e8eb Make it possible to run the reuse xtask on macOS
Which is a built-in shell command, so use the which crate to locate the
reuse binary.
2022-03-03 13:30:10 +01:00
Simon Hausmann
3fc129a97e janitor: Fix ci
Don't require license headers for the mailmap file
2022-02-17 14:20:46 +01:00
Tobias Hunger
fe2b111629 reuse: Add reuse SPDX compliance checker to xtask
Run reuse to lint the codebase and also fix up the symlinks we need in
the LICENSES directories on crate level.
2022-02-15 11:34:37 +01:00
ogoffart
ecd0fb7ecd Bump version number to 0.2.1 2022-02-10 16:25:28 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
1425ef63de Change the Url from sixtyfps.io to slint-ui.com
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00