@chassis-ui/docs 0.5.1 → 0.6.0-next.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/CHANGELOG.md +256 -0
- package/README.md +227 -71
- package/UPGRADING.md +243 -0
- package/index.ts +7 -1
- package/package.json +31 -8
- package/src/components/DocsSidebar.astro +9 -9
- package/src/components/shortcodes/Callout.astro +4 -4
- package/src/components/shortcodes/Code.astro +3 -3
- package/src/components/shortcodes/JsDocs.astro +6 -7
- package/src/components/shortcodes/ScssDocs.astro +7 -9
- package/src/components/shortcodes/ScssDocsSimple.astro +6 -7
- package/src/integration.ts +271 -0
- package/src/js/clipboard.ts +65 -0
- package/src/layouts/BaseLayout.astro +7 -9
- package/src/layouts/DocsLayout.astro +11 -13
- package/src/layouts/RedirectLayout.astro +1 -1
- package/src/layouts/head/Analytics.astro +6 -4
- package/src/layouts/head/Head.astro +2 -2
- package/src/layouts/head/Social.astro +5 -6
- package/src/layouts/header/Navigation.astro +28 -19
- package/src/libs/config.ts +138 -0
- package/src/libs/docs-path.ts +12 -0
- package/src/libs/highlight.ts +4 -44
- package/src/libs/paths.ts +160 -0
- package/src/libs/remark.ts +184 -0
- package/src/libs/schema.ts +211 -0
- package/src/libs/shortcodes.ts +86 -71
- package/src/libs/snippet.ts +21 -0
- package/src/libs/source.ts +17 -40
- package/src/libs/toc.ts +3 -1
- package/src/scss/_vars.scss +4 -1
- package/src/site.ts +150 -0
- package/virtual.d.ts +25 -0
package/virtual.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Modules that the integration provides. A site gets these declarations from the
|
|
2
|
+
// integration. This file is for type-checking the package on its own.
|
|
3
|
+
|
|
4
|
+
declare module 'virtual:chassis-docs/config' {
|
|
5
|
+
const config: import('./src/libs/schema').ChassisConfig
|
|
6
|
+
export default config
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'virtual:chassis-docs/sidebar' {
|
|
10
|
+
const sidebar: import('./src/libs/schema').Sidebar
|
|
11
|
+
export default sidebar
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module 'virtual:chassis-docs/paths' {
|
|
15
|
+
/** The site's root. */
|
|
16
|
+
export const root: string
|
|
17
|
+
/** The site's `public` directory. */
|
|
18
|
+
export const publicDir: string
|
|
19
|
+
/** The directory that `file` props are relative to. */
|
|
20
|
+
export const sourceDir: string
|
|
21
|
+
/** The directory of `@chassis-ui/docs`. */
|
|
22
|
+
export const packageRoot: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module 'virtual:chassis-docs/styles' {}
|