Commit graph

252 commits

Author SHA1 Message Date
Gabriel
8e75b96777
Add search terms for two-way bindings (#7445) 2025-01-24 19:24:23 +02:00
Simon Hausmann
804d18e165 Remove redundant Slint code snippet in Rust globals invocation example docs
Fixes #6578
2025-01-21 16:50:50 +01:00
Nigel Breslaw
a3e7623f53
Docs: std-widgets layout box wording fix. (#7417)
Fixes: #7360
2025-01-21 15:37:10 +02:00
Nigel Breslaw
5806b027ff
Docs: Apply usage of language tabs everywhere (#7416)
Fixes: #7367
2025-01-21 15:29:34 +02:00
Simon Hausmann
0d723953f9 Add support for line caps in Path Strokes
ChangeLog: Added `Path::stroke-line-cap` property.

Fixes #4676
2025-01-20 22:28:45 +01:00
Simon Hausmann
af23873f86 Fix wrong screenshot of layout stretch algorithm code snippet
Match the width of the screenshot with the width specified in the example.

Fixes #7406
2025-01-20 11:19:54 +01:00
dependabot[bot]
0bf0db0fd0
build(deps): bump the starlight_astro group with 2 updates (#7404)
Bumps the starlight_astro group with 2 updates: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) and [@expressive-code/plugin-line-numbers](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/@expressive-code/plugin-line-numbers).


Updates `@astrojs/starlight` from 0.31.0 to 0.31.1
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.31.1/packages/starlight)

Updates `@expressive-code/plugin-line-numbers` from 0.40.0 to 0.40.1
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/@expressive-code/plugin-line-numbers/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/@expressive-code/plugin-line-numbers@0.40.1/packages/@expressive-code/plugin-line-numbers)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
- dependency-name: "@expressive-code/plugin-line-numbers"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-20 10:21:07 +02:00
dependabot[bot]
2724d60584
build(deps-dev): bump cspell from 8.17.1 to 8.17.2 (#7374)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 8.17.1 to 8.17.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v8.17.2/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 17:39:50 +02:00
dependabot[bot]
7fc32e5149
build(deps): bump the starlight_astro group with 3 updates (#7373)
Bumps the starlight_astro group with 3 updates: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight), [@expressive-code/plugin-line-numbers](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/@expressive-code/plugin-line-numbers) and [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `@astrojs/starlight` from 0.30.6 to 0.31.0
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.31.0/packages/starlight)

Updates `@expressive-code/plugin-line-numbers` from 0.39.0 to 0.40.0
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/@expressive-code/plugin-line-numbers/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/@expressive-code/plugin-line-numbers@0.40.0/packages/@expressive-code/plugin-line-numbers)

Updates `astro` from 5.1.5 to 5.1.7
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.1.7/packages/astro)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: starlight_astro
- dependency-name: "@expressive-code/plugin-line-numbers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: starlight_astro
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 16:23:53 +02:00
Olivier Goffart
fbaa18aafc
Docs: Update docs for image
Link to the API docs from the image type.
2025-01-15 08:03:00 +01:00
Tasuku Suzuki
68b9dfc247 String: Add .is-empty and .character-count properties
Introduce two new properties for string in .slint:
- .is-empty: Checks if a string is empty.
- .character-count: Retrieves the number of grapheme clusters
  https://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries

These additions enhance functionality and improve convenience when working with string properties.
2025-01-14 19:29:05 +01:00
dependabot[bot]
68a5adec94 build(deps): bump @expressive-code/plugin-line-numbers
Bumps [@expressive-code/plugin-line-numbers](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/@expressive-code/plugin-line-numbers) from 0.38.3 to 0.39.0.
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/@expressive-code/plugin-line-numbers/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/@expressive-code/plugin-line-numbers@0.39.0/packages/@expressive-code/plugin-line-numbers)

