@sp-days-framework/create-sp-days 1.0.4 → 1.1.0-beta1
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 +387 -0
- package/docs/changelog.mdx +106 -0
- package/docs/index.mdx +205 -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 +62 -0
- package/templates/page-course/docusaurus.config.ts +59 -11
- package/templates/page-course/package.json +12 -2
- package/templates/page-course/sidebarSections.js +118 -0
- 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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "Quick Start"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
Quick Start pages help users achieve their first success as quickly as possible. Focus on
|
|
11
|
+
the minimal steps needed to get started, avoiding deep explanations. Use numbered steps and
|
|
12
|
+
verification checkpoints. Link to comprehensive guides for users who want to learn more.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
import Tabs from '@theme/Tabs';
|
|
17
|
+
import TabItem from '@theme/TabItem';
|
|
18
|
+
|
|
19
|
+
# Quick Start Template
|
|
20
|
+
|
|
21
|
+
Get up and running in just a few minutes with this step-by-step guide.
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
Before you begin, ensure you have:
|
|
26
|
+
|
|
27
|
+
- Basic familiarity with the command line
|
|
28
|
+
- An active internet connection
|
|
29
|
+
- Administrator/sudo access (for installation)
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
Choose your platform and follow the installation command:
|
|
34
|
+
|
|
35
|
+
<Tabs groupId="operating-systems">
|
|
36
|
+
<TabItem value="linux" label="Linux">
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
curl -fsSL https://example.com/install.sh | bash
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="macos" label="macOS">
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
brew install example-tool
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
<TabItem value="windows" label="Windows">
|
|
51
|
+
|
|
52
|
+
```powershell
|
|
53
|
+
winget install Example.Tool
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
</Tabs>
|
|
58
|
+
|
|
59
|
+
**Verify installation:**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
example-tool --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Expected output: `example-tool version 1.2.3`
|
|
66
|
+
|
|
67
|
+
## Create Your First Project
|
|
68
|
+
|
|
69
|
+
### Step 1: Initialize
|
|
70
|
+
|
|
71
|
+
Create a new directory and initialize the project:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
mkdir my-first-project
|
|
75
|
+
cd my-first-project
|
|
76
|
+
example-tool init
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
You'll see a success message:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
✓ Project initialized successfully
|
|
83
|
+
✓ Configuration file created: config.yml
|
|
84
|
+
✓ Ready to get started!
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 2: Configure
|
|
88
|
+
|
|
89
|
+
Set up your basic configuration:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
example-tool config set project.name "My First Project"
|
|
93
|
+
example-tool config set user.name "Your Name"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Verify configuration:**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
example-tool config show
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Step 3: Create a Resource
|
|
103
|
+
|
|
104
|
+
Create your first resource:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
example-tool create item hello-world --description "My first resource"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Output:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
✓ Created resource: hello-world (id: abc123)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Step 4: View Your Resource
|
|
117
|
+
|
|
118
|
+
List all resources to see what you've created:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
example-tool list
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Working with Configuration Files
|
|
125
|
+
|
|
126
|
+
Instead of using CLI commands, you can define resources in a configuration file:
|
|
127
|
+
|
|
128
|
+
```yaml title="resources.yml"
|
|
129
|
+
resources:
|
|
130
|
+
- name: resource-one
|
|
131
|
+
type: item
|
|
132
|
+
description: First resource
|
|
133
|
+
tags:
|
|
134
|
+
- example
|
|
135
|
+
- demo
|
|
136
|
+
|
|
137
|
+
- name: resource-two
|
|
138
|
+
type: item
|
|
139
|
+
description: Second resource
|
|
140
|
+
tags:
|
|
141
|
+
- example
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Apply the configuration:**
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
example-tool apply --file resources.yml
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Next Steps
|
|
151
|
+
|
|
152
|
+
Congratulations! You've completed the quick start guide. Here's what to explore next:
|
|
153
|
+
|
|
154
|
+
1. **Learn More Commands:** Check out the [CLI Reference](#) for all available commands
|
|
155
|
+
2. **Advanced Configuration:** Read the [Configuration Guide](#) for customization options
|
|
156
|
+
3. **Troubleshooting:** Visit the [Troubleshooting](#) page if you encounter issues
|
|
157
|
+
4. **API Usage:** Explore the [API Reference](#) for programmatic access
|
|
158
|
+
|
|
159
|
+
## Quick Reference
|
|
160
|
+
|
|
161
|
+
### Essential Commands
|
|
162
|
+
|
|
163
|
+
| Command | Description |
|
|
164
|
+
|--------------------------|--------------------------------|
|
|
165
|
+
| `example-tool init` | Initialize a new project |
|
|
166
|
+
| `example-tool create` | Create a new resource |
|
|
167
|
+
| `example-tool list` | List all resources |
|
|
168
|
+
| `example-tool info <id>` | Show resource details |
|
|
169
|
+
| `example-tool update <id>` | Update a resource |
|
|
170
|
+
| `example-tool delete <id>` | Delete a resource |
|
|
171
|
+
| `example-tool help` | Show help information |
|
|
172
|
+
|
|
173
|
+
### Useful Options
|
|
174
|
+
|
|
175
|
+
| Option | Description |
|
|
176
|
+
|-------------------|----------------------------------|
|
|
177
|
+
| `--help, -h` | Display help for any command |
|
|
178
|
+
| `--verbose, -v` | Show detailed output |
|
|
179
|
+
| `--output, -o` | Format output (json, yaml, table)|
|
|
180
|
+
| `--force, -f` | Skip confirmation prompts |
|
|
181
|
+
|
|
182
|
+
## Getting Help
|
|
183
|
+
|
|
184
|
+
If you need assistance:
|
|
185
|
+
|
|
186
|
+
- Run `example-tool help` for command documentation
|
|
187
|
+
- Check the [FAQ](#) for common questions
|
|
188
|
+
- Visit our [community forum](https://forum.example.com)
|
|
189
|
+
- Report issues on [GitHub](https://github.com/example/tool/issues)
|
|
190
|
+
|
|
191
|
+
:::tip Pro Tip
|
|
192
|
+
Use `example-tool --help` or `example-tool <command> --help` to see detailed information about any command and its options.
|
|
193
|
+
:::
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "Troubleshooting"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
Troubleshooting pages help users diagnose and resolve common issues. Organize by error type
|
|
11
|
+
or symptom. Provide clear problem descriptions, root causes, and step-by-step solutions.
|
|
12
|
+
Include command examples and expected outputs for verification.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
# Troubleshooting Template
|
|
17
|
+
|
|
18
|
+
Solutions to common issues and error messages you may encounter.
|
|
19
|
+
|
|
20
|
+
## Installation Issues
|
|
21
|
+
|
|
22
|
+
### Command Not Found After Installation
|
|
23
|
+
|
|
24
|
+
**Problem:** Running `example-tool` returns "command not found" error.
|
|
25
|
+
|
|
26
|
+
**Cause:** The installation directory is not in your system's PATH.
|
|
27
|
+
|
|
28
|
+
**Solution:**
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Check if the tool is installed
|
|
32
|
+
which example-tool
|
|
33
|
+
|
|
34
|
+
# Add to PATH (temporary)
|
|
35
|
+
export PATH="$PATH:/usr/local/bin"
|
|
36
|
+
|
|
37
|
+
# Add to PATH (permanent - add to ~/.bashrc or ~/.zshrc)
|
|
38
|
+
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
|
|
39
|
+
source ~/.bashrc
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Verify:**
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
example-tool --version
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Permission Denied
|
|
49
|
+
|
|
50
|
+
**Problem:** Installation fails with "permission denied" error.
|
|
51
|
+
|
|
52
|
+
**Cause:** Insufficient permissions to write to installation directory.
|
|
53
|
+
|
|
54
|
+
**Solution:**
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# On Linux/macOS, use sudo
|
|
58
|
+
sudo example-tool install
|
|
59
|
+
|
|
60
|
+
# Or install to user directory
|
|
61
|
+
example-tool install --user
|
|
62
|
+
|
|
63
|
+
# Make binary executable
|
|
64
|
+
chmod +x /usr/local/bin/example-tool
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### SSL Certificate Verification Failed
|
|
68
|
+
|
|
69
|
+
**Problem:** Download fails with SSL certificate errors.
|
|
70
|
+
|
|
71
|
+
**Cause:** Corporate proxy, outdated certificates, or network security settings.
|
|
72
|
+
|
|
73
|
+
**Solution:**
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Update CA certificates (Ubuntu/Debian)
|
|
77
|
+
sudo apt-get update && sudo apt-get install ca-certificates
|
|
78
|
+
|
|
79
|
+
# macOS
|
|
80
|
+
brew install ca-certificates
|
|
81
|
+
|
|
82
|
+
# As last resort (not recommended for production)
|
|
83
|
+
curl -k https://example.com/install.sh | bash
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Configuration Issues
|
|
87
|
+
|
|
88
|
+
### Configuration File Not Found
|
|
89
|
+
|
|
90
|
+
**Problem:** Tool reports "configuration file not found" error.
|
|
91
|
+
|
|
92
|
+
**Cause:** No config file exists in the expected locations.
|
|
93
|
+
|
|
94
|
+
**Solution:**
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Create default configuration
|
|
98
|
+
example-tool init
|
|
99
|
+
|
|
100
|
+
# Or create manually
|
|
101
|
+
mkdir -p ~/.config/example-tool
|
|
102
|
+
cat > ~/.config/example-tool/config.yml << EOF
|
|
103
|
+
app:
|
|
104
|
+
name: my-app
|
|
105
|
+
environment: development
|
|
106
|
+
EOF
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Verify:**
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
example-tool config show
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Invalid Configuration Syntax
|
|
116
|
+
|
|
117
|
+
**Problem:** Error message: "Invalid YAML syntax" or "Failed to parse configuration".
|
|
118
|
+
|
|
119
|
+
**Cause:** Syntax errors in the configuration file.
|
|
120
|
+
|
|
121
|
+
**Solution:**
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Validate configuration
|
|
125
|
+
example-tool config validate
|
|
126
|
+
|
|
127
|
+
# Check for common issues:
|
|
128
|
+
# - Incorrect indentation (use spaces, not tabs)
|
|
129
|
+
# - Missing colons after keys
|
|
130
|
+
# - Unquoted special characters
|
|
131
|
+
|
|
132
|
+
# View line-by-line
|
|
133
|
+
cat -n ~/.config/example-tool/config.yml
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Environment Variables Not Working
|
|
137
|
+
|
|
138
|
+
**Problem:** Environment variables are not overriding configuration values.
|
|
139
|
+
|
|
140
|
+
**Cause:** Incorrect variable names or not exported.
|
|
141
|
+
|
|
142
|
+
**Solution:**
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Check current environment variables
|
|
146
|
+
env | grep EXAMPLE
|
|
147
|
+
|
|
148
|
+
# Export variables correctly
|
|
149
|
+
export EXAMPLE_API_KEY="your-key"
|
|
150
|
+
export EXAMPLE_ENDPOINT="https://api.example.com"
|
|
151
|
+
|
|
152
|
+
# Verify they're loaded
|
|
153
|
+
example-tool config show --effective
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Common Error Messages
|
|
157
|
+
|
|
158
|
+
### Error: "Port already in use"
|
|
159
|
+
|
|
160
|
+
**Solution:**
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Find process using the port
|
|
164
|
+
lsof -ti:8080
|
|
165
|
+
|
|
166
|
+
# Kill the process
|
|
167
|
+
kill -9 $(lsof -ti:8080)
|
|
168
|
+
|
|
169
|
+
# Or use a different port
|
|
170
|
+
example-tool start --port 9000
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Error: "Disk quota exceeded"
|
|
174
|
+
|
|
175
|
+
**Solution:**
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Check disk usage
|
|
179
|
+
df -h
|
|
180
|
+
|
|
181
|
+
# Clean up cache
|
|
182
|
+
example-tool cache clear
|
|
183
|
+
|
|
184
|
+
# Remove old logs
|
|
185
|
+
rm -rf ~/.config/example-tool/logs/*.log
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Error: "Unable to lock file"
|
|
189
|
+
|
|
190
|
+
**Solution:**
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Find and remove stale lock files
|
|
194
|
+
find ~/.config/example-tool -name "*.lock" -delete
|
|
195
|
+
|
|
196
|
+
# Or wait for existing operation to complete
|
|
197
|
+
ps aux | grep example-tool
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Debugging
|
|
201
|
+
|
|
202
|
+
### Enable Verbose Logging
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Enable debug output
|
|
206
|
+
example-tool --verbose command
|
|
207
|
+
|
|
208
|
+
# Or set log level
|
|
209
|
+
export LOG_LEVEL=debug
|
|
210
|
+
example-tool command
|
|
211
|
+
|
|
212
|
+
# Save logs to file
|
|
213
|
+
example-tool --verbose command 2>&1 | tee debug.log
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Run Diagnostics
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Run health check
|
|
220
|
+
example-tool doctor
|
|
221
|
+
|
|
222
|
+
# Verify system requirements
|
|
223
|
+
example-tool check-system
|
|
224
|
+
|
|
225
|
+
# Test connectivity
|
|
226
|
+
example-tool test connection
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Inspect Network Traffic
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# Enable HTTP debugging
|
|
233
|
+
export DEBUG=http
|
|
234
|
+
example-tool command
|
|
235
|
+
|
|
236
|
+
# Use curl to test API directly
|
|
237
|
+
curl -v -H "Authorization: Bearer YOUR_KEY" \
|
|
238
|
+
https://api.example.com/v1/resource
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Getting Additional Help
|
|
242
|
+
|
|
243
|
+
If these solutions don't resolve your issue:
|
|
244
|
+
|
|
245
|
+
1. **Check logs:** `~/.config/example-tool/logs/`
|
|
246
|
+
2. **Search issues:** [GitHub Issues](https://github.com/example/tool/issues)
|
|
247
|
+
3. **Ask the community:** [Forum](https://forum.example.com)
|
|
248
|
+
4. **Contact support:** support@example.com
|
|
249
|
+
|
|
250
|
+
When reporting issues, include:
|
|
251
|
+
- Tool version (`example-tool --version`)
|
|
252
|
+
- Operating system and version
|
|
253
|
+
- Complete error message
|
|
254
|
+
- Steps to reproduce
|
|
255
|
+
- Relevant configuration (remove sensitive data)
|
|
256
|
+
|
|
257
|
+
:::tip Quick Diagnostics
|
|
258
|
+
Run `example-tool doctor` to automatically check for common configuration and environment issues.
|
|
259
|
+
:::
|
|
260
|
+
|
|
261
|
+
:::warning Before Reinstalling
|
|
262
|
+
Try `example-tool repair` to fix common issues without losing your configuration.
|
|
263
|
+
:::
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "Useful Links"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
Useful Links pages curate external resources, official documentation, community forums, and
|
|
11
|
+
learning materials. Organize by category and provide brief descriptions of what each resource
|
|
12
|
+
offers. Keep links current and verify they're active.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
# Useful Links Template Template
|
|
17
|
+
|
|
18
|
+
Curated collection of external resources, documentation, and community links to help you learn and grow.
|
|
19
|
+
|
|
20
|
+
## Official Resources
|
|
21
|
+
|
|
22
|
+
### Documentation
|
|
23
|
+
|
|
24
|
+
- **[Official Documentation](https://example.com/docs)** – Complete reference and guides
|
|
25
|
+
- **[API Documentation](https://api.example.com/docs)** – REST API reference with interactive examples
|
|
26
|
+
- **[Release Notes](https://example.com/releases)** – Latest updates and changelog
|
|
27
|
+
- **[Roadmap](https://example.com/roadmap)** – Planned features and future development
|
|
28
|
+
|
|
29
|
+
### Downloads
|
|
30
|
+
|
|
31
|
+
- **[Installation Packages](https://example.com/downloads)** – Official installers for all platforms
|
|
32
|
+
- **[Docker Images](https://hub.docker.com/r/example/tool)** – Official container images
|
|
33
|
+
- **[Source Code](https://github.com/example/tool)** – GitHub repository
|
|
34
|
+
|
|
35
|
+
### Support
|
|
36
|
+
|
|
37
|
+
- **[Issue Tracker](https://github.com/example/tool/issues)** – Report bugs and request features
|
|
38
|
+
- **[Security Policy](https://example.com/security)** – How to report security vulnerabilities
|
|
39
|
+
- **[Support Portal](https://support.example.com)** – Enterprise support and SLA information
|
|
40
|
+
|
|
41
|
+
## Learning Resources
|
|
42
|
+
|
|
43
|
+
### Tutorials & Guides
|
|
44
|
+
|
|
45
|
+
- **[Getting Started Tutorial](https://example.com/tutorial)** – Official beginner's guide
|
|
46
|
+
- **[Video Course](https://example.com/learn)** – Comprehensive video training
|
|
47
|
+
- **[Interactive Playground](https://playground.example.com)** – Try it online without installing
|
|
48
|
+
- **[Example Projects](https://github.com/example/examples)** – Sample implementations
|
|
49
|
+
|
|
50
|
+
### Best Practices
|
|
51
|
+
|
|
52
|
+
- **[Architecture Guide](https://example.com/architecture)** – Design patterns and best practices
|
|
53
|
+
- **[Security Best Practices](https://example.com/security-guide)** – How to use securely
|
|
54
|
+
- **[Performance Optimization](https://example.com/performance)** – Tips for optimal performance
|
|
55
|
+
- **[Production Deployment](https://example.com/production)** – Production-ready configurations
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
:::note External Links
|
|
60
|
+
These links point to external websites not controlled by this project. We are not responsible for their content or availability.
|
|
61
|
+
:::
|
|
@@ -150,3 +150,65 @@ More content
|
|
|
150
150
|
See the [Slidev documentation](https://sli.dev/) for the full syntax.
|
|
151
151
|
|
|
152
152
|
<% } %>
|
|
153
|
+
|
|
154
|
+
<% if (includePackageDocs) { %>
|
|
155
|
+
|
|
156
|
+
## Removing Package Documentation
|
|
157
|
+
This project includes package documentation for easier access to plugin documentation during development. If you want to remove this feature to reduce dependencies in production:
|
|
158
|
+
|
|
159
|
+
1. **Remove package documentation plugins** from `docusaurus.config.ts`:
|
|
160
|
+
```typescript
|
|
161
|
+
// Remove these plugin entries:
|
|
162
|
+
[
|
|
163
|
+
"@docusaurus/plugin-content-docs",
|
|
164
|
+
require("@sp-days-framework/docusaurus-plugin-interactive-tasks/publish-package-docs"),
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
"@docusaurus/plugin-content-docs",
|
|
168
|
+
require("@sp-days-framework/docusaurus-plugin-slidev/publish-package-docs"),
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
"@docusaurus/plugin-content-docs",
|
|
172
|
+
require("@sp-days-framework/docusaurus-frontpage-collection/publish-package-docs"),
|
|
173
|
+
],
|
|
174
|
+
[
|
|
175
|
+
"@docusaurus/plugin-content-docs",
|
|
176
|
+
require("@sp-days-framework/slidev-theme-sykehuspartner/publish-package-docs"),
|
|
177
|
+
],
|
|
178
|
+
[
|
|
179
|
+
"@docusaurus/plugin-content-docs",
|
|
180
|
+
require("@sp-days-framework/create-sp-days/publish-package-docs"),
|
|
181
|
+
],
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
2. **Remove the Plugin Docs dropdown** from the navbar in `docusaurus.config.ts`:
|
|
185
|
+
```typescript
|
|
186
|
+
// Remove this navbar item:
|
|
187
|
+
{
|
|
188
|
+
type: "dropdown",
|
|
189
|
+
label: "Plugin Docs",
|
|
190
|
+
position: "left",
|
|
191
|
+
items: [
|
|
192
|
+
{ to: "/package-docs/create-sp-days", label: "Create SP Days" },
|
|
193
|
+
{ to: "/package-docs/frontpage-collection", label: "Frontpage Collection" },
|
|
194
|
+
{ to: "/package-docs/interactive-tasks", label: "Interactive Tasks" },
|
|
195
|
+
{ to: "/package-docs/slidev-integration", label: "Slidev Integration" },
|
|
196
|
+
{ to: "/package-docs/sykehuspartner-theme", label: "Sykehuspartner Theme" },
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
3. **Remove the package dependency** from `package.json`:
|
|
202
|
+
```json
|
|
203
|
+
// Remove this line from dependencies:
|
|
204
|
+
"@sp-days-framework/create-sp-days": "^1.0.4",
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
4. **Reinstall dependencies**:
|
|
208
|
+
```bash
|
|
209
|
+
npm install
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
After these steps, the package documentation will no longer be included in your build, reducing the final bundle size.
|
|
213
|
+
|
|
214
|
+
<% } %>
|
|
@@ -41,6 +41,7 @@ const config: Config = {
|
|
|
41
41
|
id: "course",
|
|
42
42
|
path: "course",
|
|
43
43
|
routeBasePath: "course",
|
|
44
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
44
45
|
beforeDefaultRemarkPlugins: [
|
|
45
46
|
require("@sp-days-framework/docusaurus-plugin-interactive-tasks")
|
|
46
47
|
.remarkTaskDirective,
|
|
@@ -60,6 +61,49 @@ const config: Config = {
|
|
|
60
61
|
// Adds the Interactive Tasks plugin to enable task directives
|
|
61
62
|
"@sp-days-framework/docusaurus-plugin-interactive-tasks",
|
|
62
63
|
|
|
64
|
+
// CONDITIONAL: package-docs (START)
|
|
65
|
+
// Interactive Tasks Plugin Documentation
|
|
66
|
+
[
|
|
67
|
+
"@docusaurus/plugin-content-docs",
|
|
68
|
+
{
|
|
69
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
70
|
+
...require("@sp-days-framework/docusaurus-plugin-interactive-tasks/publish-package-docs"),
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
// Slidev Plugin Documentation
|
|
74
|
+
[
|
|
75
|
+
"@docusaurus/plugin-content-docs",
|
|
76
|
+
{
|
|
77
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
78
|
+
...require("@sp-days-framework/docusaurus-plugin-slidev/publish-package-docs"),
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
// Frontpage Collection Documentation
|
|
82
|
+
[
|
|
83
|
+
"@docusaurus/plugin-content-docs",
|
|
84
|
+
{
|
|
85
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
86
|
+
...require("@sp-days-framework/docusaurus-frontpage-collection/publish-package-docs"),
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
// Sykehuspartner Slidev Theme Documentation
|
|
90
|
+
[
|
|
91
|
+
"@docusaurus/plugin-content-docs",
|
|
92
|
+
{
|
|
93
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
94
|
+
...require("@sp-days-framework/slidev-theme-sykehuspartner/publish-package-docs"),
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
// Create SP Days Documentation
|
|
98
|
+
[
|
|
99
|
+
"@docusaurus/plugin-content-docs",
|
|
100
|
+
{
|
|
101
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
102
|
+
...require("@sp-days-framework/create-sp-days/publish-package-docs"),
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
// CONDITIONAL: package-docs (END)
|
|
106
|
+
|
|
63
107
|
// CONDITIONAL: addon-slidev (START)
|
|
64
108
|
// Adds the Slidev plugin to enable slide presentations and static directories for Slidev assets
|
|
65
109
|
"@sp-days-framework/docusaurus-plugin-slidev",
|
|
@@ -73,17 +117,7 @@ const config: Config = {
|
|
|
73
117
|
id: "resources",
|
|
74
118
|
path: "resources",
|
|
75
119
|
routeBasePath: "resources",
|
|
76
|
-
|
|
77
|
-
[
|
|
78
|
-
require('@sp-days-framework/docusaurus-plugin-interactive-tasks')
|
|
79
|
-
.remarkTaskDirective,
|
|
80
|
-
{
|
|
81
|
-
// TOC configuration for resources docs instance
|
|
82
|
-
tocEnabled: true,
|
|
83
|
-
tocHeadingLevel: 3, // Use h2 for TOC entries (can be 2-6)
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
],
|
|
120
|
+
sidebarItemsGenerator: require('./sidebarSections'),
|
|
87
121
|
},
|
|
88
122
|
],
|
|
89
123
|
// CONDITIONAL: addon-resources (END)
|
|
@@ -120,6 +154,20 @@ const config: Config = {
|
|
|
120
154
|
// CONDITIONAL: addon-slidev (START)
|
|
121
155
|
{ to: "/slidev", label: "Slides" },
|
|
122
156
|
// CONDITIONAL: addon-slidev (END)
|
|
157
|
+
// CONDITIONAL: package-docs (START)
|
|
158
|
+
{
|
|
159
|
+
type: "dropdown",
|
|
160
|
+
label: "Plugin Docs",
|
|
161
|
+
position: "left",
|
|
162
|
+
items: [
|
|
163
|
+
{ to: "/package-docs/create-sp-days", label: "Create SP Days" },
|
|
164
|
+
{ to: "/package-docs/frontpage-collection", label: "Frontpage Collection" },
|
|
165
|
+
{ to: "/package-docs/interactive-tasks", label: "Interactive Tasks" },
|
|
166
|
+
{ to: "/package-docs/slidev-integration", label: "Slidev Integration" },
|
|
167
|
+
{ to: "/package-docs/sykehuspartner-theme", label: "Sykehuspartner Theme" },
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
// CONDITIONAL: package-docs (END)
|
|
123
171
|
{
|
|
124
172
|
href: gitRepositoryUrl,
|
|
125
173
|
position: "right",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"serve": "docusaurus serve",
|
|
13
13
|
"write-translations": "docusaurus write-translations",
|
|
14
14
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
15
|
+
// CONDITIONAL: addon-slidev (START)
|
|
16
|
+
"slidev": "slidev",
|
|
17
|
+
// CONDITIONAL: addon-slidev (END)
|
|
15
18
|
"typecheck": "tsc"
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
@@ -19,8 +22,15 @@
|
|
|
19
22
|
"@docusaurus/preset-classic": "^3.9.2",
|
|
20
23
|
"@docusaurus/theme-mermaid": "^3.9.2",
|
|
21
24
|
"@mdx-js/react": "^3.0.0",
|
|
22
|
-
"@sp-days-framework/docusaurus-frontpage-collection": "^1.0
|
|
23
|
-
"@sp-days-framework/docusaurus-plugin-interactive-tasks": "^1.0
|
|
25
|
+
"@sp-days-framework/docusaurus-frontpage-collection": "^1.1.0-beta1",
|
|
26
|
+
"@sp-days-framework/docusaurus-plugin-interactive-tasks": "^1.1.0-beta1",
|
|
27
|
+
// CONDITIONAL: addon-slidev (START)
|
|
28
|
+
"@sp-days-framework/docusaurus-plugin-slidev": "^1.1.0-beta1",
|
|
29
|
+
"@sp-days-framework/slidev-theme-sykehuspartner": "^1.1.0-beta1",
|
|
30
|
+
// CONDITIONAL: addon-slidev (END)
|
|
31
|
+
// CONDITIONAL: package-docs (START)
|
|
32
|
+
"@sp-days-framework/create-sp-days": "^1.1.0-beta1",
|
|
33
|
+
// CONDITIONAL: package-docs (END)
|
|
24
34
|
"clsx": "^2.0.0",
|
|
25
35
|
"docusaurus-plugin-sass": "^0.2.6",
|
|
26
36
|
"prism-react-renderer": "^2.3.0",
|