docs: Fix dead links between docs

... and add in text that went missing in the Globals section of the rust
docs.
This commit is contained in:
Tobias Hunger 2023-03-23 11:22:51 +01:00
parent 4ca6fd53c9
commit da95051db1
No known key found for this signature in database
GPG key ID: 60874021D2F23F91
2 changed files with 7 additions and 6 deletions

View file

@ -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<typename ModelData>
class Model
{

View file

@ -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