create-svelte-docsmith 0.3.3 → 0.4.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/package.json +7 -2
- package/template/package.json +12 -8
- package/template/src/routes/+error.svelte +1 -1
- package/template/src/routes/+page.svelte +1 -1
- package/template/src/routes/docs/+layout.svelte +1 -1
- package/template/src/routes/llms-full.txt/+server.ts +1 -1
- package/template/src/routes/llms.txt/+server.ts +1 -1
- package/template/src/routes/sitemap.xml/+server.ts +1 -1
- package/template/tsconfig.json +4 -10
- package/template/vite.config.ts +16 -4
- package/template/svelte.config.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-svelte-docsmith",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Scaffold a documentation site powered by Svelte DocSmith.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"node": ">=18"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@clack/prompts": "^1.
|
|
40
|
+
"@clack/prompts": "^1.8.1"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"test": "node --test test/**/*.test.js",
|
|
44
|
+
"test:unit": "node --test test/**/*.test.js",
|
|
45
|
+
"test:coverage": "node --test test/**/*.test.js"
|
|
41
46
|
}
|
|
42
47
|
}
|
package/template/package.json
CHANGED
|
@@ -7,20 +7,24 @@
|
|
|
7
7
|
"dev": "vite dev",
|
|
8
8
|
"build": "vite build",
|
|
9
9
|
"preview": "vite preview",
|
|
10
|
+
"prepare": "svelte-kit sync || echo ''",
|
|
10
11
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
|
-
"svelte-docsmith": "^0.
|
|
14
|
+
"svelte-docsmith": "^0.14.0"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@sveltejs/adapter-auto": "^
|
|
17
|
-
"@sveltejs/kit": "^
|
|
18
|
-
"@sveltejs/vite-plugin-svelte": "^7.
|
|
17
|
+
"@sveltejs/adapter-auto": "^8.0.0",
|
|
18
|
+
"@sveltejs/kit": "^3.0.0",
|
|
19
|
+
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
19
20
|
"@tailwindcss/vite": "^4.0.0",
|
|
20
|
-
"svelte": "^5.
|
|
21
|
-
"svelte-check": "^4.
|
|
21
|
+
"svelte": "^5.57.1",
|
|
22
|
+
"svelte-check": "^4.7.0",
|
|
22
23
|
"tailwindcss": "^4.0.0",
|
|
23
|
-
"typescript": "^
|
|
24
|
-
"vite": "^8.0.
|
|
24
|
+
"typescript": "^6.0.0",
|
|
25
|
+
"vite": "^8.0.12"
|
|
26
|
+
},
|
|
27
|
+
"imports": {
|
|
28
|
+
"#lib/*": "./src/lib/*"
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { docs } from 'svelte-docsmith/content';
|
|
3
3
|
import { DocsShell, Hero, FeatureGrid, Feature, CTA, Action } from 'svelte-docsmith';
|
|
4
|
-
import { siteConfig } from '
|
|
4
|
+
import { siteConfig } from '#lib/site-config.ts';
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<!--
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { docs } from 'svelte-docsmith/content';
|
|
3
3
|
import { DocsShell } from 'svelte-docsmith';
|
|
4
|
-
import { siteConfig } from '
|
|
4
|
+
import { siteConfig } from '#lib/site-config.ts';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
|
|
7
7
|
const { children }: { children: Snippet } = $props();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { docs } from 'svelte-docsmith/llms';
|
|
2
2
|
import { versions } from 'svelte-docsmith/content';
|
|
3
3
|
import { generateLlmsFullTxt, currentOnly } from 'svelte-docsmith';
|
|
4
|
-
import { siteConfig } from '
|
|
4
|
+
import { siteConfig } from '#lib/site-config.ts';
|
|
5
5
|
|
|
6
6
|
export const prerender = true;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { docs } from 'svelte-docsmith/llms';
|
|
2
2
|
import { versions } from 'svelte-docsmith/content';
|
|
3
3
|
import { generateLlmsTxt, currentOnly } from 'svelte-docsmith';
|
|
4
|
-
import { siteConfig } from '
|
|
4
|
+
import { siteConfig } from '#lib/site-config.ts';
|
|
5
5
|
|
|
6
6
|
export const prerender = true;
|
|
7
7
|
|
package/template/tsconfig.json
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "
|
|
2
|
+
"extends": "$app/tsconfig",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"checkJs": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
4
|
"sourceMap": true,
|
|
11
|
-
"strict": true
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
"strict": true
|
|
6
|
+
},
|
|
7
|
+
"include": ["src", "vite.config.ts"]
|
|
14
8
|
}
|
package/template/vite.config.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import adapter from '@sveltejs/adapter-auto';
|
|
2
2
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
3
|
+
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
4
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
3
5
|
import { defineConfig } from 'vite';
|
|
4
6
|
import { docsmith } from 'svelte-docsmith/vite';
|
|
7
|
+
import { docsmith as markdown } from 'svelte-docsmith/preprocess';
|
|
5
8
|
|
|
6
9
|
export default defineConfig({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
plugins: [
|
|
11
|
+
// `docsmith()` builds the content + search indexes and powers LiveExample.
|
|
12
|
+
// It must come before sveltekit().
|
|
13
|
+
docsmith(),
|
|
14
|
+
tailwindcss(),
|
|
15
|
+
sveltekit({
|
|
16
|
+
// `.md` files are compiled as routes by the DocSmith preprocessor.
|
|
17
|
+
extensions: ['.svelte', '.md'],
|
|
18
|
+
preprocess: [vitePreprocess(), markdown()],
|
|
19
|
+
adapter: adapter()
|
|
20
|
+
})
|
|
21
|
+
]
|
|
10
22
|
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import adapter from '@sveltejs/adapter-auto';
|
|
2
|
-
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
3
|
-
import { docsmith } from 'svelte-docsmith/preprocess';
|
|
4
|
-
|
|
5
|
-
/** @type {import('@sveltejs/kit').Config} */
|
|
6
|
-
const config = {
|
|
7
|
-
// `.md` files are compiled as routes by the DocSmith preprocessor.
|
|
8
|
-
extensions: ['.svelte', '.md'],
|
|
9
|
-
preprocess: [vitePreprocess(), docsmith()],
|
|
10
|
-
kit: {
|
|
11
|
-
adapter: adapter()
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default config;
|