svedocs-cli 0.1.0-beta.1
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/LICENSE +5 -0
- package/README.md +26 -0
- package/dist/chunk-QD6TB2KV.js +751 -0
- package/dist/create-svedocs.d.ts +1 -0
- package/dist/create-svedocs.js +12 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +12 -0
- package/dist/svedocs.d.ts +1 -0
- package/dist/svedocs.js +12 -0
- package/package.json +48 -0
- package/templates/cloudflare/.dev.vars.example +14 -0
- package/templates/cloudflare/README.md +13 -0
- package/templates/cloudflare/content/docs/index.md +20 -0
- package/templates/cloudflare/content/pages/index.md +9 -0
- package/templates/cloudflare/package.json +35 -0
- package/templates/cloudflare/src/app.cloudflare.d.ts +21 -0
- package/templates/cloudflare/src/app.d.ts +35 -0
- package/templates/cloudflare/src/app.html +12 -0
- package/templates/cloudflare/src/lib/server/env.ts +3 -0
- package/templates/cloudflare/src/routes/+layout.svelte +5 -0
- package/templates/cloudflare/src/routes/+layout.ts +3 -0
- package/templates/cloudflare/src/routes/+page.svelte +8 -0
- package/templates/cloudflare/src/routes/+page.ts +12 -0
- package/templates/cloudflare/src/routes/[...path]/+page.svelte +8 -0
- package/templates/cloudflare/src/routes/[...path]/+page.ts +22 -0
- package/templates/cloudflare/src/routes/api/ask/+server.ts +15 -0
- package/templates/cloudflare/src/routes/api/search/+server.ts +13 -0
- package/templates/cloudflare/src/routes/og/[...path]/+server.ts +26 -0
- package/templates/cloudflare/src/routes/robots.txt/+server.ts +12 -0
- package/templates/cloudflare/src/routes/sitemap.xml/+server.ts +13 -0
- package/templates/cloudflare/static/favicon.svg +6 -0
- package/templates/cloudflare/svedocs.config.ts +26 -0
- package/templates/cloudflare/svelte.config.js +18 -0
- package/templates/cloudflare/tsconfig.json +7 -0
- package/templates/cloudflare/vite.config.ts +9 -0
- package/templates/cloudflare/wrangler.toml +7 -0
- package/templates/docs/README.md +12 -0
- package/templates/docs/content/docs/index.md +14 -0
- package/templates/docs/content/pages/index.md +9 -0
- package/templates/docs/package.json +32 -0
- package/templates/docs/src/app.d.ts +35 -0
- package/templates/docs/src/app.html +12 -0
- package/templates/docs/src/lib/server/env.ts +3 -0
- package/templates/docs/src/routes/+layout.svelte +5 -0
- package/templates/docs/src/routes/+layout.ts +3 -0
- package/templates/docs/src/routes/+page.svelte +8 -0
- package/templates/docs/src/routes/+page.ts +12 -0
- package/templates/docs/src/routes/[...path]/+page.svelte +8 -0
- package/templates/docs/src/routes/[...path]/+page.ts +22 -0
- package/templates/docs/src/routes/api/ask/+server.ts +16 -0
- package/templates/docs/src/routes/api/search/+server.ts +13 -0
- package/templates/docs/src/routes/og/[...path]/+server.ts +26 -0
- package/templates/docs/src/routes/robots.txt/+server.ts +12 -0
- package/templates/docs/src/routes/sitemap.xml/+server.ts +13 -0
- package/templates/docs/static/favicon.svg +6 -0
- package/templates/docs/svedocs.config.ts +12 -0
- package/templates/docs/svelte.config.js +18 -0
- package/templates/docs/tsconfig.json +7 -0
- package/templates/docs/vite.config.ts +9 -0
- package/templates/minimal/README.md +12 -0
- package/templates/minimal/content/docs/index.md +8 -0
- package/templates/minimal/content/pages/index.md +9 -0
- package/templates/minimal/package.json +32 -0
- package/templates/minimal/src/app.d.ts +35 -0
- package/templates/minimal/src/app.html +12 -0
- package/templates/minimal/src/routes/+layout.svelte +5 -0
- package/templates/minimal/src/routes/+layout.ts +3 -0
- package/templates/minimal/src/routes/+page.svelte +8 -0
- package/templates/minimal/src/routes/+page.ts +12 -0
- package/templates/minimal/src/routes/[...path]/+page.svelte +8 -0
- package/templates/minimal/src/routes/[...path]/+page.ts +22 -0
- package/templates/minimal/static/favicon.svg +6 -0
- package/templates/minimal/svedocs.config.ts +10 -0
- package/templates/minimal/svelte.config.js +18 -0
- package/templates/minimal/tsconfig.json +7 -0
- package/templates/minimal/vite.config.ts +9 -0
package/LICENSE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# svedocs-cli
|
|
2
|
+
|
|
3
|
+
CLI package for `svedocs` and `create-svedocs`.
|
|
4
|
+
|
|
5
|
+
`pnpm create svedocs` and `npm create svedocs@latest` are provided by the thin `create-svedocs` compatibility package, which delegates to this package.
|
|
6
|
+
|
|
7
|
+
## Commands
|
|
8
|
+
|
|
9
|
+
- `create-svedocs [dir] --template minimal|docs|cloudflare`
|
|
10
|
+
- `create-svedocs [dir] --package-manager auto|pnpm|npm|yarn|bun --install`
|
|
11
|
+
- `svedocs create [dir] --template minimal|docs|cloudflare`
|
|
12
|
+
- `svedocs dev`
|
|
13
|
+
- `svedocs build --mode edge|static|spa`
|
|
14
|
+
- `svedocs ssg`
|
|
15
|
+
- `svedocs preview`
|
|
16
|
+
- `svedocs check`
|
|
17
|
+
- `svedocs check --strict --external-links --no-assets --translations --package`
|
|
18
|
+
- `svedocs check --config ./svedocs.config.ts`
|
|
19
|
+
- `svedocs index --format json|jsonl --out search.json`
|
|
20
|
+
- `svedocs index --provider cloudflare-ai-search --dry-run`
|
|
21
|
+
- `svedocs index --provider cloudflare-ai-search --strategy replace --existing stale-id --delete manual-id`
|
|
22
|
+
- `svedocs og --format svg|png --out static/og`
|
|
23
|
+
- `svedocs og --renderer satori --font ./Inter-Regular.ttf --format png`
|
|
24
|
+
- `svedocs deploy cloudflare --write`
|
|
25
|
+
|
|
26
|
+
The CLI loads `svedocs.config.ts`, `svedocs.config.mts`, `svedocs.config.js`, or `svedocs.config.mjs` before running content-aware commands.
|