Commit graph

1123 commits

Author SHA1 Message Date
Nigel Breslaw
ae087629e9
1.9 docs: Show snippet language
The docs don't just have Slint language files. They have Rust, Cpp, Javascript, bash, etc. This change shows a little language hint to make it clear what the language is.

It fades away on hover to be replaced by the copy/paste or open in SlintPad icons.
2024-12-03 16:21:37 +02:00
Nigel Breslaw
45e83d31ed
1.9 docs: spellcheck docs in CI and fix typos 2024-12-03 15:11:07 +02:00
FloVanGH
0d1412afc5
removed skip-taskbar property from window (#6982) 2024-12-03 10:07:36 +00:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements 2024-12-02 16:22:39 +00:00
Nigel Breslaw
6de76e0aed
1.9 docs: Support common structs 2024-12-02 18:07:35 +02:00
Simon Hausmann
35e094e723 Tweak API references links
- Remove Python as we don't have API docs yet
- Add the beta label to the JS integration (see #4471)
2024-12-02 13:05:16 +01:00
dependabot[bot]
c971467c3d
build(deps): bump starlight-links-validator from 0.13.2 to 0.13.3 (#6964)
Bumps [starlight-links-validator](https://github.com/HiDeoo/starlight-links-validator) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/HiDeoo/starlight-links-validator/releases)
- [Commits](https://github.com/HiDeoo/starlight-links-validator/compare/v0.13.2...v0.13.3)

---
updated-dependencies:
- dependency-name: starlight-links-validator
  dependency-type: direct:production
  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>
2024-12-02 13:54:19 +02:00
Simon Hausmann
d07d7ac098 Mention the current issue with cc-rs/skia-safe and Yocto
cc #6875
2024-12-02 11:30:09 +01:00
Nigel Breslaw
28e1b7f845
1.9 docs - Move links into a json file 2024-12-02 12:06:54 +02:00
Simon Hausmann
5ce63e58ae doc: fix typo 2024-12-02 11:00:51 +01:00
dependabot[bot]
50218c8425
build(deps-dev): bump cspell from 8.16.0 to 8.16.1 (#6962)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 8.16.0 to 8.16.1.
- [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.16.1/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>
2024-12-02 11:59:55 +02:00
dependabot[bot]
b46650af2c
build(deps): bump astro from 4.16.14 to 4.16.16 in the astro group (#6960)
Bumps the astro group with 1 update: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `astro` from 4.16.14 to 4.16.16
- [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@4.16.16/packages/astro)

---
updated-dependencies:
- 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-02 11:59:21 +02:00
Nigel Breslaw
aa98768c39
1.9 Docs trial multi-sidebar groups 2024-12-01 23:39:05 +02:00
asuper0
913f3be845
docs:handle the console on Windows 2024-11-28 20:39:58 +02:00
Nigel Breslaw
6a7ec46ff0
Fix type links and add Playwright test 2024-11-28 11:11:41 +02:00
Nigel Breslaw
98e5df90cb
1.9 docs tweaks (#6935)
Fix code readability issues.
Support screenshot scale.
Bring back types and tweak screenshots.
2024-11-28 00:00:32 +02:00
FloVanGH
7286169318
docs: added more property examples. (#6929) 2024-11-27 12:38:58 +00:00
FloVanGH
35f1909c0d
docs: std-widgets property docs part 1 (#6920) 2024-11-27 11:02:07 +00:00
FloVanGH
712f930897
windows: added skip_taskbar (#6911)
* Update internal/backends/winit/winitwindowadapter.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update internal/backends/winit/winitwindowadapter.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update docs/src/content/docs/reference/window/window.mdx

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-27 09:55:11 +00:00
Simon Hausmann
80fb49bb39
Integrate the positioning and layout guide (#6915) 2024-11-26 16:37:27 +01:00
Nigel Breslaw
e292754f14
Smarter docs links (#6914)
This adds a <Link> astro component that can change the base url of links to work at the snapshot url or docs.slint.dev url. 
It also uses Playwright to test all the links.
2024-11-26 17:28:25 +02:00
FloVanGH
56b2c280fd
docs: improved std-widgets snippets (#6913) 2024-11-26 09:00:54 +00:00
Nigel Breslaw
852f686607
(1.9 docs) Update the old std-widgets to the new mdx syntax 2024-11-26 10:01:46 +02:00
Nigel Breslaw
d834e031c1
1.9 Docs. Update std-widgets to new mdx syntax 2024-11-25 19:32:38 +02:00
dependabot[bot]
888fc275a6
build(deps): bump typescript from 5.2.2 to 5.7.2 (#6897)
NOTE: This updates typescript to 5.72 for all projects except api/node which cannot be updated
till typedoc is also updated.

* build(deps): bump typescript from 5.2.2 to 5.7.2

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.2.
- [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.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-25 19:32:07 +02:00
dependabot[bot]
e5285e0607
build(deps): bump the playwright group with 2 updates (#6901)
Bumps the playwright group with 2 updates: [@playwright/test](https://github.com/microsoft/playwright) and [playwright](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.48.2 to 1.49.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.48.2...v1.49.0)

Updates `playwright` from 1.48.2 to 1.49.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.48.2...v1.49.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: playwright
- dependency-name: playwright
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: playwright
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 17:56:17 +02:00
dependabot[bot]
707d2ba215
build(deps): bump the astro group with 2 updates (#6893)
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.29.0 to 0.29.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.29.2/packages/starlight)

Updates `astro` from 4.16.12 to 4.16.14
- [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@4.16.14/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-11-25 16:41:48 +02:00
Nigel Breslaw
97edda9848
1.9 Docs update
Fix the low res banner on home page.
Add snippets to Timer.
Move Color details into Reference.
2024-11-25 13:02:51 +02:00
Nigel Breslaw
a10cdf8048
More 1.9 docs
Show hide 'run in slintpad' button with same logic as copy paste code button.
Move std-widgets into reference.
Stop using code styling for h3 headers.
Make better use of Astro to reduce runtime javascript.
Make better use of Astro to ensure UI is built at build time and isn't dynamic at runtime.
2024-11-24 18:06:55 +02:00
Nigel Breslaw
47ab230cad
Setup a Playwright smoke test for Slintpad (#6874)
Remove cypress.
Use vite preview to serve the built bundle.
Setup playwright.
Run smoke test in CI.
2024-11-22 15:52:31 +02:00
Aurindam Jana
83ae918d76 Docs: Hero section styling 2024-11-21 22:45:47 +01:00
Nigel Breslaw
20926e0fa7
1.9 docs - more work on the guide
Start to have common properties.
Tweak version selector.
Update image docs with examples.
2024-11-21 17:37:46 +02:00
Olivier Goffart
b208691034 docs: fix typos in callback docs
Apply suggestions from code review

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-21 09:53:17 +01:00
Olivier Goffart
c0a123b6b9 Callback arguments names is no longer experimental
ChangeLog: named callback arguments
2024-11-21 09:53:17 +01:00
dependabot[bot]
ad8a23571a
build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4 (#6863)
* build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.9.4/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* format:fix

* Ignore lint item

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-21 00:28:19 +02:00
Aurindam Jana
dcef70b0c2
Tweak docs (#6857)
* Collapse Platforms in sidebar

* Add back Lang IntegrationLinkCard

* Style Hero section

* Get in Touch: Use LinkCard
2024-11-20 21:58:30 +01:00
Nigel Breslaw
0bbe8e7a53
Fix docs build (#6853)
* Fix docs build

* Tweak docs ci to also lint and format
2024-11-20 19:51:21 +01:00
Olivier Goffart
ac2f21a88e docs: translations: Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-20 17:26:13 +01:00
Olivier Goffart
900f742d2c Document the bundled translation 2024-11-20 17:26:13 +01:00
Nigel Breslaw
d48b2c3dd7
Fix web projects linting and formatting 2024-11-20 17:05:17 +02:00
Aurindam Jana
0898a5f641
Tweak Docs (#6834)
---------

Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-20 14:27:37 +01:00
Nigel Breslaw
bcbf461043
1.9 docs fix types table 2024-11-19 13:11:38 +02:00
Aurindam Jana
3c23187ebf Docs: Update custom.css 2024-11-19 11:04:16 +01:00
Aurindam Jana
873509127d Update Logo for Slint docs
Use the small version of the logo
2024-11-19 10:25:24 +01:00
Nigel Breslaw
b7278f6ca8
Enhance docs theme
Makes the dark theme look less like 'default Starlight'.
Syntax coloring uses the dark and light-plus theme.
Types are displayed as badges.
2024-11-17 21:31:32 +02:00
Nigel Breslaw
ebd1c2eb09
Put back missing _templates to fix nightly snapshots 2024-11-16 00:30:29 +02:00
Nigel Breslaw
04a870a589
Bring more old docs content into the new system
More language guide and move some items into an FAQ
2024-11-15 19:56:58 +02:00
Simon Hausmann
1866c4cecc Fix version number 2024-11-15 14:34:07 +01:00
Nigel Breslaw
300423d03f
Enhance new docs
Fix very broken github link.
Move some items around and group std-widgets similar to element reference.
Move Timer to elements.
Use the simpler :::tip[Tip] markdown style.
Update Astro and the link validator.
2024-11-15 13:18:58 +02:00
FloVanGH
5ea05e18af
std-widgets: added horizontal-alignment to SpinBox (#6778) 2024-11-15 08:05:57 +00:00