@sp-days-framework/create-sp-days 1.0.4 → 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/README.md +14 -0
- package/bin/index.js +2 -0
- package/docs/advanced-config.mdx +412 -0
- package/docs/changelog.mdx +129 -0
- package/docs/index.mdx +206 -0
- package/docs/install.mdx +199 -0
- package/docs/sidebar-sections.mdx +268 -0
- package/docs/sp-days-plugin-color-light.svg +53 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/.tsbuildinfo-build +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +36 -7
- package/package.json +31 -7
- package/publish-package-docs.js +12 -0
- package/templates/addon-resources/resources/api-reference.mdx +132 -0
- package/templates/addon-resources/resources/best-practice.mdx +407 -0
- package/templates/addon-resources/resources/cheat-sheet.mdx +120 -0
- package/templates/addon-resources/resources/cli-reference.mdx +280 -0
- package/templates/addon-resources/resources/configuration-guide.mdx +211 -0
- package/templates/addon-resources/resources/environment-setup.mdx +317 -0
- package/templates/addon-resources/resources/faq.mdx +146 -0
- package/templates/addon-resources/resources/glossary.mdx +78 -0
- package/templates/addon-resources/resources/index.mdx +67 -16
- package/templates/addon-resources/resources/quick-start.mdx +193 -0
- package/templates/addon-resources/resources/troubleshooting.mdx +263 -0
- package/templates/addon-resources/resources/useful-links.mdx +61 -0
- package/templates/page-course/README.md +87 -0
- package/templates/page-course/docusaurus.config.ts +103 -10
- package/templates/page-course/package.json +12 -2
- package/templates/page-course/sidebarSections.js +118 -0
- package/templates/page-course/src/css/sp-days-theme.scss +428 -211
- package/tsconfig.base.client.json +10 -0
- package/tsconfig.base.json +71 -0
- package/tsconfig.build.json +9 -0
- package/sp-days-framework-create-sp-days-1.0.3.tgz +0 -0
- package/templates/addon-resources/resources/interactive-tasks/creating-tasks.mdx +0 -254
- package/templates/addon-resources/resources/interactive-tasks/examples/_category_.yml +0 -3
- package/templates/addon-resources/resources/interactive-tasks/examples/advanced-usage.mdx +0 -304
- package/templates/addon-resources/resources/interactive-tasks/examples/basic-usage.mdx +0 -128
- package/templates/addon-resources/resources/interactive-tasks/index.mdx +0 -93
- package/templates/addon-resources/resources/interactive-tasks/setup/advanced-configuration.mdx +0 -273
- package/templates/addon-resources/resources/interactive-tasks/setup/index.mdx +0 -120
- package/templates/addon-resources/resources/interactive-tasks/task-progression.mdx +0 -140
- package/templates/addon-resources/resources/slidev-integration/index.mdx +0 -106
- package/templates/addon-resources/resources/slidev-integration/setup/advanced-configuration.mdx +0 -144
- package/templates/addon-resources/resources/slidev-integration/setup/index.mdx +0 -200
- package/templates/addon-resources/resources/sykehuspartner-theme/index.mdx +0 -105
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/center.mdx +0 -33
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/default.mdx +0 -59
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/full.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-left.mdx +0 -37
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-right.mdx +0 -37
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image.mdx +0 -56
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols-header.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols.mdx +0 -47
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols-header.mdx +0 -43
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols.mdx +0 -38
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/cover.mdx +0 -43
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/end.mdx +0 -33
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/intro.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/section.mdx +0 -41
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/about-me.mdx +0 -92
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/fact.mdx +0 -47
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/quote.mdx +0 -27
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/statement.mdx +0 -28
- package/templates/addon-resources/resources/sykehuspartner-theme/setup/advanced-configuration.mdx +0 -79
- package/templates/addon-resources/resources/sykehuspartner-theme/setup/index.mdx +0 -104
- package/templates/addon-resources/resources/sykehuspartner-theme/syntax-and-icons.mdx +0 -89
- package/templates/addon-slidev/package.json +0 -54
package/README.md
CHANGED
|
@@ -50,6 +50,19 @@ Adds comprehensive documentation:
|
|
|
50
50
|
- Setup and configuration examples
|
|
51
51
|
- Best practices documentation
|
|
52
52
|
|
|
53
|
+
#### Plugin Documentation (`--include-package-docs`)
|
|
54
|
+
|
|
55
|
+
Adds developer documentation for installed plugins:
|
|
56
|
+
|
|
57
|
+
- Separate documentation instances for each plugin
|
|
58
|
+
- Developer guides and API references
|
|
59
|
+
- Accessible via "Plugin Docs" dropdown in navbar
|
|
60
|
+
- Routes: `/package-docs/interactive-tasks`, etc.
|
|
61
|
+
|
|
62
|
+
**Note:** Starting from version 1.1.0, all `@sp-days-framework` packages include their documentation as pre-made Docusaurus-formatted MDX files. This feature is primarily useful during package development or for easier access to documentation, but it does add unnecessary dependencies for production builds.
|
|
63
|
+
|
|
64
|
+
**Important:** When package documentation is enabled, the Slidev addon is automatically installed (even if not explicitly requested) because the package docs include Slidev theme documentation.
|
|
65
|
+
|
|
53
66
|
## Usage
|
|
54
67
|
|
|
55
68
|
### Interactive Mode (Recommended)
|
|
@@ -99,6 +112,7 @@ npx @sp-days-framework/create-sp-days my-course \
|
|
|
99
112
|
| `--tagline <tagline>` | | Site tagline | `Empowered by Docusaurus and Slidev` |
|
|
100
113
|
| `--addon-slidev` | | Add Slidev integration | `false` (CLI), prompted (interactive) |
|
|
101
114
|
| `--addon-resources` | | Add Resources page | `false` (CLI), prompted (interactive) |
|
|
115
|
+
| `--include-package-docs` | | Include plugin documentation | `false` (CLI), prompted (interactive) |
|
|
102
116
|
| `--package-manager <pm>` | `-p` | Package manager (npm/yarn/pnpm/bun) | Auto-detected |
|
|
103
117
|
| `--skip-install` | `-s` | Skip dependency installation | `false` |
|
|
104
118
|
| `--help` | `-h` | Display help | - |
|
package/bin/index.js
CHANGED
|
@@ -42,6 +42,7 @@ program
|
|
|
42
42
|
)
|
|
43
43
|
.option("--addon-slidev", "Add Slidev integration addon")
|
|
44
44
|
.option("--addon-resources", "Add Resources page addon")
|
|
45
|
+
.option("--include-package-docs", "Include package documentation instances")
|
|
45
46
|
.option(
|
|
46
47
|
"-p, --package-manager <manager>",
|
|
47
48
|
"The package manager used to install dependencies. One of yarn, npm, pnpm, and bun."
|
|
@@ -62,6 +63,7 @@ program
|
|
|
62
63
|
typeof options.tagline === "string" ? options.tagline : undefined,
|
|
63
64
|
addonSlidev: options.addonSlidev === true ? true : undefined,
|
|
64
65
|
addonResources: options.addonResources === true ? true : undefined,
|
|
66
|
+
includePackageDocs: options.includePackageDocs === true ? true : undefined,
|
|
65
67
|
packageManager:
|
|
66
68
|
typeof options.packageManager === "string"
|
|
67
69
|
? options.packageManager
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1.2
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Setup"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import Tabs from "@theme/Tabs";
|
|
9
|
+
import TabItem from "@theme/TabItem";
|
|
10
|
+
|
|
11
|
+
# Advanced Configuration
|
|
12
|
+
|
|
13
|
+
## CLI Reference
|
|
14
|
+
|
|
15
|
+
### Command Syntax
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
create-sp-days [directory] [options]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
or
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @sp-days-framework/create-sp-days [directory] [options]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### All CLI Options
|
|
28
|
+
|
|
29
|
+
| Flag | Alias | Type | Default | Description |
|
|
30
|
+
|------|-------|------|---------|-------------|
|
|
31
|
+
| `[directory]` | - | `string` | - | Target directory name (required in CLI mode) |
|
|
32
|
+
| `--name <name>` | `-n` | `string` | Directory name | Project name for package.json |
|
|
33
|
+
| `--org <organization>` | - | `string` | `helse-sorost` | GitHub organization name |
|
|
34
|
+
| `--repo <repository>` | - | `string` | Project name | GitHub repository name |
|
|
35
|
+
| `--title <title>` | - | `string` | `SP Days Template` | Site title displayed in header |
|
|
36
|
+
| `--tagline <tagline>` | - | `string` | `Empowered by Docusaurus and Slidev` | Site tagline/subtitle |
|
|
37
|
+
| `--addon-slidev` | - | `boolean` | `false` | Enable Slidev presentation integration |
|
|
38
|
+
| `--addon-resources` | - | `boolean` | `false` | Enable Resources documentation |
|
|
39
|
+
| `--include-package-docs` | - | `boolean` | `false` | Include package documentation (auto-enables Slidev) |
|
|
40
|
+
| `--package-manager <pm>` | `-p` | `string` | Auto-detected | Package manager: npm, yarn, pnpm, or bun |
|
|
41
|
+
| `--skip-install` | `-s` | `boolean` | `false` | Skip dependency installation |
|
|
42
|
+
| `--help` | `-h` | - | - | Display help information |
|
|
43
|
+
| `--version` | `-v` | - | - | Display version number |
|
|
44
|
+
|
|
45
|
+
### Interactive vs CLI Mode
|
|
46
|
+
|
|
47
|
+
**Interactive Mode:**
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx @sp-days-framework/create-sp-days
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Prompts for all options
|
|
54
|
+
- Provides suggestions and defaults
|
|
55
|
+
- Validates input in real-time
|
|
56
|
+
- Best for first-time users
|
|
57
|
+
|
|
58
|
+
**CLI Mode:**
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npx @sp-days-framework/create-sp-days my-course --title "My Course"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- Specify options as flags
|
|
65
|
+
- Non-interactive (suitable for scripts)
|
|
66
|
+
- Uses defaults for unspecified options
|
|
67
|
+
- Best for automation
|
|
68
|
+
|
|
69
|
+
:::tip
|
|
70
|
+
In CLI mode, any missing required options will be prompted interactively.
|
|
71
|
+
:::
|
|
72
|
+
|
|
73
|
+
## Usage Patterns
|
|
74
|
+
|
|
75
|
+
### Complete Course Setup
|
|
76
|
+
|
|
77
|
+
Create a production-ready course with all features:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx @sp-days-framework/create-sp-days kubernetes-course \
|
|
81
|
+
--name "kubernetes-course" \
|
|
82
|
+
--org "my-company" \
|
|
83
|
+
--repo "k8s-training-2024" \
|
|
84
|
+
--title "Kubernetes Essentials" \
|
|
85
|
+
--tagline "From Zero to Production in 5 Days" \
|
|
86
|
+
--addon-slidev \
|
|
87
|
+
--addon-resources \
|
|
88
|
+
--package-manager npm
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Generated structure:**
|
|
92
|
+
|
|
93
|
+
- Directory: `kubernetes-course/`
|
|
94
|
+
- Package: `kubernetes-course`
|
|
95
|
+
- URL: `https://my-company.github.io/k8s-training-2024/`
|
|
96
|
+
- Includes: Slidev + Resources
|
|
97
|
+
- Dependencies: Installed with npm
|
|
98
|
+
|
|
99
|
+
## Project Structure Examples
|
|
100
|
+
|
|
101
|
+
### Base Template
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
docker-course/
|
|
105
|
+
├── course/ # Your course content
|
|
106
|
+
│ ├── index.mdx # Course overview
|
|
107
|
+
│ ├── module-1/
|
|
108
|
+
│ └── module-2/
|
|
109
|
+
├── src/
|
|
110
|
+
│ ├── css/
|
|
111
|
+
│ │ └── sp-days-theme.scss
|
|
112
|
+
│ └── pages/
|
|
113
|
+
│ └── index.mdx # Landing page
|
|
114
|
+
├── static/
|
|
115
|
+
│ └── img/ # Images and assets
|
|
116
|
+
├── docusaurus.config.ts # Main configuration
|
|
117
|
+
└── package.json # Dependencies and scripts
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### With `--addon-slidev`
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
├── slidev/ # Presentations
|
|
124
|
+
│ └── introduction.md
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### With `--addon-resources`
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
├── resources/ # Documentation
|
|
131
|
+
│ └── frontpage-collection/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## How It Works
|
|
135
|
+
|
|
136
|
+
### Template Processing
|
|
137
|
+
|
|
138
|
+
The scaffolding tool processes template files in several steps:
|
|
139
|
+
|
|
140
|
+
1. **Variable Replacement** - Substitutes placeholders with user-provided values
|
|
141
|
+
2. **Conditional Sections** - Includes/excludes code blocks based on selected addons
|
|
142
|
+
3. **File Generation** - Creates final project structure
|
|
143
|
+
4. **Dependency Installation** - Installs packages (unless `--skip-install` is used)
|
|
144
|
+
|
|
145
|
+
### Variable Replacement
|
|
146
|
+
|
|
147
|
+
Template files use placeholder variables that are replaced during project creation:
|
|
148
|
+
|
|
149
|
+
**Available variables:**
|
|
150
|
+
|
|
151
|
+
| Variable | Description | Example |
|
|
152
|
+
|----------|-------------|---------|
|
|
153
|
+
| `<%= organizationName %>` | GitHub organization | `helse-sorost` |
|
|
154
|
+
| `<%= projectName %>` | Project/package name | `docker-course` |
|
|
155
|
+
| `<%= gitRepositoryUrl %>` | Full repository URL | `https://github.com/...` |
|
|
156
|
+
| `<%= title %>` | Site title | `Docker Fundamentals` |
|
|
157
|
+
| `<%= tagline %>` | Site tagline | `Master containerization` |
|
|
158
|
+
|
|
159
|
+
**Example transformation:**
|
|
160
|
+
|
|
161
|
+
Before (template):
|
|
162
|
+
|
|
163
|
+
```typescript title="docusaurus.config.ts"
|
|
164
|
+
const config: Config = {
|
|
165
|
+
title: "<%= title %>",
|
|
166
|
+
tagline: "<%= tagline %>",
|
|
167
|
+
url: "https://<%= organizationName %>.github.io",
|
|
168
|
+
baseUrl: "/<%= projectName %>/",
|
|
169
|
+
};
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
After (processed):
|
|
173
|
+
|
|
174
|
+
```typescript title="docusaurus.config.ts"
|
|
175
|
+
const config: Config = {
|
|
176
|
+
title: "Docker Fundamentals",
|
|
177
|
+
tagline: "Master containerization",
|
|
178
|
+
url: "https://acme-corp.github.io",
|
|
179
|
+
baseUrl: "/docker-course/",
|
|
180
|
+
};
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Conditional Sections
|
|
184
|
+
|
|
185
|
+
Addon-specific code blocks are automatically included or excluded:
|
|
186
|
+
|
|
187
|
+
**Marker format:**
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
// CONDITIONAL: addon-name (START)
|
|
191
|
+
...code to include if addon is enabled...
|
|
192
|
+
// CONDITIONAL: addon-name (END)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Example - Slidev addon:**
|
|
196
|
+
|
|
197
|
+
Template file:
|
|
198
|
+
|
|
199
|
+
```typescript title="docusaurus.config.ts"
|
|
200
|
+
plugins: [
|
|
201
|
+
"@sp-days-framework/docusaurus-plugin-interactive-tasks",
|
|
202
|
+
// CONDITIONAL: addon-slidev (START)
|
|
203
|
+
"@sp-days-framework/docusaurus-plugin-slidev",
|
|
204
|
+
// CONDITIONAL: addon-slidev (END)
|
|
205
|
+
]
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
With `--addon-slidev`:
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
plugins: [
|
|
212
|
+
"@sp-days-framework/docusaurus-plugin-interactive-tasks",
|
|
213
|
+
"@sp-days-framework/docusaurus-plugin-slidev",
|
|
214
|
+
]
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Without `--addon-slidev`:
|
|
218
|
+
|
|
219
|
+
```typescript
|
|
220
|
+
plugins: [
|
|
221
|
+
"@sp-days-framework/docusaurus-plugin-interactive-tasks",
|
|
222
|
+
]
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Package Documentation Feature
|
|
226
|
+
|
|
227
|
+
### Overview
|
|
228
|
+
|
|
229
|
+
Starting from version 1.1.0, all `@sp-days-framework` packages include their documentation as pre-made Docusaurus-formatted MDX files. The `--include-package-docs` flag enables this feature, making plugin documentation accessible directly within your course website.
|
|
230
|
+
|
|
231
|
+
### How It Works
|
|
232
|
+
|
|
233
|
+
Each `@sp-days-framework` package includes a `publish-package-docs.js` file that exports documentation configuration:
|
|
234
|
+
|
|
235
|
+
```javascript title="publish-package-docs.js"
|
|
236
|
+
module.exports = {
|
|
237
|
+
id: "interactive-tasks-docs",
|
|
238
|
+
path: require("path").join(__dirname, "docs"),
|
|
239
|
+
routeBasePath: "package-docs/interactive-tasks",
|
|
240
|
+
};
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
This configuration is consumed by Docusaurus as a separate documentation instance:
|
|
244
|
+
|
|
245
|
+
```typescript title="docusaurus.config.ts"
|
|
246
|
+
plugins: [
|
|
247
|
+
// Interactive Tasks Plugin Documentation
|
|
248
|
+
[
|
|
249
|
+
"@docusaurus/plugin-content-docs",
|
|
250
|
+
require("@sp-days-framework/docusaurus-plugin-interactive-tasks/publish-package-docs"),
|
|
251
|
+
],
|
|
252
|
+
// Additional package docs...
|
|
253
|
+
]
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
The navbar includes a dropdown for easy access:
|
|
257
|
+
|
|
258
|
+
```typescript title="docusaurus.config.ts"
|
|
259
|
+
navbar: {
|
|
260
|
+
items: [
|
|
261
|
+
{
|
|
262
|
+
type: "dropdown",
|
|
263
|
+
label: "Plugin Docs",
|
|
264
|
+
position: "left",
|
|
265
|
+
items: [
|
|
266
|
+
{ to: "/package-docs/create-sp-days", label: "Create SP Days" },
|
|
267
|
+
{ to: "/package-docs/frontpage-collection", label: "Frontpage Collection" },
|
|
268
|
+
{ to: "/package-docs/interactive-tasks", label: "Interactive Tasks" },
|
|
269
|
+
{ to: "/package-docs/slidev-integration", label: "Slidev Integration" },
|
|
270
|
+
{ to: "/package-docs/sykehuspartner-theme", label: "Sykehuspartner Theme" },
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
}
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Automatic Slidev Installation
|
|
278
|
+
|
|
279
|
+
When `--include-package-docs` is enabled, the Slidev addon is automatically installed, even if you didn't explicitly request it with `--addon-slidev`. This is because the package documentation includes documentation for the Slidev theme (`@sp-days-framework/slidev-theme-sykehuspartner`).
|
|
280
|
+
|
|
281
|
+
**What gets installed:**
|
|
282
|
+
|
|
283
|
+
- `/slidev` directory with example presentations
|
|
284
|
+
- `@sp-days-framework/docusaurus-plugin-slidev` package
|
|
285
|
+
- `@sp-days-framework/slidev-theme-sykehuspartner` package
|
|
286
|
+
- `npm run slidev` script
|
|
287
|
+
|
|
288
|
+
### Use Cases
|
|
289
|
+
|
|
290
|
+
**Recommended for:**
|
|
291
|
+
|
|
292
|
+
- Package development and testing
|
|
293
|
+
- Framework demonstration sites
|
|
294
|
+
- Local documentation access during development
|
|
295
|
+
- Exploring plugin capabilities
|
|
296
|
+
|
|
297
|
+
**Not recommended for:**
|
|
298
|
+
|
|
299
|
+
- Production course websites
|
|
300
|
+
- Deployed training sites
|
|
301
|
+
- Minimal dependency requirements
|
|
302
|
+
|
|
303
|
+
The feature adds approximately 5 additional packages to your `node_modules` and increases build time slightly.
|
|
304
|
+
|
|
305
|
+
### Removing Package Documentation
|
|
306
|
+
|
|
307
|
+
If you initially enabled package documentation but want to remove it:
|
|
308
|
+
|
|
309
|
+
1. **Remove package documentation plugins** from `docusaurus.config.ts`:
|
|
310
|
+
|
|
311
|
+
```typescript
|
|
312
|
+
// Remove these plugin entries:
|
|
313
|
+
[
|
|
314
|
+
"@docusaurus/plugin-content-docs",
|
|
315
|
+
{
|
|
316
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
317
|
+
...require("@sp-days-framework/docusaurus-plugin-interactive-tasks/publish-package-docs"),
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
// Slidev Plugin Documentation
|
|
321
|
+
[
|
|
322
|
+
"@docusaurus/plugin-content-docs",
|
|
323
|
+
{
|
|
324
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
325
|
+
...require("@sp-days-framework/docusaurus-plugin-slidev/publish-package-docs"),
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
// Frontpage Collection Documentation
|
|
329
|
+
[
|
|
330
|
+
"@docusaurus/plugin-content-docs",
|
|
331
|
+
{
|
|
332
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
333
|
+
...require("@sp-days-framework/docusaurus-frontpage-collection/publish-package-docs"),
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
// Sykehuspartner Slidev Theme Documentation
|
|
337
|
+
[
|
|
338
|
+
"@docusaurus/plugin-content-docs",
|
|
339
|
+
{
|
|
340
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
341
|
+
...require("@sp-days-framework/slidev-theme-sykehuspartner/publish-package-docs"),
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
// Create SP Days Documentation
|
|
345
|
+
[
|
|
346
|
+
"@docusaurus/plugin-content-docs",
|
|
347
|
+
{
|
|
348
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
349
|
+
...require("@sp-days-framework/create-sp-days/publish-package-docs"),
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
2. **Remove the Plugin Docs dropdown** from the navbar in `docusaurus.config.ts`:
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
// Remove this navbar item:
|
|
358
|
+
{
|
|
359
|
+
type: "dropdown",
|
|
360
|
+
label: "Plugin Docs",
|
|
361
|
+
position: "left",
|
|
362
|
+
items: [
|
|
363
|
+
{
|
|
364
|
+
to: "/package-docs/create-sp-days",
|
|
365
|
+
label: "Create SP Days",
|
|
366
|
+
className: "title-logo-navbar-sp-days-plugin",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
to: "/package-docs/frontpage-collection",
|
|
370
|
+
label: "Frontpage Collection",
|
|
371
|
+
className: "title-logo-navbar-docusaurus",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
to: "/package-docs/interactive-tasks",
|
|
375
|
+
label: "Interactive Tasks",
|
|
376
|
+
className: "title-logo-navbar-docusaurus",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
to: "/package-docs/slidev-integration",
|
|
380
|
+
label: "Slidev Integration",
|
|
381
|
+
className: "title-logo-navbar-docusaurus",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
to: "/package-docs/terminal-codeblock",
|
|
385
|
+
label: "Terminal Codeblock",
|
|
386
|
+
className: "title-logo-navbar-docusaurus",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
to: "/package-docs/sykehuspartner-theme",
|
|
390
|
+
label: "Sykehuspartner Theme",
|
|
391
|
+
className: "title-logo-navbar-slidev",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
3. **Remove the package dependency** from `package.json`:
|
|
398
|
+
|
|
399
|
+
```json
|
|
400
|
+
// Remove this line from dependencies:
|
|
401
|
+
"@sp-days-framework/create-sp-days": "^1.0.4",
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
4. **Reinstall dependencies**:
|
|
405
|
+
|
|
406
|
+
```bash
|
|
407
|
+
npm install
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
:::tip Keep Slidev?
|
|
411
|
+
If you want to keep the Slidev functionality but remove package docs, you don't need to remove the Slidev-related packages. Just remove the package documentation plugins and navbar items.
|
|
412
|
+
:::
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
sidebar_label: "Change Logs"
|
|
4
|
+
toc_max_heading_level: 2
|
|
5
|
+
sidebar_custom_props:
|
|
6
|
+
section: "Releases"
|
|
7
|
+
section_position: 3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Changelog
|
|
11
|
+
|
|
12
|
+
## `@sp-days-framework/create-sp-days`
|
|
13
|
+
|
|
14
|
+
[](https://www.npmjs.com/package/@sp-days-framework/create-sp-days)
|
|
15
|
+
|
|
16
|
+
:::note
|
|
17
|
+
All packages within `@sp-days-framework` use the same version number. In some cases, a package might just be "bumped" to match the rest without any functional changes.
|
|
18
|
+
:::
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Version 1.1.0-beta2 
|
|
23
|
+
|
|
24
|
+
Terminal plugin integration and documentation refinements
|
|
25
|
+
|
|
26
|
+
<details>
|
|
27
|
+
<summary><strong>Beta Details</strong> (2025 December 09)</summary>
|
|
28
|
+
|
|
29
|
+
### New Features
|
|
30
|
+
|
|
31
|
+
- **Terminal Codeblock Plugin**: Integrated the new `@sp-days-framework/docusaurus-plugin-terminal-codeblock` package
|
|
32
|
+
- Automatically included in new project scaffolds
|
|
33
|
+
- Pre-configured for optimal terminal documentation display
|
|
34
|
+
- Enables realistic command-line examples in course materials
|
|
35
|
+
|
|
36
|
+
### Improvements
|
|
37
|
+
|
|
38
|
+
- **Enhanced Documentation Structure**: Updated sidebar positions and added known issues documentation for better navigation
|
|
39
|
+
- **Visual Consistency**: Improved sidebar and navbar logo handling across all generated documentation
|
|
40
|
+
|
|
41
|
+
</details>
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Version 1.1.0-beta1 
|
|
46
|
+
|
|
47
|
+
Get started faster with improved resource templates
|
|
48
|
+
|
|
49
|
+
<details>
|
|
50
|
+
<summary><strong>Beta Details</strong> (2025 December 08)</summary>
|
|
51
|
+
|
|
52
|
+
### Improvements
|
|
53
|
+
|
|
54
|
+
- **Redesigned Resource Templates**: The `addon-resources` option now includes practical, ready-to-use templates
|
|
55
|
+
- Pre-built pages for API references, FAQs, glossaries, troubleshooting guides, and more
|
|
56
|
+
- Best practice examples to help you structure your course materials effectively
|
|
57
|
+
- No more outdated package documentation - just helpful starting points for your content
|
|
58
|
+
- Faster course setup with less manual work
|
|
59
|
+
|
|
60
|
+
- **Updated Dependencies**: Templates now include the latest component versions and examples
|
|
61
|
+
|
|
62
|
+
### Package Documentation
|
|
63
|
+
|
|
64
|
+
- Documentation is now bundled with the npm package, making it accessible during development and for offline reference
|
|
65
|
+
|
|
66
|
+
</details>
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Version 1.0.4 
|
|
71
|
+
|
|
72
|
+
Update documentation and dependencies
|
|
73
|
+
|
|
74
|
+
<details>
|
|
75
|
+
<summary><strong>Details</strong> (2025 December 1)</summary>
|
|
76
|
+
|
|
77
|
+
### Improvements
|
|
78
|
+
|
|
79
|
+
- Updated `docusaurus-frontpage-collection` documentation
|
|
80
|
+
- Updated `docusaurus-interactive-task` documentation
|
|
81
|
+
- Updated Docusaurus config file in template to match new `docusaurus-interactive-task` feature
|
|
82
|
+
- Version bump packages used in template
|
|
83
|
+
|
|
84
|
+
</details>
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Version 1.0.3 
|
|
89
|
+
|
|
90
|
+
Update dependencies
|
|
91
|
+
|
|
92
|
+
<details>
|
|
93
|
+
<summary><strong>Details</strong> (2025 November 27)</summary>
|
|
94
|
+
|
|
95
|
+
### Improvements
|
|
96
|
+
|
|
97
|
+
- Version bump packages used in template
|
|
98
|
+
|
|
99
|
+
</details>
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Version 1.0.2 
|
|
104
|
+
|
|
105
|
+
Update dependencies
|
|
106
|
+
|
|
107
|
+
<details>
|
|
108
|
+
<summary><strong>Details</strong> (2025 November 25)</summary>
|
|
109
|
+
|
|
110
|
+
### Improvements
|
|
111
|
+
|
|
112
|
+
- Version bump packages used in template
|
|
113
|
+
|
|
114
|
+
</details>
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Version 1.0.0 
|
|
119
|
+
|
|
120
|
+
Initial release of the Create SP Days package
|
|
121
|
+
|
|
122
|
+
<details>
|
|
123
|
+
<summary><strong>Details</strong> (2025 November 24)</summary>
|
|
124
|
+
|
|
125
|
+
### New Features
|
|
126
|
+
|
|
127
|
+
- Initial release with scaffolding tool for creating SP Days course websites
|
|
128
|
+
|
|
129
|
+
</details>
|