---
updated-dependencies:
- dependency-name: "@expressive-code/plugin-line-numbers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 15:27:05 +01:00
dependabot[bot]
870805ec19 build(deps): bump typescript from 5.2.2 to 5.7.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.2.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 15:25:56 +01:00
Nigel Breslaw
b4d2782ee4
docs: Fix missing trailing slash (#7353)
The docs were generated so links did not end with a trailing slash. e.g. https://docs.slint.dev/latest/docs/slint/guide/tooling/vscode but the website setup then redirects this to https://docs.slint.dev/latest/docs/slint/guide/tooling/vscode/. This now ensures the trailing slash is added.
2025-01-14 15:49:47 +02:00
Simon Hausmann
31c0fea9aa doc: Shorten and edit the main page button text
This is attempt to make it easier to read by using less words and by starting
each card with a verb (to make it actionable). Also removed the backticks
for std-widgets, as it seems that LinkCard doesn't support inline markdown
formatting.
2025-01-14 09:58:40 +01:00
Simon Hausmann
20a0a585c3 doc: fix broken links 2025-01-14 09:31:05 +01:00
Nigel Breslaw
a390118b6a
Docs: Fix <title> tag having docs version (#7350)
The version was being set not just as a visual title, but also as part of the meta tag for every page on the docs site. Which will then change for each release as the version number changes.

Other sites have a static label here that is independent of the version e.g. Slint UI or Slint docs. 'Slint Docs' is now used.
2025-01-13 17:07:07 +02:00
ogoffart
c83af3ca5c Bump version number to 1.10.0 2025-01-13 13:38:41 +00:00
Olivier Goffart
f6768a3ce7 Revert "Prepare 1.9.2 release"
The release is out

This reverts commit 3f29258081.
2025-01-13 11:55:12 +01:00
Nigel Breslaw
0301c9d7d8 docs: Fix sideBar div stopping slint text being selected 2025-01-13 10:01:07 +01:00
Olivier Goffart
3f29258081 Prepare 1.9.2 release 2025-01-13 09:10:03 +01:00
dependabot[bot]
017a3c7c98
build(deps): bump the starlight_astro group across 1 directory with 2 updates (#7344)
Bumps the starlight_astro group with 2 updates in the / directory: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) and [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `@astrojs/starlight` from 0.30.3 to 0.30.6
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.30.6/packages/starlight)

Updates `astro` from 5.1.2 to 5.1.5
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.1.5/packages/astro)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 09:04:25 +02:00
Olivier Goffart
e8c56be0ca Re-enable tests of the doc snippets
Since the file were moved to `.mdx` they were no longer tested.
Adapt the code so it can test things that needs to be wrapped.
Fix a bunch of mistake in the docs such as simple syntax error to
documented callback that did not exist like SpinBox::changed
2025-01-10 13:24:19 +01:00
Olivier Goffart
3e94bd2167 Janitor: Remove trailing whitespaces from all files
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
Simon Hausmann
c764da4aab
Add property to toggle anti-aliasing on Path elements (#7308)
This enables working around bugs in GPU drivers. Especially the GC7000UL
plus its driver on imx8mp has been observed to sometimes horribly degrade in
performance when Skia renders anti-aliased paths (when a function like
`gcoSURF_BlitCPU` shows up at the top of `perf` that's a bad sign).
2025-01-10 10:28:01 +01:00
Nigel Breslaw
b5ecd82ab3
Docs: Reactivity (#7266) 2025-01-06 18:22:30 +02:00
dependabot[bot]
9dfedb3c03
build(deps): bump astro from 5.1.1 to 5.1.2 in the starlight_astro group (#7277)
Bumps the starlight_astro group with 1 update: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `astro` from 5.1.1 to 5.1.2
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.1.2/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-06 15:49:41 +02:00
Nigel Breslaw
4f08bf6fd2
Visal docs tweak (#7264) 2025-01-03 16:41:21 +02:00
Nigel Breslaw
1ed40e6bc7
Fix broken links to cpp and rust docs (#7263) 2025-01-03 12:03:43 +02:00
Nigel Breslaw
7b6afcbe1a
Bring back version banner (#7253) 2025-01-02 12:58:52 +02:00
Maksym Hazevych
7293bbea97
Fixes obvious grammar errors (#7229) 2024-12-30 17:44:51 +02:00
ogoffart
f309a551b5 Bump version number to 1.9.2 2024-12-30 10:18:16 +00:00
dependabot[bot]
87702e9b55
build(deps): bump the starlight_astro group with 4 updates (#7237)
Bumps the starlight_astro group with 4 updates: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight), [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro), [starlight-links-validator](https://github.com/HiDeoo/starlight-links-validator/tree/HEAD/packages/starlight-links-validator) and [starlight-sidebar-topics](https://github.com/HiDeoo/starlight-sidebar-topics/tree/HEAD/packages/starlight-sidebar-topics).


Updates `@astrojs/starlight` from 0.30.2 to 0.30.3
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.30.3/packages/starlight)

Updates `astro` from 5.0.9 to 5.1.1
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.1.1/packages/astro)

Updates `starlight-links-validator` from 0.13.4 to 0.14.1
- [Release notes](https://github.com/HiDeoo/starlight-links-validator/releases)
- [Changelog](https://github.com/HiDeoo/starlight-links-validator/blob/main/packages/starlight-links-validator/CHANGELOG.md)
- [Commits](https://github.com/HiDeoo/starlight-links-validator/commits/starlight-links-validator@0.14.1/packages/starlight-links-validator)

Updates `starlight-sidebar-topics` from 0.2.1 to 0.3.0
- [Release notes](https://github.com/HiDeoo/starlight-sidebar-topics/releases)
- [Changelog](https://github.com/HiDeoo/starlight-sidebar-topics/blob/main/packages/starlight-sidebar-topics/CHANGELOG.md)
- [Commits](https://github.com/HiDeoo/starlight-sidebar-topics/commits/starlight-sidebar-topics@0.3.0/packages/starlight-sidebar-topics)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: starlight_astro
- dependency-name: starlight-links-validator
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: starlight_astro
- dependency-name: starlight-sidebar-topics
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 11:37:08 +02:00
Nigel Breslaw
bc689c043d
Spell check was misconfigured (#7233) 2024-12-30 10:18:31 +02:00
Tasuku Suzuki
cc1a9beef3 Improve documentation for building slintdocs
- Updated Quickstart and DSL docs in building.md to redirect to astro/README.md due to outdated information
- Fixed issues in astro/README.md that prevented it from working out of the box
2024-12-24 18:05:38 +01:00
Olivier Goffart
d6f83a2af6
Docs: Explain a bit more the image type with more examples 2024-12-23 11:47:34 +01:00
Aurindam Jana
388b9c7abb
Docs: select latest version when url has 'latest' (#7173) 2024-12-19 19:11:09 +05:30
Olivier Goffart
43bfb35e54 Revert "Prepare 1.9.0 release"
This reverts commit a2cf601bfa.

Release done
2024-12-19 14:37:15 +01:00
aurindam
dc3f29b6da Bump version number to 1.9.1 2024-12-19 12:57:19 +00:00
dependabot[bot]
9e57d9cabb
build(deps): bump the astro group with 2 updates (#7128)
Bumps the astro group with 2 updates: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) and [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `@astrojs/starlight` from 0.30.1 to 0.30.2
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.30.2/packages/starlight)

Updates `astro` from 5.0.5 to 5.0.9
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.0.9/packages/astro)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: astro
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 14:02:44 +02:00
Nigel Breslaw
3fae8b2a9a
Docs tests: remove leading slash (#7170)
* Docs tests: remove leading slash

* Fix slash handling in link-data.json for the C++ docs

* Fix trailing slash handling for link-data.json for the Rust API docs

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-12-19 14:01:49 +02:00
Olivier Goffart
9cd1046d23
Docs: Fix abs examples (#7171)
Reported in https://github.com/slint-ui/slint/issues/7146#issuecomment-2551004220
2024-12-19 12:16:20 +01:00
Simon Hausmann
29b6f5449f Attempt to make the docs build more robust
... by always substituting the site config. This way we can find problems with the substitution in the snapshots, not at release time.
2024-12-19 11:06:15 +01:00
Simon Hausmann
004b790e4e Fix base path for snapshot doc builds 2024-12-19 11:06:15 +01:00
Nigel Breslaw
3de87c9bd8
More robust BASE_URL support for docs (#7158)
Bring back playwright tests.
Archive playwright test report to make it easier to debug failed test runs.
Better define a BASE_URL and BASE_PATH so the playwright tests happily work during a release.
2024-12-19 10:58:40 +02:00
Nigel Breslaw
a77de98540
Avoid hard coded LinkCard links (#7157) 2024-12-19 09:59:36 +02:00
Simon Hausmann
90f72925c1 Fix docs build for 1.9 release, part 3
steps.version.outputs.VERSION is always empty in build_docs.yaml, so the substitution never worked. Hard-code for today.
2024-12-18 17:59:10 +01:00
Simon Hausmann
566cb4eaa3 Temporarily disable the version banner
The logic to determine this at compile-time doesn't work as the new version isn't published yet.
2024-12-18 17:22:05 +01:00
Olivier Goffart
a2cf601bfa Prepare 1.9.0 release 2024-12-18 13:26:30 +01:00
Nigel Breslaw
f90da1b493
1.9 docs tweak
* Fix headings
* Simplify vscode setup
* Image fix
* Explain in text how to fully get started.
2024-12-18 13:22:05 +01:00