Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename tutorial to quickstart #4941

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Search and replace file paths for test
  • Loading branch information
ChrisChinchilla committed Mar 25, 2024
commit 7437b40357360d29f03950b8bd595f7006a85965
20 changes: 10 additions & 10 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ jobs:
cargo doc -p i-slint-backend-android-activity -p i-slint-backend-winit --no-deps --target aarch64-linux-android --features=i-slint-backend-android-activity/native-activity,i-slint-backend-winit/renderer-femtovg
cp -r target/aarch64-linux-android/doc/i_slint_backend_android_activity/ target/doc/
cp -r target/aarch64-linux-android/doc/i_slint_backend_winit/ target/doc/
- name: "Rust Tutorial Docs"
- name: "Rust QuickStart"
run: mdbook build
working-directory: docs/tutorial/rust
- name: "C++ Tutorial Docs"
working-directory: docs/quickstart/rust
- name: "C++ QuickStart"
run: mdbook build
working-directory: docs/tutorial/cpp
- name: "NodeJS Tutorial Docs"
working-directory: docs/quickstart/cpp
- name: "NodeJS QuickStart"
run: mdbook build
working-directory: docs/tutorial/node
working-directory: docs/quickstart/node
- name: "Slint Language Documentation"
run: cargo xtask slintdocs --show-warnings
- name: "Node docs"
Expand All @@ -115,11 +115,11 @@ jobs:
target/slintdocs/html
api/node/docs
docs/site
docs/tutorial/rust/book/html
docs/tutorial/cpp/book/html
docs/tutorial/node/book/html
docs/quickstart/rust/book/html
docs/quickstart/cpp/book/html
docs/quickstart/node/book/html
- name: "Check for docs warnings in internal crates"
run: cargo doc --workspace --no-deps --all-features --exclude slint-node --exclude pyslint --exclude mcu-board-support --exclude printerdemo_mcu --exclude carousel --exclude test-* --exclude plotter --exclude uefi-demo --exclude ffmpeg --exclude gstreamer-player --exclude slint-cpp
- name: Clean cache # Don't cache docs to avoid them including removed classes being published
run: |
rm -rf target/doc target/cppdocs target/slintdocs api/node/docs docs/tutorial/rust/book docs/tutorial/cpp/book docs/tutorial/node/book
rm -rf target/doc target/cppdocs target/slintdocs api/node/docs docs/quickstart/rust/book docs/quickstart/cpp/book docs/quickstart/node/book
4 changes: 2 additions & 2 deletions .github/workflows/nightly_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ jobs:
sed -i "s!https://slint.dev/releases/.*/docs/!../../!" $output_path/docs/rust/slint/*.html

for lang in rust cpp node; do
mkdir -p $output_path/docs/tutorial/$lang
cp -a ../docs/tutorial/$lang/book/html/* $output_path/docs/tutorial/$lang
mkdir -p $output_path/docs/quickstart/$lang
cp -a ../docs/quickstart/$lang/book/html/* $output_path/docs/quickstart/$lang
done
mkdir -p $output_path/docs/node
cp -a ../api/node/docs/* $output_path/docs/node/
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(SLINT_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(SLINT_BUILD_TESTING AND (SLINT_FEATURE_COMPILER OR SLINT_COMPILER))
add_subdirectory(docs/tutorial/cpp/src/)
add_subdirectory(docs/quickstart/cpp/src/)
endif()

feature_summary(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ members = [
'api/rs/slint',
'api/python',
'api/wasm-interpreter',
'docs/tutorial/rust/src',
'docs/quickstart/rust/src',
'examples/7guis',
'examples/gallery',
'examples/imagefilter/rust',
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ You can of course also contact us privately via email to [info@slint.dev](mailto
[#13]: https://slint.dev/resources/gallery_screenshot.png "Gallery Demo"
[#14]: https://slint.dev/demos/gallery/
[#15]: https://slint.dev/docs/cpp
[#16]: https://slint.dev/docs/tutorial/cpp
[#16]: https://slint.dev/docs/quickstart/cpp
[#17]: https://github.com/slint-ui/slint-cpp-template
[#18]: https://img.shields.io/crates/v/slint
[#19]: https://crates.io/crates/slint
[#20]: https://slint.dev/docs/rust/slint/
[#21]: https://slint.dev/docs/tutorial/rust
[#21]: https://slint.dev/docs/quickstart/rust
[#22]: https://youtu.be/WBcv4V-whHk
[#23]: https://github.com/slint-ui/slint-rust-template
[#24]: https://img.shields.io/npm/v/slint-ui
[#25]: https://www.npmjs.com/package/slint-ui
[#26]: https://slint.dev/docs/node
[#27]: https://slint.dev/docs/tutorial/node
[#27]: https://slint.dev/docs/quickstart/node
[#28]: https://github.com/slint-ui/slint-nodejs-template
4 changes: 2 additions & 2 deletions api/cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Slint.cpp is the C++ API to interact with a Slint UI from C++.

The complete C++ documentation can be viewed online at https://slint.dev/docs/cpp/.

If you are new to Slint, you might also consider going through our [Walk-through tutorial](https://slint.dev/docs/tutorial/cpp).
If you are new to Slint, you might also consider going through our [Walk-through tutorial](https://slint.dev/docs/quickstart/cpp).

## Installing or Building Slint

Expand Down Expand Up @@ -250,6 +250,6 @@ int main() {
That's it.

For more details, check the [Online documentation](https://slint.dev/docs/cpp) and the full
[Walk-through tutorial](https://slint.dev/docs/tutorial/cpp).
[Walk-through tutorial](https://slint.dev/docs/quickstart/cpp).
We also have a [Getting Started Template](https://github.com/slint-ui/slint-cpp-template) repository with
the code of a minimal C++ application using Slint that can be used as a starting point to your program.
2 changes: 1 addition & 1 deletion api/cpp/docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ the UI, read or write properties, and set callbacks. You can learn more about ho

## Tutorial

For an in-depth walk-through, read our <a href="../tutorial/cpp">Slint Memory Game Tutorial</a>.
For an in-depth walk-through, read our <a href="../quickstart/cpp">Slint Memory Game Tutorial</a>.
It will guide you through the `.slint` mark-up language and the C++ API by building a simple memory
game.

Expand Down
2 changes: 1 addition & 1 deletion api/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[Slint](https://slint.dev/) is a UI toolkit that supports different programming languages.
Slint-node is the integration with Node.js.

To get started you use the [walk-through tutorial](https://slint.dev/docs/tutorial/node).
To get started you use the [walk-through tutorial](https://slint.dev/docs/quickstart/node).
We also have a [Getting Started Template](https://github.com/slint-ui/slint-nodejs-template) repository with
the code of a minimal application using Slint that can be used as a starting point to your program.

Expand Down
2 changes: 1 addition & 1 deletion api/node/cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Slint](https://slint.dev/) is a UI toolkit that supports different programming languages.
Slint-node is the integration with [Node.js](https://nodejs.org/en) and [Deno](https://deno.com).

To get started you use the [walk-through tutorial](https://slint.dev/docs/tutorial/node).
To get started you use the [walk-through tutorial](https://slint.dev/docs/quickstart/node).
We also have a [Getting Started Template](https://github.com/slint-ui/slint-nodejs-template) repository with
the code of a minimal application using Slint that can be used as a starting point to your program.

Expand Down
2 changes: 1 addition & 1 deletion api/rs/slint/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
This crate is the main entry point for embedding user interfaces designed with
[Slint](https://slint.rs/) in Rust programs.
*/
#![doc = concat!("If you are new to Slint, start with the [Walk-through **tutorial**](https://slint.dev/releases/", env!("CARGO_PKG_VERSION"), "/docs/tutorial/rust)")]
#![doc = concat!("If you are new to Slint, start with the [Walk-through **tutorial**](https://slint.dev/releases/", env!("CARGO_PKG_VERSION"), "/docs/quickstart/rust)")]
/*! If you are already familiar with Slint, the following topics provide related information.

## Topics
Expand Down
6 changes: 3 additions & 3 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,19 +241,19 @@ There are three tutorials built with mdbook, one for each of the three languages
#### Rust tutorial

```shell
mdbook build docs/tutorial/rust
mdbook build docs/quickstart/rust
```

#### C++ tutorial

```shell
mdbook build docs/tutorial/cpp
mdbook build docs/quickstart/cpp
```

#### NodeJS tutorial

```shell
mdbook build docs/tutorial/node
mdbook build docs/quickstart/node
```

### Slint DSL docs
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Slint Developers <info@slint.dev>"]
language = "en"
multilingual = false
src = "src"
title = "Slint Memory Game Tutorial (C++)"
title = "Slint Memory Game QuickStart (C++)"

[output.html]
theme = "../theme"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Slint Developers <info@slint.dev>"]
language = "en"
multilingual = false
src = "src"
title = "Slint Memory Game Tutorial (node)"
title = "Slint Memory Game QuickStart (node)"

[output.html]
theme = "../theme"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Slint Developers <info@slint.dev>"]
language = "en"
multilingual = false
src = "src"
title = "Slint Memory Game Tutorial (Rust)"
title = "Slint Memory Game QuickStart (Rust)"

[output.html]
theme = "../theme"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Puzzle game based on a Flutter example. See [Readme](./slide_puzzle)

A basic memory game used as an example the tutorial:

* [Memory Game Tutorial (Rust)](https://slint.dev/docs/tutorial/rust)
* [Memory Game Tutorial (C++)](https://slint.dev/docs/tutorial/cpp)
* [Memory Game Tutorial (Rust)](https://slint.dev/docs/quickstart/rust)
* [Memory Game Tutorial (C++)](https://slint.dev/docs/quickstart/cpp)

| `.slint` Design | Rust Source | C++ Source | Online wasm Preview | Open in SlintPad |
| --- | --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/license_headers_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ lazy_static! {
("^editors/tree-sitter-slint/corpus/", LicenseLocation::NoLicense), // liberal license
("^api/cpp/docs/_static/", LicenseLocation::NoLicense),
("^api/cpp/docs/_templates/", LicenseLocation::NoLicense),
("^docs/tutorial/theme/", LicenseLocation::NoLicense),
("^docs/quickstart/theme/", LicenseLocation::NoLicense),
("^editors/tree-sitter-slint/queries/", LicenseLocation::NoLicense), // liberal license

// directory based matches
Expand Down
Loading