specweave 0.23.18 → 0.24.0
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/.claude-plugin/marketplace.json +93 -49
- package/CLAUDE.md +137 -4
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts +89 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts.map +1 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js +213 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts +29 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js +109 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +2 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/src/cli/helpers/smart-filter.d.ts +83 -0
- package/dist/src/cli/helpers/smart-filter.d.ts.map +1 -0
- package/dist/src/cli/helpers/smart-filter.js +265 -0
- package/dist/src/cli/helpers/smart-filter.js.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts +1 -1
- package/dist/src/core/qa/quality-gate-decider.js +2 -2
- package/dist/src/core/qa/quality-gate-decider.js.map +1 -1
- package/dist/src/core/qa/risk-calculator.d.ts +2 -2
- package/dist/src/core/qa/risk-calculator.js +2 -2
- package/dist/src/core/validators/ac-presence-validator.d.ts +56 -0
- package/dist/src/core/validators/ac-presence-validator.d.ts.map +1 -0
- package/dist/src/core/validators/ac-presence-validator.js +149 -0
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -0
- package/dist/src/integrations/ado/area-path-mapper.d.ts +137 -0
- package/dist/src/integrations/ado/area-path-mapper.d.ts.map +1 -0
- package/dist/src/integrations/ado/area-path-mapper.js +267 -0
- package/dist/src/integrations/ado/area-path-mapper.js.map +1 -0
- package/dist/src/integrations/jira/filter-processor.d.ts +126 -0
- package/dist/src/integrations/jira/filter-processor.d.ts.map +1 -0
- package/dist/src/integrations/jira/filter-processor.js +207 -0
- package/dist/src/integrations/jira/filter-processor.js.map +1 -0
- package/dist/src/integrations/jira/jira-client.d.ts +13 -0
- package/dist/src/integrations/jira/jira-client.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-client.js +33 -0
- package/dist/src/integrations/jira/jira-client.js.map +1 -1
- package/dist/src/utils/ac-embedder.d.ts +63 -0
- package/dist/src/utils/ac-embedder.d.ts.map +1 -0
- package/dist/src/utils/ac-embedder.js +217 -0
- package/dist/src/utils/ac-embedder.js.map +1 -0
- package/dist/src/utils/env-manager.d.ts +86 -0
- package/dist/src/utils/env-manager.d.ts.map +1 -0
- package/dist/src/utils/env-manager.js +188 -0
- package/dist/src/utils/env-manager.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave/agents/AGENTS-INDEX.md +1 -1
- package/plugins/specweave/agents/increment-quality-judge-v2/AGENT.md +9 -9
- package/plugins/specweave/commands/specweave-do.md +37 -0
- package/plugins/specweave/commands/specweave-done.md +159 -0
- package/plugins/specweave/commands/specweave-embed-acs.md +446 -0
- package/plugins/specweave/commands/specweave-next.md +148 -3
- package/plugins/specweave/commands/specweave-qa.md +2 -2
- package/plugins/specweave/hooks/pre-increment-start.sh +168 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
- package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ado/commands/specweave-ado-import-projects.md +331 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-alternatives/commands/alternatives-analyze.md +336 -0
- package/plugins/specweave-alternatives/skills/architecture-alternatives/SKILL.md +651 -0
- package/plugins/specweave-alternatives/skills/bmad-method/SKILL.md +420 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +487 -0
- package/plugins/specweave-backend/commands/api-scaffold.md +80 -0
- package/plugins/specweave-backend/commands/crud-generate.md +109 -0
- package/plugins/specweave-backend/commands/migration-generate.md +139 -0
- package/plugins/specweave-confluent/commands/connector-deploy.md +154 -0
- package/plugins/specweave-confluent/commands/ksqldb-query.md +179 -0
- package/plugins/specweave-confluent/commands/schema-register.md +123 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-core/commands/architecture-review.md +288 -0
- package/plugins/specweave-core/commands/code-review.md +213 -0
- package/plugins/specweave-core/commands/refactor-plan.md +249 -0
- package/plugins/specweave-core/skills/code-quality/SKILL.md +157 -0
- package/plugins/specweave-core/skills/design-patterns/SKILL.md +244 -0
- package/plugins/specweave-core/skills/software-architecture/SKILL.md +83 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-cost-optimizer/commands/cost-analyze.md +360 -0
- package/plugins/specweave-cost-optimizer/commands/cost-optimize.md +480 -0
- package/plugins/specweave-cost-optimizer/skills/aws-cost-expert/SKILL.md +416 -0
- package/plugins/specweave-cost-optimizer/skills/cloud-pricing/SKILL.md +325 -0
- package/plugins/specweave-cost-optimizer/skills/cost-optimization/SKILL.md +337 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-diagrams/commands/diagrams-generate.md +168 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-docs/commands/docs-generate.md +441 -0
- package/plugins/specweave-docs/commands/docs-init.md +334 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +581 -0
- package/plugins/specweave-docs/skills/spec-driven-brainstorming/SKILL.md +689 -0
- package/plugins/specweave-docs/skills/technical-writing/SKILL.md +1039 -0
- package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-figma/.claude-plugin/plugin.json +23 -0
- package/plugins/specweave-figma/commands/figma-import.md +690 -0
- package/plugins/specweave-figma/commands/figma-to-react.md +834 -0
- package/plugins/specweave-figma/commands/figma-tokens.md +815 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-frontend/agents/frontend-architect/AGENT.md +387 -0
- package/plugins/specweave-frontend/agents/frontend-architect/README.md +385 -0
- package/plugins/specweave-frontend/agents/frontend-architect/examples.md +590 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/component-template.tsx +152 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/hook-template.ts +311 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/page-template.tsx +228 -0
- package/plugins/specweave-frontend/commands/component-generate.md +510 -0
- package/plugins/specweave-frontend/commands/design-system-init.md +494 -0
- package/plugins/specweave-frontend/commands/frontend-scaffold.md +207 -0
- package/plugins/specweave-frontend/commands/nextjs-setup.md +396 -0
- package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +278 -0
- package/plugins/specweave-frontend/skills/frontend/SKILL.md +420 -0
- package/plugins/specweave-frontend/skills/nextjs/SKILL.md +546 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +194 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/commands/import-projects.js +183 -0
- package/plugins/specweave-jira/commands/import-projects.md +97 -0
- package/plugins/specweave-jira/commands/import-projects.ts +288 -0
- package/plugins/specweave-jira/commands/specweave-jira-import-projects.md +298 -0
- package/plugins/specweave-kafka/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kubernetes/commands/cluster-setup.md +262 -0
- package/plugins/specweave-kubernetes/commands/deployment-generate.md +242 -0
- package/plugins/specweave-kubernetes/commands/helm-scaffold.md +333 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-mobile/commands/app-scaffold.md +233 -0
- package/plugins/specweave-mobile/commands/build-config.md +256 -0
- package/plugins/specweave-mobile/commands/screen-generate.md +289 -0
- package/plugins/specweave-n8n/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +13 -12
- package/plugins/specweave-plugin-dev/commands/plugin-create.md +333 -0
- package/plugins/specweave-plugin-dev/commands/plugin-publish.md +339 -0
- package/plugins/specweave-plugin-dev/commands/plugin-test.md +293 -0
- package/plugins/specweave-plugin-dev/skills/claude-sdk/SKILL.md +162 -0
- package/plugins/specweave-plugin-dev/skills/marketplace-publishing/SKILL.md +263 -0
- package/plugins/specweave-plugin-dev/skills/plugin-development/SKILL.md +316 -0
- package/plugins/specweave-release/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-release/commands/specweave-release-npm.md +110 -0
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +168 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-testing/agents/qa-engineer/AGENT.md +797 -0
- package/plugins/specweave-testing/agents/qa-engineer/README.md +443 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/playwright-e2e-test.ts +470 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/test-data-factory.ts +507 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/vitest-unit-test.ts +400 -0
- package/plugins/specweave-testing/agents/qa-engineer/test-strategies.md +726 -0
- package/plugins/specweave-testing/commands/e2e-setup.md +1081 -0
- package/plugins/specweave-testing/commands/test-coverage.md +979 -0
- package/plugins/specweave-testing/commands/test-generate.md +1156 -0
- package/plugins/specweave-testing/commands/test-init.md +409 -0
- package/plugins/specweave-testing/skills/e2e-playwright/SKILL.md +769 -0
- package/plugins/specweave-testing/skills/tdd-expert/SKILL.md +934 -0
- package/plugins/specweave-testing/skills/unit-testing-expert/SKILL.md +1011 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-create.md +691 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-package.md +751 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-validate.md +858 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-ui/commands/ui-automate.md +199 -0
- package/plugins/specweave-ui/commands/ui-inspect.md +70 -0
- package/plugins/specweave-ui/skills/browser-automation/SKILL.md +314 -0
- package/plugins/specweave-ui/skills/ui-testing/SKILL.md +716 -0
- package/plugins/specweave-ui/skills/visual-regression/SKILL.md +728 -0
- package/plugins/specweave/commands/check-hooks.md +0 -257
- package/plugins/specweave/commands/specweave-archive-increments.md +0 -82
- package/plugins/specweave-plugin-dev/skills/plugin-expert/SKILL.md +0 -1231
- /package/plugins/specweave/{agents/code-reviewer.md → skills/code-reviewer/SKILL.md} +0 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
# Docs Init - Initialize Documentation Site
|
|
2
|
+
|
|
3
|
+
Initialize a Docusaurus documentation site with spec-driven documentation structure, living docs integration, and SpecWeave-optimized configuration.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/specweave-docs:docs-init [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What I Do
|
|
12
|
+
|
|
13
|
+
1. **Scaffold Docusaurus Site**: Create standard Docusaurus 3.x structure
|
|
14
|
+
2. **Configure Plugins**: Set up Mermaid diagrams, search, versioning
|
|
15
|
+
3. **SpecWeave Integration**: Link to `.specweave/docs/` living documentation
|
|
16
|
+
4. **Theme Customization**: Apply professional theme with dark mode
|
|
17
|
+
5. **Sidebar Generation**: Auto-generate sidebar from directory structure
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
- `--template <template>` - Template type: classic, material, custom (default: classic)
|
|
22
|
+
- `--typescript` - Use TypeScript configuration (default: true)
|
|
23
|
+
- `--mermaid` - Enable Mermaid diagram support (default: true)
|
|
24
|
+
- `--search` - Add Algolia DocSearch or local search (default: local)
|
|
25
|
+
- `--versioning` - Enable documentation versioning (default: false)
|
|
26
|
+
- `--output <path>` - Output directory (default: `./docs-site`)
|
|
27
|
+
|
|
28
|
+
## Generated Structure
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
docs-site/
|
|
32
|
+
├── docs/ # Documentation content
|
|
33
|
+
│ ├── intro.md
|
|
34
|
+
│ ├── features/
|
|
35
|
+
│ ├── api/
|
|
36
|
+
│ └── guides/
|
|
37
|
+
├── blog/ # Optional blog
|
|
38
|
+
├── src/
|
|
39
|
+
│ ├── components/ # React components
|
|
40
|
+
│ ├── css/ # Custom styles
|
|
41
|
+
│ └── pages/ # Custom pages
|
|
42
|
+
├── static/ # Static assets
|
|
43
|
+
│ ├── img/
|
|
44
|
+
│ └── diagrams/
|
|
45
|
+
├── docusaurus.config.ts # Main configuration
|
|
46
|
+
├── sidebars.ts # Sidebar configuration
|
|
47
|
+
├── package.json
|
|
48
|
+
└── tsconfig.json
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## SpecWeave Integration
|
|
52
|
+
|
|
53
|
+
### Living Docs Auto-Sync
|
|
54
|
+
|
|
55
|
+
Automatically imports content from `.specweave/docs/`:
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
// docusaurus.config.ts
|
|
59
|
+
module.exports = {
|
|
60
|
+
plugins: [
|
|
61
|
+
[
|
|
62
|
+
'@docusaurus/plugin-content-docs',
|
|
63
|
+
{
|
|
64
|
+
id: 'specweave-docs',
|
|
65
|
+
path: '../.specweave/docs',
|
|
66
|
+
routeBasePath: 'specweave',
|
|
67
|
+
sidebarPath: './sidebars.ts',
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Architecture Diagrams
|
|
75
|
+
|
|
76
|
+
Mermaid integration for `.specweave/docs/architecture/`:
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
# System Architecture
|
|
80
|
+
|
|
81
|
+
```mermaid
|
|
82
|
+
graph TB
|
|
83
|
+
A[Frontend] -->|API| B[Backend]
|
|
84
|
+
B -->|Query| C[Database]
|
|
85
|
+
B -->|Publish| D[Kafka]
|
|
86
|
+
\```
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### API Documentation
|
|
90
|
+
|
|
91
|
+
OpenAPI/Swagger integration:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
// docusaurus.config.ts
|
|
95
|
+
plugins: [
|
|
96
|
+
[
|
|
97
|
+
'docusaurus-plugin-openapi-docs',
|
|
98
|
+
{
|
|
99
|
+
id: 'api',
|
|
100
|
+
docsPluginId: 'classic',
|
|
101
|
+
config: {
|
|
102
|
+
api: {
|
|
103
|
+
specPath: '../.specweave/docs/api/openapi.yaml',
|
|
104
|
+
outputDir: 'docs/api',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
],
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Default Configuration
|
|
113
|
+
|
|
114
|
+
### Theme
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
// docusaurus.config.ts
|
|
118
|
+
themeConfig: {
|
|
119
|
+
colorMode: {
|
|
120
|
+
defaultMode: 'dark',
|
|
121
|
+
respectPrefersColorScheme: true,
|
|
122
|
+
},
|
|
123
|
+
navbar: {
|
|
124
|
+
title: 'Project Name',
|
|
125
|
+
logo: {
|
|
126
|
+
src: 'img/logo.svg',
|
|
127
|
+
},
|
|
128
|
+
items: [
|
|
129
|
+
{
|
|
130
|
+
type: 'doc',
|
|
131
|
+
docId: 'intro',
|
|
132
|
+
label: 'Docs',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
to: '/specweave',
|
|
136
|
+
label: 'Architecture',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
to: '/api',
|
|
140
|
+
label: 'API',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
href: 'https://github.com/your-org/your-repo',
|
|
144
|
+
label: 'GitHub',
|
|
145
|
+
position: 'right',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
footer: {
|
|
150
|
+
copyright: `Copyright © ${new Date().getFullYear()} Your Company`,
|
|
151
|
+
},
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Plugins
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
plugins: [
|
|
159
|
+
'@docusaurus/plugin-content-docs',
|
|
160
|
+
'@docusaurus/plugin-content-blog',
|
|
161
|
+
'@docusaurus/plugin-content-pages',
|
|
162
|
+
'@docusaurus/theme-classic',
|
|
163
|
+
'@docusaurus/theme-mermaid',
|
|
164
|
+
'@docusaurus/plugin-sitemap',
|
|
165
|
+
],
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Post-Init Steps
|
|
169
|
+
|
|
170
|
+
After initialization:
|
|
171
|
+
|
|
172
|
+
1. **Install Dependencies**
|
|
173
|
+
```bash
|
|
174
|
+
cd docs-site && npm install
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
2. **Start Dev Server**
|
|
178
|
+
```bash
|
|
179
|
+
npm start
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
3. **Build for Production**
|
|
183
|
+
```bash
|
|
184
|
+
npm run build
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
4. **Deploy**
|
|
188
|
+
```bash
|
|
189
|
+
npm run serve # Preview production build
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Use Cases
|
|
193
|
+
|
|
194
|
+
### 1. Product Documentation
|
|
195
|
+
Create comprehensive user guides, feature docs, and tutorials.
|
|
196
|
+
|
|
197
|
+
### 2. API Documentation
|
|
198
|
+
Generate interactive API documentation from OpenAPI specs.
|
|
199
|
+
|
|
200
|
+
### 3. Technical Specifications
|
|
201
|
+
Document architecture, design decisions (ADRs), and technical specs.
|
|
202
|
+
|
|
203
|
+
### 4. Living Documentation
|
|
204
|
+
Auto-sync SpecWeave living docs (features, user stories, modules).
|
|
205
|
+
|
|
206
|
+
### 5. Internal Knowledge Base
|
|
207
|
+
Team documentation, runbooks, incident reports, postmortems.
|
|
208
|
+
|
|
209
|
+
## Deployment Options
|
|
210
|
+
|
|
211
|
+
### Static Hosting
|
|
212
|
+
- GitHub Pages
|
|
213
|
+
- Netlify
|
|
214
|
+
- Vercel
|
|
215
|
+
- AWS S3 + CloudFront
|
|
216
|
+
|
|
217
|
+
### Configuration for GitHub Pages
|
|
218
|
+
```typescript
|
|
219
|
+
// docusaurus.config.ts
|
|
220
|
+
module.exports = {
|
|
221
|
+
url: 'https://your-org.github.io',
|
|
222
|
+
baseUrl: '/your-repo/',
|
|
223
|
+
organizationName: 'your-org',
|
|
224
|
+
projectName: 'your-repo',
|
|
225
|
+
deploymentBranch: 'gh-pages',
|
|
226
|
+
};
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## Customization
|
|
230
|
+
|
|
231
|
+
### Add Custom React Components
|
|
232
|
+
|
|
233
|
+
```typescript
|
|
234
|
+
// src/components/FeatureCard.tsx
|
|
235
|
+
export function FeatureCard({ title, description, icon }) {
|
|
236
|
+
return (
|
|
237
|
+
<div className="feature-card">
|
|
238
|
+
<div className="icon">{icon}</div>
|
|
239
|
+
<h3>{title}</h3>
|
|
240
|
+
<p>{description}</p>
|
|
241
|
+
</div>
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Custom Homepage
|
|
247
|
+
|
|
248
|
+
```tsx
|
|
249
|
+
// src/pages/index.tsx
|
|
250
|
+
import React from 'react';
|
|
251
|
+
import Layout from '@theme/Layout';
|
|
252
|
+
|
|
253
|
+
export default function Home() {
|
|
254
|
+
return (
|
|
255
|
+
<Layout title="Home" description="Project Documentation">
|
|
256
|
+
<main>
|
|
257
|
+
<h1>Welcome to Our Documentation</h1>
|
|
258
|
+
{/* Custom content */}
|
|
259
|
+
</main>
|
|
260
|
+
</Layout>
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Add Search
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
# Local search
|
|
269
|
+
npm install --save @easyops-cn/docusaurus-search-local
|
|
270
|
+
|
|
271
|
+
# Algolia DocSearch (requires approval)
|
|
272
|
+
# Add to docusaurus.config.ts:
|
|
273
|
+
themeConfig: {
|
|
274
|
+
algolia: {
|
|
275
|
+
appId: 'YOUR_APP_ID',
|
|
276
|
+
apiKey: 'YOUR_API_KEY',
|
|
277
|
+
indexName: 'YOUR_INDEX_NAME',
|
|
278
|
+
},
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
## Examples
|
|
283
|
+
|
|
284
|
+
### Basic Initialization
|
|
285
|
+
```bash
|
|
286
|
+
/specweave-docs:docs-init
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### TypeScript with Mermaid
|
|
290
|
+
```bash
|
|
291
|
+
/specweave-docs:docs-init --typescript --mermaid
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Material Theme with Versioning
|
|
295
|
+
```bash
|
|
296
|
+
/specweave-docs:docs-init --template material --versioning
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Custom Output Directory
|
|
300
|
+
```bash
|
|
301
|
+
/specweave-docs:docs-init --output ./documentation
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
## Related Commands
|
|
305
|
+
|
|
306
|
+
- `/specweave-docs:docs-generate` - Generate docs from code/specs
|
|
307
|
+
- `/specweave-docs-preview:preview` - Launch documentation preview server
|
|
308
|
+
- `/specweave-docs-preview:build` - Build static documentation site
|
|
309
|
+
|
|
310
|
+
## Requirements
|
|
311
|
+
|
|
312
|
+
- Node.js 18.0 or higher
|
|
313
|
+
- npm or yarn package manager
|
|
314
|
+
- ~200MB disk space for Docusaurus + dependencies
|
|
315
|
+
|
|
316
|
+
## Troubleshooting
|
|
317
|
+
|
|
318
|
+
### Port Already in Use
|
|
319
|
+
```bash
|
|
320
|
+
PORT=3001 npm start
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Build Failures
|
|
324
|
+
```bash
|
|
325
|
+
# Clear cache
|
|
326
|
+
npm run clear
|
|
327
|
+
npm run build
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Broken Links
|
|
331
|
+
```bash
|
|
332
|
+
# Check for broken links
|
|
333
|
+
npm run build -- --debug
|
|
334
|
+
```
|