diff --git a/src/content/tutorial/vite-plugin/replace-plugin/meta.md b/src/content/tutorial/vite-plugin/replace-plugin/meta.md index ae18bb0..b0856d4 100644 --- a/src/content/tutorial/vite-plugin/replace-plugin/meta.md +++ b/src/content/tutorial/vite-plugin/replace-plugin/meta.md @@ -6,5 +6,7 @@ lessons: - transforming-source-code - summarize-replace-plugin title: Replace Plugin -template: replace-plugin +template: + name: replace-plugin + visibleFiles: ["/tutorial-example.js"] --- diff --git a/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_files/tutorial-example.js b/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_files/tutorial-example.js deleted file mode 100644 index 5da1359..0000000 --- a/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_files/tutorial-example.js +++ /dev/null @@ -1,5 +0,0 @@ -mountHTML(` -
- Hello world! -
-`); diff --git a/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_solution/tutorial-example.js b/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_solution/tutorial-example.js deleted file mode 100644 index 5da1359..0000000 --- a/src/content/tutorial/vite-plugin/replace-plugin/summarize-replace-plugin/_solution/tutorial-example.js +++ /dev/null @@ -1,5 +0,0 @@ -mountHTML(` -
- Hello world! -
-`); diff --git a/src/content/tutorial/vite-plugin/replace-plugin/transforming-code/content.md b/src/content/tutorial/vite-plugin/replace-plugin/transforming-code/content.md index d937ed7..3c55a4c 100644 --- a/src/content/tutorial/vite-plugin/replace-plugin/transforming-code/content.md +++ b/src/content/tutorial/vite-plugin/replace-plugin/transforming-code/content.md @@ -2,6 +2,9 @@ type: lesson title: Import plugin from file focus: /vite.config.ts +template: + name: replace-plugin + visibleFiles: [] --- # Vite Replace plugin diff --git a/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_files/tutorial-example.js b/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_files/tutorial-example.js deleted file mode 100644 index 5da1359..0000000 --- a/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_files/tutorial-example.js +++ /dev/null @@ -1,5 +0,0 @@ -mountHTML(` -
- Hello world! -
-`); diff --git a/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_solution/tutorial-example.js b/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_solution/tutorial-example.js deleted file mode 100644 index 5da1359..0000000 --- a/src/content/tutorial/vite-plugin/replace-plugin/transforming-source-code/_solution/tutorial-example.js +++ /dev/null @@ -1,5 +0,0 @@ -mountHTML(` -
- Hello world! -
-`); diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_files/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_files/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_files/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_solution/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_solution/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-custom-plugin/_solution/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_files/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/defining-load-hook/_solution/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_files/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_files/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_files/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_solution/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_solution/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/importing-yaml-files/_solution/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/meta.md b/src/content/tutorial/vite-plugin/yaml-plugin/meta.md index 6da4703..1572139 100644 --- a/src/content/tutorial/vite-plugin/yaml-plugin/meta.md +++ b/src/content/tutorial/vite-plugin/yaml-plugin/meta.md @@ -7,4 +7,7 @@ lessons: - processing-yaml-files - summarize-yaml-plugin title: YAML Plugin +template: + name: default + visibleFiles: ["/content.yaml", "/index.js"] --- diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_files/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/processing-yaml-files/_solution/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_files/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/content.yaml b/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/content.yaml deleted file mode 100644 index 2def9ee..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/content.yaml +++ /dev/null @@ -1,22 +0,0 @@ -employees: - - id: 1 - name: John Doe - job: Developer - skills: - - JavaScript - - Python - - C++ - - id: 2 - name: Jane Doe - job: Designer - skills: - - Photoshop - - Illustrator - - InDesign -projects: - - id: 101 - name: Project Alpha - description: This is the first project. - - id: 102 - name: Project Beta - description: This is the second project. diff --git a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/index.js b/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/index.js deleted file mode 100644 index 7463639..0000000 --- a/src/content/tutorial/vite-plugin/yaml-plugin/summarize-yaml-plugin/_solution/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import content from "./content.yaml"; - -export default content; diff --git a/src/templates/default/index.js b/src/templates/default/index.js index 4123c14..7463639 100644 --- a/src/templates/default/index.js +++ b/src/templates/default/index.js @@ -1,3 +1,3 @@ -const content = ["Initial content"]; +import content from "./content.yaml"; export default content;