Commit f0fff3c
Fix workflow to properly generate and update commands.json
This fixes the command index generation pipeline to ensure commands.json
is properly created and updated with the latest dbatools commands.
Changes:
- generate-command-pages.ps1: Now copies dbatools-index.json to static/commands.json
- deploy.yml: Added steps to run enrichment and update scripts after generation
- update-popular-commands.ps1: Fixed error when 'popular' property doesn't exist
The workflow now:
1. Downloads dbatools-index.json and generates markdown files
2. Copies the index to static/commands.json
3. Enriches commands.json with full-text search content
4. Updates popular commands (top 50)
5. Updates command URLs to point to local pages
This ensures the command index is always up-to-date with the latest
dbatools release without requiring manual intervention.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1f1f4eb commit f0fff3c
File tree
3 files changed
+37
-1
lines changed- .github/workflows
- scripts
3 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
64 | 85 | | |
65 | 86 | | |
66 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
350 | 360 | | |
351 | 361 | | |
352 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
0 commit comments