You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***astro:** allow URLs in `meta.image` ([#422](https://github.com/stackblitz/tutorialkit/issues/422)) ([3125547](https://github.com/stackblitz/tutorialkit/commit/3125547c043fe4a76dca95b1eb973362967ccf02))
7
+
* switch default `meta.image` to `.png` ([#427](https://github.com/stackblitz/tutorialkit/issues/427)) ([d39bf40](https://github.com/stackblitz/tutorialkit/commit/d39bf404bc1947c48b5cb15164f20f67c0be49bc))
8
+
* warn when using `.svg` in `meta.image` ([#377](https://github.com/stackblitz/tutorialkit/issues/377)) ([6e1edc1](https://github.com/stackblitz/tutorialkit/commit/6e1edc1af274d0eb65587f358e5db9557d259171))
* remove `downloadAsZip` from template for now ([#416](https://github.com/stackblitz/tutorialkit/issues/416)) ([705fead](https://github.com/stackblitz/tutorialkit/commit/705fead006988a4ae865c9171062bd7d3afb3206))
18
+
19
+
20
+
### Features
21
+
22
+
***astro:** add "Download lesson as zip" button ([#415](https://github.com/stackblitz/tutorialkit/issues/415)) ([9c6e534](https://github.com/stackblitz/tutorialkit/commit/9c6e5349b6ab7e7399437839f6fc4cf11bd6c5c3))
23
+
***astro:** support lessons without parts or chapters ([#374](https://github.com/stackblitz/tutorialkit/issues/374)) ([8c44cbe](https://github.com/stackblitz/tutorialkit/commit/8c44cbec3f276a4f788b5d1652f67e4cf8cf7948))
***react:** file tree scroll visibility ([#399](https://github.com/stackblitz/tutorialkit/issues/399)) ([e1e9160](https://github.com/stackblitz/tutorialkit/commit/e1e916044cc225dab925bd846d9208181f2080e1))
51
+
52
+
53
+
### Features
54
+
55
+
***runtime:**`fs.watch` to support syncing new files from webcontainer ([#394](https://github.com/stackblitz/tutorialkit/issues/394)) ([3beda90](https://github.com/stackblitz/tutorialkit/commit/3beda905df20ed9c7d286fc02007cf5b2e74835a))
From an information architecture perspective, tutorial content is divided into **parts**, which are further divided into **chapters**, each consisting of **lessons**.
8
9
@@ -36,6 +37,64 @@ This structure is reflected in the directory structure of your TutorialKit proje
36
37
37
38
Navigate into one of these folders to see another folder that represents a **chapter**. Inside the chapter folder, you will find one or more **lesson** folders.
38
39
40
+
You can also omit parts or chapters such that you only have lessons or only lessons and parts. Here are a few examples:
41
+
42
+
<Tabs>
43
+
<TabItemlabel="Structure">
44
+
```plaintext
45
+
- Lesson 1: Getting started
46
+
- Lesson 2: Adding pages
47
+
```
48
+
</TabItem>
49
+
50
+
<TabItemlabel="File tree">
51
+
<FileTree>
52
+
- src
53
+
- content
54
+
- tutorial
55
+
- getting-started
56
+
- _files/
57
+
- _solution/
58
+
- content.md
59
+
- adding-pages/
60
+
- meta.md
61
+
- config.ts
62
+
- templates/
63
+
</FileTree>
64
+
</TabItem>
65
+
</Tabs>
66
+
67
+
<Tabs>
68
+
<TabItemlabel="Structure">
69
+
```plaintext
70
+
- Part 1: Introduction
71
+
- Lesson 1: What is Vite?
72
+
- Lesson 2: Installing
73
+
- …
74
+
- Part 2: Project structure
75
+
- …
76
+
```
77
+
</TabItem>
78
+
79
+
<TabItemlabel="File tree">
80
+
<FileTree>
81
+
- src
82
+
- content
83
+
- tutorial
84
+
- introduction/
85
+
- what-is-vite/
86
+
- _files/
87
+
- _solution/
88
+
- content.md
89
+
- installing/
90
+
- project-structure/
91
+
- meta.md
92
+
- config.ts
93
+
- templates/
94
+
</FileTree>
95
+
</TabItem>
96
+
</Tabs>
97
+
39
98
## A lesson content file
40
99
41
100
Navigate to the `src/content/tutorial/1-basics/1-introduction/1-welcome` folder and open the `content.md` in your editor. You will see a file structured like this:
@@ -211,15 +270,15 @@ const highlighted = 'This line is highlighted';
211
270
212
271
You can highlight text using strings or regular expressions. For example:
Copy file name to clipboardExpand all lines: docs/tutorialkit.dev/src/content/docs/reference/configuration.mdx
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,13 +284,15 @@ An example use case is when a user runs a command that modifies a file. For inst
284
284
285
285
This property is by default set to `false` as it can impact performance. If you are creating a lesson where the user is expected to modify files outside the editor, you may want to keep this to `false`.
286
286
287
+
If you would like files to be added or removed from the editor automatically, you need to specify an array of globs that will determine which folders and files to watch for changes.
288
+
287
289
<PropertyTable inherited type={'FileSystem'} />
288
290
289
291
The `FileSystem` type has the following shape:
290
292
291
293
```ts
292
294
type FileSystem = {
293
-
watch: boolean
295
+
watch: boolean | string[]
294
296
}
295
297
296
298
```
@@ -299,10 +301,13 @@ Example values:
299
301
300
302
```yaml
301
303
filesystem:
302
-
watch: true # Filesystem changes are reflected in the editor
304
+
watch: true # Filesystem changes to files already in the editor are reflected in the editor
303
305
304
306
filesystem:
305
307
watch: false # Or if it's omitted, the default value is false
308
+
309
+
filesystem:
310
+
watch: ['/*.json', '/src/**/*'] # Files changed, added or deleted that match one of the globs are updated in the editor
0 commit comments