@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,317 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "Environment Setup"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
Environment Setup pages guide users through installation and preparation of their development
|
|
11
|
+
environment. Include prerequisites, step-by-step installation instructions for multiple platforms,
|
|
12
|
+
and verification steps to ensure everything is working correctly.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
import Tabs from '@theme/Tabs';
|
|
17
|
+
import TabItem from '@theme/TabItem';
|
|
18
|
+
|
|
19
|
+
# Environment Setup Template
|
|
20
|
+
|
|
21
|
+
Complete guide to installing and configuring your development environment.
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
Before you begin, ensure you have the following installed:
|
|
26
|
+
|
|
27
|
+
- **Operating System:** Linux, macOS, or Windows 10/11
|
|
28
|
+
- **Required Software:**
|
|
29
|
+
- Node.js 18.x or higher
|
|
30
|
+
- Git 2.x or higher
|
|
31
|
+
- A text editor or IDE (VS Code, IntelliJ, etc.)
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
<Tabs groupId="operating-systems">
|
|
36
|
+
<TabItem value="linux" label="Linux">
|
|
37
|
+
|
|
38
|
+
### Using Package Manager
|
|
39
|
+
|
|
40
|
+
```bash title="install.sh"
|
|
41
|
+
# Ubuntu/Debian
|
|
42
|
+
curl -fsSL https://example.com/install.sh | bash
|
|
43
|
+
sudo apt-get update
|
|
44
|
+
sudo apt-get install -y example-tool
|
|
45
|
+
|
|
46
|
+
# Fedora/RHEL
|
|
47
|
+
sudo dnf install -y example-tool
|
|
48
|
+
|
|
49
|
+
# Arch Linux
|
|
50
|
+
sudo pacman -S example-tool
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Manual Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Download and extract
|
|
57
|
+
wget https://example.com/releases/latest/example-tool-linux.tar.gz
|
|
58
|
+
tar -xzf example-tool-linux.tar.gz
|
|
59
|
+
sudo mv example-tool /usr/local/bin/
|
|
60
|
+
|
|
61
|
+
# Verify installation
|
|
62
|
+
example-tool --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
<TabItem value="macos" label="macOS">
|
|
67
|
+
|
|
68
|
+
### Using Homebrew
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Install via Homebrew (recommended)
|
|
72
|
+
brew tap example/tap
|
|
73
|
+
brew install example-tool
|
|
74
|
+
|
|
75
|
+
# Verify installation
|
|
76
|
+
example-tool --version
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Manual Installation
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Download and install
|
|
83
|
+
curl -L https://example.com/releases/latest/example-tool-macos.tar.gz -o example-tool.tar.gz
|
|
84
|
+
tar -xzf example-tool.tar.gz
|
|
85
|
+
sudo mv example-tool /usr/local/bin/
|
|
86
|
+
|
|
87
|
+
# Verify installation
|
|
88
|
+
example-tool --version
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
</TabItem>
|
|
92
|
+
<TabItem value="windows" label="Windows">
|
|
93
|
+
|
|
94
|
+
### Using Package Manager
|
|
95
|
+
|
|
96
|
+
```powershell
|
|
97
|
+
# Using Chocolatey
|
|
98
|
+
choco install example-tool
|
|
99
|
+
|
|
100
|
+
# Using Scoop
|
|
101
|
+
scoop install example-tool
|
|
102
|
+
|
|
103
|
+
# Using Winget
|
|
104
|
+
winget install Example.Tool
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Manual Installation
|
|
108
|
+
|
|
109
|
+
1. Download the installer from [releases page](https://example.com/releases)
|
|
110
|
+
2. Run the `.exe` or `.msi` installer
|
|
111
|
+
3. Follow the installation wizard
|
|
112
|
+
4. Add to PATH if not done automatically
|
|
113
|
+
|
|
114
|
+
```powershell
|
|
115
|
+
# Verify installation
|
|
116
|
+
example-tool --version
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
</TabItem>
|
|
120
|
+
</Tabs>
|
|
121
|
+
|
|
122
|
+
## Configuration
|
|
123
|
+
|
|
124
|
+
### Initial Setup
|
|
125
|
+
|
|
126
|
+
After installation, run the initialization command:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Initialize configuration
|
|
130
|
+
example-tool init
|
|
131
|
+
|
|
132
|
+
# Configure user settings
|
|
133
|
+
example-tool config set user.name "Your Name"
|
|
134
|
+
example-tool config set user.email "your.email@example.com"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Configuration File
|
|
138
|
+
|
|
139
|
+
Create a configuration file in your home directory:
|
|
140
|
+
|
|
141
|
+
```yaml title="~/.example-tool/config.yml"
|
|
142
|
+
user:
|
|
143
|
+
name: Your Name
|
|
144
|
+
email: your.email@example.com
|
|
145
|
+
|
|
146
|
+
defaults:
|
|
147
|
+
editor: code
|
|
148
|
+
shell: bash
|
|
149
|
+
|
|
150
|
+
preferences:
|
|
151
|
+
auto_update: true
|
|
152
|
+
telemetry: false
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Development Environment
|
|
156
|
+
|
|
157
|
+
### Setting Up a Project
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# Create a new project directory
|
|
161
|
+
mkdir my-project
|
|
162
|
+
cd my-project
|
|
163
|
+
|
|
164
|
+
# Initialize the project
|
|
165
|
+
example-tool init --template basic
|
|
166
|
+
|
|
167
|
+
# Install dependencies
|
|
168
|
+
npm install
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Environment Variables
|
|
172
|
+
|
|
173
|
+
Set up required environment variables:
|
|
174
|
+
|
|
175
|
+
```bash title=".env"
|
|
176
|
+
# API Configuration
|
|
177
|
+
EXAMPLE_API_KEY=your_api_key_here
|
|
178
|
+
EXAMPLE_ENDPOINT=https://api.example.com
|
|
179
|
+
|
|
180
|
+
# Development Settings
|
|
181
|
+
NODE_ENV=development
|
|
182
|
+
LOG_LEVEL=debug
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Load environment variables:
|
|
186
|
+
|
|
187
|
+
<Tabs>
|
|
188
|
+
<TabItem value="bash" label="Bash/Zsh">
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# Add to ~/.bashrc or ~/.zshrc
|
|
192
|
+
export EXAMPLE_API_KEY="your_api_key_here"
|
|
193
|
+
export EXAMPLE_ENDPOINT="https://api.example.com"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
</TabItem>
|
|
197
|
+
<TabItem value="fish" label="Fish">
|
|
198
|
+
|
|
199
|
+
```fish
|
|
200
|
+
# Add to ~/.config/fish/config.fish
|
|
201
|
+
set -x EXAMPLE_API_KEY "your_api_key_here"
|
|
202
|
+
set -x EXAMPLE_ENDPOINT "https://api.example.com"
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
</TabItem>
|
|
206
|
+
</Tabs>
|
|
207
|
+
|
|
208
|
+
## Verification
|
|
209
|
+
|
|
210
|
+
Verify your installation is working correctly:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# Check version
|
|
214
|
+
example-tool --version
|
|
215
|
+
|
|
216
|
+
# Run diagnostic
|
|
217
|
+
example-tool doctor
|
|
218
|
+
|
|
219
|
+
# Test basic functionality
|
|
220
|
+
example-tool test connection
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Expected output:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
✓ Example Tool v1.2.3
|
|
227
|
+
✓ Configuration loaded
|
|
228
|
+
✓ API connection successful
|
|
229
|
+
✓ All systems operational
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Updating
|
|
233
|
+
|
|
234
|
+
Keep your installation up to date:
|
|
235
|
+
|
|
236
|
+
<Tabs groupId="operating-systems">
|
|
237
|
+
<TabItem value="linux" label="Linux">
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
# Update via package manager
|
|
241
|
+
sudo apt-get update && sudo apt-get upgrade example-tool
|
|
242
|
+
|
|
243
|
+
# Or use built-in updater
|
|
244
|
+
example-tool update
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
</TabItem>
|
|
248
|
+
<TabItem value="macos" label="macOS">
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
# Update via Homebrew
|
|
252
|
+
brew upgrade example-tool
|
|
253
|
+
|
|
254
|
+
# Or use built-in updater
|
|
255
|
+
example-tool update
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
</TabItem>
|
|
259
|
+
<TabItem value="windows" label="Windows">
|
|
260
|
+
|
|
261
|
+
```powershell
|
|
262
|
+
# Update via package manager
|
|
263
|
+
choco upgrade example-tool
|
|
264
|
+
|
|
265
|
+
# Or use built-in updater
|
|
266
|
+
example-tool update
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
</TabItem>
|
|
270
|
+
</Tabs>
|
|
271
|
+
|
|
272
|
+
## Troubleshooting Installation
|
|
273
|
+
|
|
274
|
+
### Command Not Found
|
|
275
|
+
|
|
276
|
+
If you get "command not found" errors:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# Check if installed
|
|
280
|
+
which example-tool
|
|
281
|
+
|
|
282
|
+
# Check PATH
|
|
283
|
+
echo $PATH
|
|
284
|
+
|
|
285
|
+
# Add to PATH manually
|
|
286
|
+
export PATH="$PATH:/path/to/example-tool"
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Permission Denied
|
|
290
|
+
|
|
291
|
+
On Linux/macOS, you may need to make the binary executable:
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
chmod +x /usr/local/bin/example-tool
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Port Already in Use
|
|
298
|
+
|
|
299
|
+
If the default port is occupied:
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
# Use a different port
|
|
303
|
+
example-tool start --port 9000
|
|
304
|
+
|
|
305
|
+
# Or stop the conflicting process
|
|
306
|
+
lsof -ti:8080 | xargs kill -9
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
:::tip Next Steps
|
|
310
|
+
Once your environment is set up, check out the [Quick Start](#) guide to create your first project.
|
|
311
|
+
:::
|
|
312
|
+
|
|
313
|
+
:::note System Requirements
|
|
314
|
+
- **Minimum:** 2GB RAM, 500MB disk space
|
|
315
|
+
- **Recommended:** 4GB RAM, 1GB disk space
|
|
316
|
+
- **Network:** Internet connection for installation and updates
|
|
317
|
+
:::
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "FAQ"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
FAQ pages answer frequently asked questions in a clear, concise format. Group related questions
|
|
11
|
+
by category and provide direct, actionable answers. Keep answers brief but complete – link to
|
|
12
|
+
other resources for detailed explanations.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
# Frequently Asked Questions Template
|
|
17
|
+
|
|
18
|
+
Common questions and answers to help you get the most out of this technology.
|
|
19
|
+
|
|
20
|
+
## What platforms are supported?
|
|
21
|
+
|
|
22
|
+
Fully supported on:
|
|
23
|
+
- Linux (Ubuntu, Debian, Fedora, Arch)
|
|
24
|
+
- Windows (Windows 10 and 11)
|
|
25
|
+
|
|
26
|
+
## How do I install the tool?
|
|
27
|
+
|
|
28
|
+
Installation varies by platform. See the [Environment Setup](#) guide for detailed instructions. Quick install:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Linux/macOS
|
|
32
|
+
curl -fsSL https://example.com/install.sh | bash
|
|
33
|
+
|
|
34
|
+
# Windows (PowerShell)
|
|
35
|
+
winget install Example.Tool
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Where is the configuration file located?
|
|
39
|
+
|
|
40
|
+
Configuration files are checked in this order:
|
|
41
|
+
1. `./config.yml` (project directory)
|
|
42
|
+
2. `~/.config/example-tool/config.yml` (user home)
|
|
43
|
+
3. `/etc/example-tool/config.yml` (system-wide)
|
|
44
|
+
|
|
45
|
+
## How do I update to the latest version?
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Using built-in updater
|
|
49
|
+
example-tool update
|
|
50
|
+
|
|
51
|
+
# Or reinstall via package manager
|
|
52
|
+
brew upgrade example-tool # macOS
|
|
53
|
+
apt-get upgrade example-tool # Ubuntu/Debian
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## How do I initialize a new project?
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
mkdir my-project
|
|
60
|
+
cd my-project
|
|
61
|
+
example-tool init
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Can I use this with Docker?
|
|
65
|
+
|
|
66
|
+
Yes, official Docker images are available:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
docker pull example/tool:latest
|
|
70
|
+
docker run -v $(pwd):/app example/tool:latest command
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## How do I change the default port?
|
|
74
|
+
|
|
75
|
+
Update your configuration file or use environment variables:
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
# config.yml
|
|
79
|
+
server:
|
|
80
|
+
port: 9000
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Or via environment variable
|
|
85
|
+
export SERVER_PORT=9000
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## How do I validate my configuration?
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
example-tool config validate
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Why am I getting "command not found"?
|
|
95
|
+
|
|
96
|
+
The tool isn't in your PATH. Add it manually:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
export PATH="$PATH:/path/to/example-tool"
|
|
100
|
+
|
|
101
|
+
# Make permanent (add to ~/.bashrc or ~/.zshrc)
|
|
102
|
+
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Why can't I connect to the API?
|
|
106
|
+
|
|
107
|
+
Check these common issues:
|
|
108
|
+
1. Verify the endpoint URL in your configuration
|
|
109
|
+
2. Ensure your API key is valid and not expired
|
|
110
|
+
3. Check network connectivity and firewall rules
|
|
111
|
+
4. Verify the service is running
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Test connectivity
|
|
115
|
+
curl -I https://api.example.com/health
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## How do I enable debug logging?
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Via CLI flag
|
|
122
|
+
example-tool --verbose command
|
|
123
|
+
|
|
124
|
+
# Via environment variable
|
|
125
|
+
export LOG_LEVEL=debug
|
|
126
|
+
example-tool command
|
|
127
|
+
|
|
128
|
+
# Via config file
|
|
129
|
+
logging:
|
|
130
|
+
level: debug
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## What should I do if I encounter an error?
|
|
134
|
+
|
|
135
|
+
1. Check the error message and error code
|
|
136
|
+
2. Review the [Troubleshooting](#) guide
|
|
137
|
+
3. Enable debug logging to get more details
|
|
138
|
+
4. Search existing GitHub issues
|
|
139
|
+
5. Create a new issue with logs and steps to reproduce
|
|
140
|
+
|
|
141
|
+
## Is there a REST API client library?
|
|
142
|
+
|
|
143
|
+
Official clients are available for:
|
|
144
|
+
- JavaScript/TypeScript (npm: `@example/client`)
|
|
145
|
+
- Python (pip: `example-tool-client`)
|
|
146
|
+
- Go (github.com/example/go-client)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: "Glossary"
|
|
3
|
+
sidebar_custom_props:
|
|
4
|
+
section: "Templates"
|
|
5
|
+
section_position: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
{/*
|
|
9
|
+
|
|
10
|
+
Glossary pages define technology-specific terminology and concepts. Organize alphabetically
|
|
11
|
+
or by category. Provide clear, concise definitions without assuming prior knowledge. Use
|
|
12
|
+
examples where helpful to illustrate complex concepts.
|
|
13
|
+
|
|
14
|
+
*/}
|
|
15
|
+
|
|
16
|
+
# Glossary Template
|
|
17
|
+
|
|
18
|
+
Key terms and concepts explained to help you understand the technology and its documentation.
|
|
19
|
+
|
|
20
|
+
## API (Application Programming Interface)
|
|
21
|
+
A set of rules and protocols that allows different software applications to communicate with each other. In this context, the REST API provides programmatic access to all features.
|
|
22
|
+
|
|
23
|
+
## Batch Operation
|
|
24
|
+
An operation that processes multiple items in a single request, improving efficiency compared to individual operations. Example: deleting multiple resources at once.
|
|
25
|
+
|
|
26
|
+
## CLI (Command-Line Interface)
|
|
27
|
+
A text-based interface for interacting with the tool through terminal commands. Alternative to graphical user interfaces (GUI) or APIs.
|
|
28
|
+
|
|
29
|
+
## Dependency
|
|
30
|
+
External code libraries or tools required for an application to function. Managed through package managers like npm, pip, or Maven.
|
|
31
|
+
|
|
32
|
+
## Environment Variable
|
|
33
|
+
A dynamic value stored outside the application code that can affect how processes run. Used for configuration and secrets management.
|
|
34
|
+
|
|
35
|
+
## Flag
|
|
36
|
+
A command-line option that modifies the behavior of a command. Flags typically start with `-` or `--`. Example: `--verbose` for detailed output.
|
|
37
|
+
|
|
38
|
+
## Hook
|
|
39
|
+
A custom script or function that runs at specific points in a workflow, allowing customization of behavior. Example: pre-deployment hooks for validation.
|
|
40
|
+
|
|
41
|
+
## Idempotent
|
|
42
|
+
An operation that produces the same result regardless of how many times it's executed. Example: setting a value to "X" is idempotent; incrementing is not.
|
|
43
|
+
|
|
44
|
+
## JSON (JavaScript Object Notation)
|
|
45
|
+
A lightweight data interchange format that's easy for humans to read and machines to parse. Commonly used for API responses and configuration.
|
|
46
|
+
|
|
47
|
+
## Lifecycle
|
|
48
|
+
The stages a resource goes through from creation to deletion: initialize → create → update → delete. Hooks and events can be triggered at each stage.
|
|
49
|
+
|
|
50
|
+
## Middleware
|
|
51
|
+
Software that sits between the client and the server, processing requests and responses. Used for authentication, logging, error handling, etc.
|
|
52
|
+
|
|
53
|
+
## Namespace
|
|
54
|
+
A logical grouping or container for resources that provides isolation. Prevents naming conflicts and allows organization of related items.
|
|
55
|
+
|
|
56
|
+
## Orchestration
|
|
57
|
+
The automated coordination and management of multiple components or services. Examples include container orchestration (Kubernetes) and workflow orchestration.
|
|
58
|
+
|
|
59
|
+
## Plugin
|
|
60
|
+
An extension that adds functionality to the core tool without modifying the main codebase. Plugins enable customization and third-party integrations.
|
|
61
|
+
|
|
62
|
+
## REST (Representational State Transfer)
|
|
63
|
+
An architectural style for designing APIs that uses HTTP methods (GET, POST, PUT, DELETE) and follows specific conventions.
|
|
64
|
+
|
|
65
|
+
## Schema
|
|
66
|
+
A structured definition of data format, including field names, types, and validation rules. Used for validating configuration files and API requests.
|
|
67
|
+
|
|
68
|
+
## Template
|
|
69
|
+
A predefined pattern or blueprint used to generate new resources with consistent structure. Templates can include variables and conditional logic.
|
|
70
|
+
|
|
71
|
+
## Version Control
|
|
72
|
+
A system for tracking changes to code and configuration over time. Git is the most common version control system.
|
|
73
|
+
|
|
74
|
+
## Webhook
|
|
75
|
+
An HTTP callback that sends data to a specified URL when an event occurs. Enables real-time integrations between systems.
|
|
76
|
+
|
|
77
|
+
## YAML (YAML Ain't Markup Language)
|
|
78
|
+
A human-friendly data serialization format commonly used for configuration files. More readable than JSON but with similar capabilities.
|
|
@@ -1,35 +1,86 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
pagination_next: null
|
|
2
|
+
sidebar_label: Resources
|
|
3
|
+
sidebar_position: 0
|
|
5
4
|
---
|
|
6
5
|
|
|
6
|
+
{/*
|
|
7
|
+
|
|
8
|
+
This is the main landing page for the Resources section. It provides an icon grid navigation
|
|
9
|
+
to help users quickly find the type of resource they need. Customize the icon grid with the
|
|
10
|
+
resource types most relevant to your content.
|
|
11
|
+
|
|
12
|
+
*/}
|
|
13
|
+
|
|
7
14
|
import {
|
|
8
15
|
IconContainersSection,
|
|
9
16
|
IconContainerBlock,
|
|
10
17
|
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
11
18
|
|
|
12
|
-
# Resources
|
|
19
|
+
# Resources
|
|
20
|
+
|
|
21
|
+
<IconContainersSection maxItemsPerRow="1">
|
|
22
|
+
<IconContainerBlock
|
|
23
|
+
title="Best Practice"
|
|
24
|
+
iconify="mdi:lightbulb-on-outline"
|
|
25
|
+
link="/resources/best-practice/"
|
|
26
|
+
/>
|
|
27
|
+
</IconContainersSection>
|
|
28
|
+
|
|
29
|
+
## Available Templates {#available-templates style="text-align: center;"}
|
|
13
30
|
|
|
14
31
|
<IconContainersSection maxItemsPerRow="2">
|
|
15
32
|
<IconContainerBlock
|
|
16
|
-
title="
|
|
17
|
-
iconify="mdi:
|
|
18
|
-
link="/resources/
|
|
33
|
+
title="API Reference"
|
|
34
|
+
iconify="mdi:api"
|
|
35
|
+
link="/resources/api-reference/"
|
|
19
36
|
/>
|
|
20
37
|
<IconContainerBlock
|
|
21
|
-
title="
|
|
22
|
-
iconify="
|
|
23
|
-
link="/resources/
|
|
38
|
+
title="Cheat Sheet"
|
|
39
|
+
iconify="mdi:notebook-outline"
|
|
40
|
+
link="/resources/cheat-sheet/"
|
|
24
41
|
/>
|
|
25
42
|
<IconContainerBlock
|
|
26
|
-
title="
|
|
27
|
-
iconify="mdi:
|
|
28
|
-
link="/resources/
|
|
43
|
+
title="CLI Reference"
|
|
44
|
+
iconify="mdi:console"
|
|
45
|
+
link="/resources/cli-reference/"
|
|
29
46
|
/>
|
|
30
47
|
<IconContainerBlock
|
|
31
|
-
title="
|
|
32
|
-
iconify="mdi:
|
|
33
|
-
link="/resources/
|
|
48
|
+
title="Configuration Guide"
|
|
49
|
+
iconify="mdi:tune"
|
|
50
|
+
link="/resources/configuration-guide/"
|
|
51
|
+
/>
|
|
52
|
+
<IconContainerBlock
|
|
53
|
+
title="Environment Setup"
|
|
54
|
+
iconify="mdi:cog-outline"
|
|
55
|
+
link="/resources/environment-setup/"
|
|
56
|
+
/>
|
|
57
|
+
<IconContainerBlock
|
|
58
|
+
title="FAQ"
|
|
59
|
+
iconify="mdi:help-circle-outline"
|
|
60
|
+
link="/resources/faq/"
|
|
61
|
+
/>
|
|
62
|
+
<IconContainerBlock
|
|
63
|
+
title="Glossary"
|
|
64
|
+
iconify="mdi:book-alphabet"
|
|
65
|
+
link="/resources/glossary/"
|
|
66
|
+
/>
|
|
67
|
+
<IconContainerBlock
|
|
68
|
+
title="Quick Start"
|
|
69
|
+
iconify="mdi:rocket-launch-outline"
|
|
70
|
+
link="/resources/quick-start/"
|
|
71
|
+
/>
|
|
72
|
+
<IconContainerBlock
|
|
73
|
+
title="Troubleshooting"
|
|
74
|
+
iconify="mdi:wrench-outline"
|
|
75
|
+
link="/resources/troubleshooting/"
|
|
76
|
+
/>
|
|
77
|
+
<IconContainerBlock
|
|
78
|
+
title="Useful Links"
|
|
79
|
+
iconify="mdi:link-variant"
|
|
80
|
+
link="/resources/useful-links/"
|
|
34
81
|
/>
|
|
35
82
|
</IconContainersSection>
|
|
83
|
+
|
|
84
|
+
:::tip Customize This Page
|
|
85
|
+
Remove sections that don't apply to your technology and add new ones as needed.
|
|
86
|
+
:::
|