@sp-days-framework/create-sp-days 1.1.0-beta1 → 1.1.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/advanced-config.mdx +37 -12
- package/docs/changelog.mdx +23 -0
- package/docs/index.mdx +2 -1
- package/lib/.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/addon-resources/resources/index.mdx +1 -1
- package/templates/page-course/README.md +37 -12
- package/templates/page-course/docusaurus.config.ts +67 -22
- package/templates/page-course/src/css/sp-days-theme.scss +428 -211
|
@@ -184,18 +184,43 @@ This project includes package documentation for easier access to plugin document
|
|
|
184
184
|
2. **Remove the Plugin Docs dropdown** from the navbar in `docusaurus.config.ts`:
|
|
185
185
|
```typescript
|
|
186
186
|
// Remove this navbar item:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
187
|
+
{
|
|
188
|
+
type: "dropdown",
|
|
189
|
+
label: "Plugin Docs",
|
|
190
|
+
position: "left",
|
|
191
|
+
items: [
|
|
192
|
+
{
|
|
193
|
+
to: "/package-docs/create-sp-days",
|
|
194
|
+
label: "Create SP Days",
|
|
195
|
+
className: "title-logo-navbar-sp-days-plugin",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
to: "/package-docs/frontpage-collection",
|
|
199
|
+
label: "Frontpage Collection",
|
|
200
|
+
className: "title-logo-navbar-docusaurus",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
to: "/package-docs/interactive-tasks",
|
|
204
|
+
label: "Interactive Tasks",
|
|
205
|
+
className: "title-logo-navbar-docusaurus",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
to: "/package-docs/slidev-integration",
|
|
209
|
+
label: "Slidev Integration",
|
|
210
|
+
className: "title-logo-navbar-docusaurus",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
to: "/package-docs/terminal-codeblock",
|
|
214
|
+
label: "Terminal Codeblock",
|
|
215
|
+
className: "title-logo-navbar-docusaurus",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
to: "/package-docs/sykehuspartner-theme",
|
|
219
|
+
label: "Sykehuspartner Theme",
|
|
220
|
+
className: "title-logo-navbar-slidev",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
199
224
|
```
|
|
200
225
|
|
|
201
226
|
3. **Remove the package dependency** from `package.json`:
|
|
@@ -41,7 +41,11 @@ const config: Config = {
|
|
|
41
41
|
id: "course",
|
|
42
42
|
path: "course",
|
|
43
43
|
routeBasePath: "course",
|
|
44
|
-
sidebarItemsGenerator: require(
|
|
44
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
45
|
+
remarkPlugins: [
|
|
46
|
+
require("@sp-days-framework/docusaurus-plugin-terminal-codeblock")
|
|
47
|
+
.remarkTerminalDirective,
|
|
48
|
+
],
|
|
45
49
|
beforeDefaultRemarkPlugins: [
|
|
46
50
|
require("@sp-days-framework/docusaurus-plugin-interactive-tasks")
|
|
47
51
|
.remarkTaskDirective,
|
|
@@ -61,45 +65,57 @@ const config: Config = {
|
|
|
61
65
|
// Adds the Interactive Tasks plugin to enable task directives
|
|
62
66
|
"@sp-days-framework/docusaurus-plugin-interactive-tasks",
|
|
63
67
|
|
|
68
|
+
// Adds the Terminal Codeblock plugin to enable terminal output rendering
|
|
69
|
+
"@sp-days-framework/docusaurus-plugin-terminal-codeblock",
|
|
70
|
+
|
|
64
71
|
// CONDITIONAL: package-docs (START)
|
|
65
|
-
//
|
|
72
|
+
// Create SP Days Documentation
|
|
66
73
|
[
|
|
67
74
|
"@docusaurus/plugin-content-docs",
|
|
68
75
|
{
|
|
69
|
-
sidebarItemsGenerator: require(
|
|
70
|
-
...require("@sp-days-framework/
|
|
76
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
77
|
+
...require("@sp-days-framework/create-sp-days/publish-package-docs"),
|
|
71
78
|
},
|
|
72
79
|
],
|
|
73
|
-
//
|
|
80
|
+
// Frontpage Collection Documentation
|
|
74
81
|
[
|
|
75
82
|
"@docusaurus/plugin-content-docs",
|
|
76
83
|
{
|
|
77
|
-
sidebarItemsGenerator: require(
|
|
78
|
-
...require("@sp-days-framework/docusaurus-
|
|
84
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
85
|
+
...require("@sp-days-framework/docusaurus-frontpage-collection/publish-package-docs"),
|
|
79
86
|
},
|
|
80
87
|
],
|
|
81
|
-
//
|
|
88
|
+
// Interactive Tasks Plugin Documentation
|
|
82
89
|
[
|
|
83
90
|
"@docusaurus/plugin-content-docs",
|
|
84
91
|
{
|
|
85
|
-
sidebarItemsGenerator: require(
|
|
86
|
-
...require("@sp-days-framework/docusaurus-
|
|
92
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
93
|
+
...require("@sp-days-framework/docusaurus-plugin-interactive-tasks/publish-package-docs"),
|
|
87
94
|
},
|
|
88
95
|
],
|
|
89
|
-
//
|
|
96
|
+
// Slidev Plugin Documentation
|
|
90
97
|
[
|
|
91
98
|
"@docusaurus/plugin-content-docs",
|
|
92
99
|
{
|
|
93
|
-
sidebarItemsGenerator: require(
|
|
94
|
-
...require("@sp-days-framework/
|
|
100
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
101
|
+
...require("@sp-days-framework/docusaurus-plugin-slidev/publish-package-docs"),
|
|
95
102
|
},
|
|
96
103
|
],
|
|
97
|
-
//
|
|
104
|
+
// Terminal Codeblock Plugin Documentation
|
|
98
105
|
[
|
|
99
106
|
"@docusaurus/plugin-content-docs",
|
|
100
107
|
{
|
|
101
|
-
sidebarItemsGenerator: require(
|
|
102
|
-
|
|
108
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
109
|
+
|
|
110
|
+
...require("@sp-days-framework/docusaurus-plugin-terminal-codeblock/publish-package-docs"),
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
// Sykehuspartner Slidev Theme Documentation
|
|
114
|
+
[
|
|
115
|
+
"@docusaurus/plugin-content-docs",
|
|
116
|
+
{
|
|
117
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
118
|
+
...require("@sp-days-framework/slidev-theme-sykehuspartner/publish-package-docs"),
|
|
103
119
|
},
|
|
104
120
|
],
|
|
105
121
|
// CONDITIONAL: package-docs (END)
|
|
@@ -117,7 +133,11 @@ const config: Config = {
|
|
|
117
133
|
id: "resources",
|
|
118
134
|
path: "resources",
|
|
119
135
|
routeBasePath: "resources",
|
|
120
|
-
sidebarItemsGenerator: require(
|
|
136
|
+
sidebarItemsGenerator: require("./sidebarSections"),
|
|
137
|
+
remarkPlugins: [
|
|
138
|
+
require("@sp-days-framework/docusaurus-plugin-terminal-codeblock")
|
|
139
|
+
.remarkTerminalDirective,
|
|
140
|
+
],
|
|
121
141
|
},
|
|
122
142
|
],
|
|
123
143
|
// CONDITIONAL: addon-resources (END)
|
|
@@ -160,11 +180,36 @@ const config: Config = {
|
|
|
160
180
|
label: "Plugin Docs",
|
|
161
181
|
position: "left",
|
|
162
182
|
items: [
|
|
163
|
-
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
183
|
+
{
|
|
184
|
+
to: "/package-docs/create-sp-days",
|
|
185
|
+
label: "Create SP Days",
|
|
186
|
+
className: "title-logo-navbar-sp-days-plugin",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
to: "/package-docs/frontpage-collection",
|
|
190
|
+
label: "Frontpage Collection",
|
|
191
|
+
className: "title-logo-navbar-docusaurus",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
to: "/package-docs/interactive-tasks",
|
|
195
|
+
label: "Interactive Tasks",
|
|
196
|
+
className: "title-logo-navbar-docusaurus",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
to: "/package-docs/slidev-integration",
|
|
200
|
+
label: "Slidev Integration",
|
|
201
|
+
className: "title-logo-navbar-docusaurus",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
to: "/package-docs/terminal-codeblock",
|
|
205
|
+
label: "Terminal Codeblock",
|
|
206
|
+
className: "title-logo-navbar-docusaurus",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
to: "/package-docs/sykehuspartner-theme",
|
|
210
|
+
label: "Sykehuspartner Theme",
|
|
211
|
+
className: "title-logo-navbar-slidev",
|
|
212
|
+
},
|
|
168
213
|
],
|
|
169
214
|
},
|
|
170
215
|
// CONDITIONAL: package-docs (END)
|