boltdocs 1.0.4 → 1.3.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.
Files changed (41) hide show
  1. package/dist/{SearchDialog-R36WKAQ7.mjs → SearchDialog-5EDRACEG.mjs} +1 -1
  2. package/dist/{SearchDialog-PYF3QMYG.css → SearchDialog-X57WPTNN.css} +54 -126
  3. package/dist/cache-EHR7SXRU.mjs +12 -0
  4. package/dist/chunk-GSYECEZY.mjs +381 -0
  5. package/dist/{chunk-TWSRXUFF.mjs → chunk-NS7WHDYA.mjs} +229 -418
  6. package/dist/client/index.css +54 -126
  7. package/dist/client/index.d.mts +5 -4
  8. package/dist/client/index.d.ts +5 -4
  9. package/dist/client/index.js +555 -580
  10. package/dist/client/index.mjs +304 -16
  11. package/dist/client/ssr.css +54 -126
  12. package/dist/client/ssr.js +257 -580
  13. package/dist/client/ssr.mjs +1 -1
  14. package/dist/{config-D2XmHJYe.d.mts → config-BD5ZHz15.d.mts} +7 -0
  15. package/dist/{config-D2XmHJYe.d.ts → config-BD5ZHz15.d.ts} +7 -0
  16. package/dist/node/index.d.mts +2 -2
  17. package/dist/node/index.d.ts +2 -2
  18. package/dist/node/index.js +457 -118
  19. package/dist/node/index.mjs +93 -136
  20. package/package.json +2 -2
  21. package/src/client/app/index.tsx +25 -54
  22. package/src/client/theme/components/mdx/mdx-components.css +39 -20
  23. package/src/client/theme/styles/markdown.css +1 -1
  24. package/src/client/theme/styles.css +0 -1
  25. package/src/client/theme/ui/Layout/Layout.tsx +2 -13
  26. package/src/client/theme/ui/Layout/responsive.css +0 -4
  27. package/src/client/theme/ui/Link/Link.tsx +52 -0
  28. package/src/client/theme/ui/NotFound/NotFound.tsx +0 -1
  29. package/src/client/theme/ui/OnThisPage/OnThisPage.tsx +45 -2
  30. package/src/client/theme/ui/Sidebar/Sidebar.tsx +44 -40
  31. package/src/client/theme/ui/Sidebar/sidebar.css +25 -58
  32. package/src/node/cache.ts +360 -46
  33. package/src/node/config.ts +7 -0
  34. package/src/node/mdx.ts +83 -4
  35. package/src/node/plugin/index.ts +3 -0
  36. package/src/node/routes/cache.ts +5 -1
  37. package/src/node/routes/index.ts +17 -2
  38. package/src/node/ssg/index.ts +4 -0
  39. package/dist/Playground-B2FA34BC.mjs +0 -6
  40. package/dist/chunk-WPT4MWTQ.mjs +0 -89
  41. package/src/client/theme/styles/home.css +0 -60
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AppShell
3
- } from "../chunk-TWSRXUFF.mjs";
3
+ } from "../chunk-NS7WHDYA.mjs";
4
4
 
5
5
  // src/client/ssr.tsx
6
6
  import React from "react";
@@ -65,6 +65,13 @@ interface BoltdocsThemeConfig {
65
65
  className?: string;
66
66
  style?: any;
67
67
  };
68
+ /**
69
+ * The syntax highlighting theme for code blocks.
70
+ * Supports any Shiki theme name (e.g., 'github-dark', 'one-dark-pro', 'aurora-x').
71
+ * Can also be an object for multiple themes (e.g., { light: 'github-light', dark: 'github-dark' }).
72
+ * Default: 'one-dark-pro'
73
+ */
74
+ codeTheme?: string | Record<string, string>;
68
75
  }
69
76
  /**
70
77
  * Configuration for internationalization (i18n).
@@ -65,6 +65,13 @@ interface BoltdocsThemeConfig {
65
65
  className?: string;
66
66
  style?: any;
67
67
  };
68
+ /**
69
+ * The syntax highlighting theme for code blocks.
70
+ * Supports any Shiki theme name (e.g., 'github-dark', 'one-dark-pro', 'aurora-x').
71
+ * Can also be an object for multiple themes (e.g., { light: 'github-light', dark: 'github-dark' }).
72
+ * Default: 'one-dark-pro'
73
+ */
74
+ codeTheme?: string | Record<string, string>;
68
75
  }
69
76
  /**
70
77
  * Configuration for internationalization (i18n).
@@ -1,6 +1,6 @@
1
1
  import { Plugin } from 'vite';
2
- import { B as BoltdocsConfig } from '../config-D2XmHJYe.mjs';
3
- export { a as BoltdocsThemeConfig } from '../config-D2XmHJYe.mjs';
2
+ import { B as BoltdocsConfig } from '../config-BD5ZHz15.mjs';
3
+ export { a as BoltdocsThemeConfig } from '../config-BD5ZHz15.mjs';
4
4
 
5
5
  /**
6
6
  * Configuration options specifically for the Boltdocs Vite plugin.
@@ -1,6 +1,6 @@
1
1
  import { Plugin } from 'vite';
2
- import { B as BoltdocsConfig } from '../config-D2XmHJYe.js';
3
- export { a as BoltdocsThemeConfig } from '../config-D2XmHJYe.js';
2
+ import { B as BoltdocsConfig } from '../config-BD5ZHz15.js';
3
+ export { a as BoltdocsThemeConfig } from '../config-BD5ZHz15.js';
4
4
 
5
5
  /**
6
6
  * Configuration options specifically for the Boltdocs Vite plugin.