@writedocs/generator 0.13.0 → 0.13.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@writedocs/generator",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "Static site generator for docs — a writedocs.json + MDX folder in, a static site out.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -83,11 +83,11 @@
83
83
  "react-dom": "19.2.8",
84
84
  "rehype-katex": "7.0.1",
85
85
  "remark-math": "6.0.0",
86
- "rolldown": "1.2.4",
86
+ "rolldown": "1.2.14",
87
87
  "satori": "0.44.0",
88
88
  "shiki": "4.4.3",
89
89
  "tailwindcss": "4.3.3",
90
- "vite": "8.2.1",
90
+ "vite": "8.3.4",
91
91
  "zod": "4.4.3"
92
92
  },
93
93
  "engines": {
@@ -96,4 +96,4 @@
96
96
  "devDependencies": {
97
97
  "esbuild": "0.28.2"
98
98
  }
99
- }
99
+ }
@@ -1,28 +1,40 @@
1
- /* Wires Tailwind's utility classes into every writedocs build. Nothing in
2
- writedocs' own components (BaseLayout, NavTree, Sidebar, Card, etc.)
3
- uses Tailwind - they keep their existing scoped <style> blocks built
4
- on the --wd-* CSS variables, since those already support per-site
5
- writedocs.json theming (colors, dark mode) at render time. This import
6
- just makes Tailwind's utilities available for custom/future content,
7
- e.g. hand-authored MDX.
8
-
9
- Deliberately importing theme + utilities only, NOT the full
10
- "tailwindcss" entrypoint - that also pulls in Tailwind's preflight
11
- (a browser-default CSS reset), which sets h1-h6's font-size/
12
- font-weight to `inherit`. MDX content headings here rely on the
13
- browser's own default heading styles (nothing in this codebase sets
14
- them explicitly), so preflight was silently collapsing every
15
- heading down to plain paragraph text. Skipping it keeps utility
16
- classes available with zero effect on existing unstyled elements. */
17
- @import "tailwindcss/theme.css";
18
- @import "tailwindcss/utilities.css";
19
-
20
- /* Tailwind's `dark:` variant follows the site's own theme toggle
21
- ([data-theme="dark"] on <html>, set by BaseLayout.astro), not the OS
22
- setting it defaults to - otherwise Mintlify-style light/dark image
23
- pairs (className="block dark:hidden" / "hidden dark:block") show the
24
- wrong one whenever the reader's toggle and their OS disagree. The
25
- site's content directory is added as a Tailwind source at build time
26
- by astro.config.mjs's contentTailwindSource() plugin, since it lives
27
- outside this package where Tailwind looks by default. */
28
- @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
1
+ /* Wires Tailwind's utility classes into every writedocs build. Nothing in
2
+ writedocs' own components (BaseLayout, NavTree, Sidebar, Card, etc.)
3
+ uses Tailwind - they keep their existing scoped <style> blocks built
4
+ on the --wd-* CSS variables, since those already support per-site
5
+ writedocs.json theming (colors, dark mode) at render time. This import
6
+ just makes Tailwind's utilities available for custom/future content,
7
+ e.g. hand-authored MDX.
8
+
9
+ Deliberately importing theme + utilities only, NOT the full
10
+ "tailwindcss" entrypoint - that also pulls in Tailwind's preflight
11
+ (a browser-default CSS reset), which sets h1-h6's font-size/
12
+ font-weight to `inherit`. MDX content headings here rely on the
13
+ browser's own default heading styles (nothing in this codebase sets
14
+ them explicitly), so preflight was silently collapsing every
15
+ heading down to plain paragraph text. Skipping it keeps utility
16
+ classes available with zero effect on existing unstyled elements. */
17
+ @import "tailwindcss/theme.css";
18
+ @import "tailwindcss/utilities.css";
19
+
20
+ /* Where Tailwind looks for class names: it scans this package's folder (the
21
+ Vite root). It skips node_modules folders - except when the folder it
22
+ scans is itself inside one, and an installed writedocs always is
23
+ (.../node_modules/@writedocs/generator). With `npm install -g`, the build
24
+ platform's own install, the dependencies sit in that folder: every build
25
+ read all ~27,000 files of node_modules - ~6 s of CPU and, on a cold disk,
26
+ most of a small site's build - and the stylesheet got ~600 rules for
27
+ words that only appear in those files. This skips them in every install,
28
+ as a checkout of this repo always did. The path is from this file:
29
+ ../../ is the package's folder. */
30
+ @source not "../../node_modules";
31
+
32
+ /* Tailwind's `dark:` variant follows the site's own theme toggle
33
+ ([data-theme="dark"] on <html>, set by BaseLayout.astro), not the OS
34
+ setting it defaults to - otherwise Mintlify-style light/dark image
35
+ pairs (className="block dark:hidden" / "hidden dark:block") show the
36
+ wrong one whenever the reader's toggle and their OS disagree. The
37
+ site's content directory is added as a Tailwind source at build time
38
+ by astro.config.mjs's contentTailwindSource() plugin, since it lives
39
+ outside this package where Tailwind looks by default. */
40
+ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));