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

Add and use YouTube videos within the Slint docs #7500

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions docs/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@expressive-code/plugin-line-numbers": "0.40.1",
"@types/node": "20.16.10",
"astro": "5.1.9",
"astro-embed": "0.9.0",
"playwright": "1.50.0",
"playwright-ctrf-json-reporter": "0.0.18",
"rehype-external-links": "3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions docs/astro/src/content/docs/guide/tooling/vscode.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT -->
// cSpell: ignore Wwctiow
title: Visual Studio Code
description: Get going VS Code
---

import { Steps, Tabs, TabItem } from '@astrojs/starlight/components';
import { YouTube } from 'astro-embed';

<YouTube id="fWwctiowLnY" poster="https://github.com/user-attachments/assets/873f51b3-cb32-44f7-be8b-6e4c03c204ff" />

If you are new to Slint and want to quickly get started and learn the basics, we recommend
using Visual Studio Code (VS Code). VS Code is popular, free and thanks to the Slint extension
Expand Down
3 changes: 3 additions & 0 deletions docs/astro/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ hero:
---

import { LinkButton, LinkCard, Card, CardGrid } from '@astrojs/starlight/components';
import { YouTube } from 'astro-embed';
import { Image } from 'astro:assets';
import mattermostLogoLight from '/src/assets/mattermost-logo-dark.svg';
import mattermostLogoDark from '/src/assets/mattermost-logo-light.svg';
Expand All @@ -26,6 +27,8 @@ import LineHighlight from '/src/assets/getting-started/line-highlight.webp';
<Image src={BannerImage} style={{width: "700px"}} width="1200px" alt="Slint examples running on a range of devices"/>
</div>

<YouTube id="vWLXaXJkCWw" poster="https://github.com/user-attachments/assets/769bb54d-2c85-4c12-b761-06e888be2fe2"/>

The documentation is split into several sections:

<CardGrid>
Expand Down
Loading
Loading