@alliance-droid/svelte-docs-system 0.1.0 → 0.1.3

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/dist/config.js CHANGED
@@ -7,7 +7,7 @@
7
7
  export const DEFAULT_CONFIG = {
8
8
  name: 'Documentation',
9
9
  docsRoute: '/docs',
10
- docsFolderPath: './docs',
10
+ docsFolderPath: './static/docs',
11
11
  basePath: '/docs',
12
12
  enableSearch: true,
13
13
  layout: 'default',
package/dist/plugin.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface DocFolder {
18
18
  order?: number;
19
19
  }
20
20
  export interface DocsPluginOptions {
21
- /** Path to docs folder relative to project root. Default: './docs' */
21
+ /** Path to docs folder relative to project root. Default: './static/docs' (SvelteKit serves static files at runtime) */
22
22
  docsPath?: string;
23
23
  /** Route where docs will be served. Default: '/documentation' */
24
24
  route?: string;
package/dist/plugin.js CHANGED
@@ -137,7 +137,7 @@ export const allDocs = ${JSON.stringify(allDocs, null, 2)};
137
137
  * Vite plugin for svelte-docs-system
138
138
  */
139
139
  export function svelteDocsPlugin(options = {}) {
140
- const docsPath = options.docsPath || './docs';
140
+ const docsPath = options.docsPath || './static/docs';
141
141
  const route = options.route || '/documentation';
142
142
  let root;
143
143
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alliance-droid/svelte-docs-system",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Drop-in documentation system for SvelteKit - just add markdown files",
6
6
  "main": "./dist/index.js",
@@ -36,6 +36,7 @@
36
36
  "@sveltejs/kit": "^2.0.0"
37
37
  },
38
38
  "dependencies": {
39
+ "gray-matter": "^4.0.3",
39
40
  "marked": "^17.0.1"
40
41
  },
41
42
  "devDependencies": {