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
This declaration will make TutorialKit use the `src/templates/my-advanced-template` directory as the base for the lesson.
112
112
113
+
By default files in template are not shown in the code editor.
114
+
To make them visible, you can use `visibleFiles` option.
115
+
This can reduce repetition when you want to show same files visible in multiple lessons.
116
+
117
+
```markdown {5}
118
+
---
119
+
title: Advanced Topics
120
+
template:
121
+
name: my-advanced-template
122
+
visibleFiles: ['src/index.js', '**/utils/**']
123
+
---
124
+
```
125
+
113
126
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:
0 commit comments