Link to the Rust Interpreter API from the same site (#2410)

This commit is contained in:
Simon Hausmann 2023-03-29 13:20:53 +02:00 committed by GitHub
parent 320893f349
commit 7e1d27935d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -310,8 +310,7 @@ jobs:
cp -a ../target/doc/* snapshots/$target_branch/docs/rust/
# Fix up link to Slint language documentation
sed -i "s!https://slint-ui.com/releases/.*/docs/slint!../../slint!" snapshots/$target_branch/docs/rust/slint/*.html
sed -i "s!https://slint-ui.com/releases/.*/docs/tutorial!../../tutorial!" snapshots/$target_branch/docs/rust/slint/*.html
sed -i "s!https://slint-ui.com/releases/.*/docs/!../../!" snapshots/$target_branch/docs/rust/slint/*.html
for lang in rust cpp node; do
mkdir -p snapshots/$target_branch/docs/tutorial/$lang

View file

@ -26,7 +26,9 @@ of including them in Rust:
- The `.slint` code is [inline in a macro](#the-slint-code-in-a-macro).
- The `.slint` code in [external files compiled with `build.rs`](#the-slint-code-in-external-files-is-compiled-with-buildrs)
- The `.slint` code is loaded dynamically at run-time from the file system, by using the [interpreter API](https://docs.rs/slint-interpreter).
*/
#![doc = concat!(" - The `.slint` code is loaded dynamically at run-time from the file system, by using the [interpreter API](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/docs/rust/slint_interpreter/).")]
/*!
With the first two methods, the markup code is translated to Rust code and each component is turned into a Rust
struct with functions. Use these functions to instantiate and show the component, and