slint/ui-libraries/material/docs
dependabot[bot] 427cdaf9fa
build(deps): bump limax from 4.2.0 to 4.2.1 (#9629)
Bumps [limax](https://github.com/lovell/limax) from 4.2.0 to 4.2.1.
- [Changelog](https://github.com/lovell/limax/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lovell/limax/compare/v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: limax
  dependency-version: 4.2.1
  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>
2025-10-06 15:59:42 +03:00
..
public material: Align favicons with docs.slint.dev (https://github.com/slint-ui/material-components/issues/77) 2025-09-18 15:47:45 +02:00
src Link to global structs & enum page for enum properties (#9590) 2025-10-02 08:40:43 +03:00
tests material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00
vendor/integration material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00
astro.config.ts material: Align favicons with docs.slint.dev (https://github.com/slint-ui/material-components/issues/77) 2025-09-18 15:47:45 +02:00
biome.json Fix REUSE 2025-09-18 22:50:14 +03:00
ec.config.mjs material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00
MIGRATION.md material: Move license file, readme, and migration docs into the zip archive for download 2025-09-25 14:23:09 +02:00
package.json build(deps): bump limax from 4.2.0 to 4.2.1 (#9629) 2025-10-06 15:59:42 +03:00
playwright.config.ts material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00
README.md material: Fix instructions for generating screenshots 2025-09-25 13:53:49 +02:00
tailwind.config.js material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00
tsconfig.json material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00
vscode.tailwind.json material: Material UI homepage (https://github.com/slint-ui/material-components/issues/27) 2025-09-18 15:47:44 +02:00

Slint Material Component Documentation

Prerequisites

  • Rust
  • Node.js
  • pnpm

🚀 Project Structure

The documentation site is built with Astro Starlight and reuses it's project structure.

docs/
├── public/
├── src/
│   ├── assets/
│   ├── content/
│   │   ├── docs/
│   │   └── config.ts
│   └── env.d.ts
├── tests/
├── astro.config.mjs
├── package.json
├── tsconfig.json
└──

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Images can be added to src/assets/ and embedded in Markdown with a relative link. They will be optimized for download size and also their width and height will be extracted so the framework can render them without ugly content shifts.

Static assets, like favicons, can be placed in the public/ directory. Note that images in this folder will not be processed and optimized by Starlight.

Building the docs

The docs use a lot of autogenerated content. First create all the screenshots which will be placed at src/assets/generated/.

Generate the screenshots:

cd ui-libraries/material
cargo run -p slint-docsnapper -- -Lmaterial=$PWD/src/material.slint docs

Build the docs:

pnpm i
pnpm run build

This will build the site and place it in dist/.

Live edit the docs

To run the live hot reloading dev server run in the astro directory:

cd docs/
pnpm start

This will start the dev server at localhost:4321/docs/.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm i Installs dependencies
pnpm start Starts local dev server at localhost:4321
pnpm build Build your production site to ./dist/
pnpm preview Preview your build locally, before deploying
pnpm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

👀 Want to learn more about Astro and Starlight?

Check out Starlights docs, read the Astro documentation, or jump into the Astro Discord server.