Skip to content

Commit bb5066a

Browse files
authored
feat: Community guides / books (via awesome-tauri) (#3146)
1 parent c4397bd commit bb5066a

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

packages/awesome-tauri

src/components/AwesomeTauri.astro

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ const sections = {
2525
'plugins-no-official': 'Plugins',
2626
integrations: 'Integrations',
2727
articles: 'Articles',
28-
guides: 'Guides',
29-
tutorials: 'Tutorials',
28+
guides: 'Guides & Tutorials',
29+
'guides-no-official-no-video': 'Guides & Tutorials',
30+
'guides-no-official-only-video': 'Guides & Tutorials',
3031
templates: 'Templates',
3132
'applications-audio-video': 'Audio & Video',
3233
'applications-chatgpt-clients': 'ChatGPT clients',
@@ -57,6 +58,24 @@ for (const header of categories) {
5758
img = entry.children[2];
5859
if (img && img.src && img.src.includes('official')) continue;
5960
}
61+
if (section.includes('-no-video')) {
62+
let img = entry.children[1];
63+
if (img && img.src && img.src.includes('YouTube')) continue;
64+
img = entry.children[2];
65+
if (img && img.src && img.src.includes('YouTube')) continue;
66+
}
67+
if (section.includes('-only-video')) {
68+
let skip = true;
69+
let img = entry.children[1];
70+
if (img && img.src && img.src.includes('YouTube')) {
71+
skip = false;
72+
}
73+
img = entry.children[2];
74+
if (img && img.src && img.src.includes('YouTube')) {
75+
skip = false;
76+
}
77+
if (skip) continue;
78+
}
6079
cards.push({
6180
href: entry.children[0].href,
6281
name: entry.children[0].textContent,

src/content/docs/learn/index.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sidebar:
66
---
77

88
import { Card, CardGrid, LinkCard } from '@astrojs/starlight/components';
9+
import AwesomeTauri from '@components/AwesomeTauri.astro';
910

1011
The Learning category is intended to provide end-to-end learning experiences on a Tauri related topic.
1112

@@ -34,3 +35,27 @@ To learn how to write your own splash screen or use a node.js sidecar, check out
3435
<LinkCard title="Splashcreen" href="/learn/splashscreen/" />
3536
<LinkCard title="Node.js as a Sidecar" href="/learn/sidecar-nodejs/" />
3637
</CardGrid>
38+
39+
## More Resources
40+
41+
This section contains learning resources created by the Community that are not hosted on this website.
42+
43+
<LinkCard
44+
title="Have something to share?"
45+
description="Open a pull request to show us your amazing resource."
46+
href="https://github.com/tauri-apps/awesome-tauri/pulls"
47+
/>
48+
49+
### Books
50+
51+
- **HTML, CSS, JavaScript, and Rust for Beginners: A Guide to Application Development with Tauri** by James Alexander Rose
52+
- Paperback on Amazon: https://www.amazon.com/dp/B0DR6KZVVW
53+
- Free PDF version: [direct download](/assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.pdf) (PDF 4MB)
54+
55+
### Guides & Tutorials
56+
57+
<AwesomeTauri section="guides-no-official-no-video" />
58+
59+
#### Video Guides
60+
61+
<AwesomeTauri section="guides-no-official-only-video" />

0 commit comments

Comments
 (0)