Skip to content

Commit

Permalink
Link to the Rust Interpreter API from the same site (slint-ui#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical authored Mar 29, 2023
1 parent 320893f commit 7e1d279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/nightly_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion api/rs/slint/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e1d279

Please sign in to comment.