@do11y/docs 0.0.1 → 0.0.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/cli.d.ts +1 -0
- package/dist/files.d.ts +4 -0
- package/dist/files.js +1 -1
- package/dist/html/html.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/plugin-options.d.ts +6 -0
- package/dist/plugins/markdown/markdown.d.ts +36 -0
- package/dist/plugins/plugins.d.ts +2 -0
- package/dist/plugins/routes/routes.d.ts +7 -0
- package/dist/plugins/sandbox/sandbox.d.ts +8 -0
- package/dist/plugins/site/site.d.ts +19 -0
- package/dist/plugins/ui/ui.d.ts +6 -0
- package/dist/vite-config.d.ts +2 -0
- package/package.json +6 -2
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/files.d.ts
ADDED
package/dist/files.js
CHANGED
|
@@ -3,6 +3,6 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { searchForWorkspaceRoot } from 'vite';
|
|
4
4
|
const require = createRequire(import.meta.url);
|
|
5
5
|
export const ui = join(dirname(require.resolve('@do11y/ui/package.json')));
|
|
6
|
-
export const root =
|
|
6
|
+
export const root = searchForWorkspaceRoot(process.cwd());
|
|
7
7
|
export const docs = join(root, 'docs');
|
|
8
8
|
export const plugins = join(docs, 'site', 'plugins.ts');
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type MarkdownSfcBlocks } from '@mdit-vue/plugin-sfc';
|
|
2
|
+
import type { PluginOptions, MarkdownItEnv as Env } from 'markdown-it-vue-meta';
|
|
3
|
+
import type { PluginSimple } from 'markdown-it';
|
|
4
|
+
import type { Plugin } from 'vite';
|
|
5
|
+
import type MarkdownIt from 'markdown-it';
|
|
6
|
+
export interface MarkdownPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Additional markdown-it setup.
|
|
9
|
+
*/
|
|
10
|
+
setup?: PluginSimple;
|
|
11
|
+
/**
|
|
12
|
+
* The highlight option for `markdown-it`.
|
|
13
|
+
*/
|
|
14
|
+
highlight?: (md: MarkdownIt, code: string, lang: string, attrs: string) => string;
|
|
15
|
+
/**
|
|
16
|
+
* The renderer option for `markdown-it-vue-meta`.
|
|
17
|
+
*/
|
|
18
|
+
metaRenderer?: PluginOptions['renderer'];
|
|
19
|
+
}
|
|
20
|
+
export interface MarkdownItEnv extends Env {
|
|
21
|
+
/**
|
|
22
|
+
* Blocks extracted by `@mdit-vue/plugin-sfc`.
|
|
23
|
+
*/
|
|
24
|
+
sfcBlocks?: MarkdownSfcBlocks;
|
|
25
|
+
/**
|
|
26
|
+
* Blocks extracted by `@mdit-vue/plugin-frontmatter`.
|
|
27
|
+
*/
|
|
28
|
+
frontmatter?: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Processes blocks with the lang set to `md` into HTML,
|
|
32
|
+
* and turns `.md` files into single file vue components
|
|
33
|
+
* - using `markdown-it`.
|
|
34
|
+
*/
|
|
35
|
+
declare const _default: (options?: MarkdownPluginOptions) => Plugin;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
import type { App, Component } from 'vue';
|
|
3
|
+
import type { Router } from 'vue-router';
|
|
4
|
+
export type Site = {
|
|
5
|
+
/**
|
|
6
|
+
* The main component for the site.
|
|
7
|
+
*/
|
|
8
|
+
Site: () => Promise<Component>;
|
|
9
|
+
/**
|
|
10
|
+
* Additional setup for the app.
|
|
11
|
+
*/
|
|
12
|
+
setup?(app: App, router: Router): void | Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Add ability to access the site options (`docs/site/index.ts`)
|
|
16
|
+
* through `do11y:site`.
|
|
17
|
+
*/
|
|
18
|
+
declare const _default: () => Plugin;
|
|
19
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@do11y/docs",
|
|
3
|
-
"
|
|
3
|
+
"description": "A very bare-bones tool to help document Vue components.",
|
|
4
|
+
"version": "0.0.3",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -15,7 +16,10 @@
|
|
|
15
16
|
"do11y": "./bin/bin.js"
|
|
16
17
|
},
|
|
17
18
|
"exports": {
|
|
18
|
-
".":
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
},
|
|
19
23
|
"./types": "./routes.d.ts"
|
|
20
24
|
},
|
|
21
25
|
"peerDependencies": {
|