... in addition to the files tested earlier.
This changes the modules generated to include the relative path to the
project root. Otherwise we got errors due to the widgets module getting
defined twice (once in docs/ and once in docs/langref/src).
I think this is saver, as we can end up with files with the same name in
different directories quite easily.
By using a persistent WebGL context for reach (small) preview, we hit
the browser imposed limits on the number of GL contexts quickly. This
change add support to pt out of the automatic enabling of the preview
via no-auto-preview, that's selected for recipes.
Highlight all Slint code and don't do the preview on snippets where it
doesn't make sense.
Some snippets, such as the bare statement or expression snippets, are
now highlighted, but they are continued to be excluded from the doctest.
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
The ffi function wrapper need to be changed because in the 2021 edition, when
the capture is moved into the closure, it moves the individual field instead
of the whole wrapper. But we need to move the whole wrapper because the Drop
of the wrapper will delete the C++ closure, and we don't want to call the
closure after it is deleted.