You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-2Lines changed: 41 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,41 @@ npm run fetch-docs
56
56
npm run fetch-docs:cache
57
57
```
58
58
59
+
##### Filtering by Plugin and/or Version
60
+
61
+
Pass `--plugin` and `--version` flags (directly via `tsx`) or use the `FETCH_PLUGIN` / `FETCH_VERSION` environment variables (recommended on Windows, where `npm run -- ` does not forward args correctly).
62
+
63
+
**PowerShell (Windows) — use env vars:**
64
+
```powershell
65
+
# Single plugin (all versions)
66
+
$env:FETCH_PLUGIN='simple-contact-form'; npm run fetch-docs
67
+
68
+
# Single plugin, single version
69
+
$env:FETCH_PLUGIN='simple-contact-form'; $env:FETCH_VERSION='2.x'; npm run fetch-docs
70
+
71
+
# Multiple plugins (comma-separated)
72
+
$env:FETCH_PLUGIN='filament-tree,filament-firewall'; npm run fetch-docs
73
+
74
+
# Combined with cache-only
75
+
$env:FETCH_PLUGIN='simple-contact-form'; npm run fetch-docs:cache
76
+
```
77
+
78
+
**bash / macOS / Linux — env vars also work:**
79
+
```bash
80
+
FETCH_PLUGIN=simple-contact-form npm run fetch-docs
81
+
FETCH_PLUGIN=simple-contact-form FETCH_VERSION=2.x npm run fetch-docs
82
+
FETCH_PLUGIN=filament-tree,filament-firewall npm run fetch-docs
> **Note:**`npm run fetch-docs -- --plugin=...` does **not** work on Windows because npm strips args after `--` on that platform. Use the env var or direct `tsx` approach instead.
93
+
59
94
#### Build & Deploy
60
95
61
96
Since GitHub Actions may hit API limits easily, we recommend building locally and pushing the static site.
@@ -349,8 +384,12 @@ npm run build:cache # Build using cached documentation (faster)
349
384
npm run build:static # Build for static export (used by GitHub Actions)
350
385
351
386
# Documentation Management
352
-
npm run fetch-docs # Fetch documentation from GitHub
353
-
npm run fetch-docs:cache # Use cached docs, skip GitHub fetch
387
+
npm run fetch-docs # Fetch all documentation from GitHub
388
+
npm run fetch-docs:cache # Use cached docs, skip GitHub fetch
389
+
$env:FETCH_PLUGIN='<id>'; npm run fetch-docs # PowerShell: single plugin
390
+
$env:FETCH_PLUGIN='<id>';$env:FETCH_VERSION='<ver>'; npm run fetch-docs # PowerShell: plugin + version
391
+
FETCH_PLUGIN=<id> npm run fetch-docs # bash: single plugin
392
+
npx tsx scripts/fetch-docs.ts --plugin=<id> --version=<ver># Direct tsx (all platforms)
354
393
355
394
# Type Checking
356
395
npm run types:check # Run TypeScript type checking
0 commit comments