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
From an information architecture perspective, tutorial content is divided into **parts**, which are further divided into **chapters**, each consisting of **lessons**.
This declaration will make TutorialKit use the `src/templates/my-advanced-template` directory as the base for the lesson.
112
113
114
+
By default files in template are not shown in the code editor.
115
+
To make them visible, you can use `visibleFiles` option.
116
+
This can reduce repetition when you want to show same files visible in multiple lessons.
117
+
118
+
```markdown {5}
119
+
---
120
+
title: Advanced Topics
121
+
template:
122
+
name: my-advanced-template
123
+
visibleFiles: ['src/index.js', '**/utils/**']
124
+
---
125
+
```
126
+
113
127
If you start having a lot of templates and they all share some files, you can create a shared template that they all extend. This way, you can keep the shared files in one place and avoid duplication. To do that, you need to specify the `extends` property in the template's `.tk-config.json` file:
114
128
115
129
```json
@@ -144,3 +158,75 @@ src/templates
144
158
│ # Overrides "index.js" from "shared-template"
145
159
└── index.js
146
160
```
161
+
162
+
## Editor File Visibility
163
+
164
+
Editor's files are resolved in three steps. Each step overrides previous one:
0 commit comments