diff --git a/api/cpp/include/slint.h b/api/cpp/include/slint.h index 64e74fb4d..a4c82daf2 100644 --- a/api/cpp/include/slint.h +++ b/api/cpp/include/slint.h @@ -619,9 +619,10 @@ auto access_array_index(const M &model, size_t index) } // namespace private_api /// \rst -/// A Model is providing Data for |Repetition|_ repetitions or |ListView|_ elements of the -/// :code:`.slint` language -/// \endrst +/// A Model is providing Data for +/// `for - in<../../slint/src/reference/repetitions.html>`_ repetitions or +/// `ListView<../../slint/src/builtins/widgets.html#listview>`_ elements of the :code:`.slint` +/// language \endrst template class Model { diff --git a/api/rs/slint/lib.rs b/api/rs/slint/lib.rs index e355c0f89..7a5149ed3 100644 --- a/api/rs/slint/lib.rs +++ b/api/rs/slint/lib.rs @@ -55,7 +55,7 @@ fn main() { ### The .slint code in external files is compiled with `build.rs` When your design becomes bigger in terms of markup code, you may want move it to a dedicated*/ -#![doc = concat!("`.slint` file. It's also possible to split a `.slint` file into multiple files using [modules](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/doc/slint/src/modules.html).")] +#![doc = concat!("`.slint` file. It's also possible to split a `.slint` file into multiple files using [modules](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/docs/slint/src/reference/modules.html).")] /*!Use a [build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) to compile your main `.slint` file: @@ -206,8 +206,8 @@ struct MyStruct { ## Exported Global singletons */ -#![doc = concat!("When you export a [global singleton](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/doc/slint/src/globals.html) from the main file,.")] -/* it is also generated with the exported name. Like the main component, the generated struct have +#![doc = concat!("When you export a [global singleton](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/docs/slint/src/reference/globals.html) from the main file,")] +/*! it is also generated with the exported name. Like the main component, the generated struct have inherent method to access the properties and callback: For each property