diff --git a/.github/workflows/nightly_snapshot.yaml b/.github/workflows/nightly_snapshot.yaml index e2514a613f..59ec1e7dcb 100644 --- a/.github/workflows/nightly_snapshot.yaml +++ b/.github/workflows/nightly_snapshot.yaml @@ -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 diff --git a/api/rs/slint/lib.rs b/api/rs/slint/lib.rs index 12c4372d14..1ae6ae2019 100644 --- a/api/rs/slint/lib.rs +++ b/api/rs/slint/lib.rs @@ -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