Skip to content

Restore/add npm workspaces and simplify theme-deps install - #2645

Merged
chalin merged 8 commits into
docsy:mainfrom
chalin:chalin-m24-theme-wksp-2026-0529
May 30, 2026
Merged

chalin merged 8 commits into
docsy:mainfrom
chalin:chalin-m24-theme-wksp-2026-0529

Conversation

@chalin

@chalin chalin commented May 30, 2026

Copy link
Copy Markdown
Collaborator
  • Contributes to Finalize monorepo setup - 26Q2 #2617
  • Restores docsy.dev as a workspace (following initial TOF work)
  • Adds theme workspace
  • Simplifies CI, Netlify, make-site.sh, _gen-chroma-style.sh, and getHugoModules to a single root npm install plus npx hugo.
  • Makes theme/package.json the canonical manifest for Bootstrap and Font Awesome; removes root dependencies and scripts/sync-theme-deps.mjs (and its tests).
  • Adds install:theme-deps and wires it through repo _postinstall and docsy.dev postinstall so theme/node_modules/ exists for Hugo mounts.
  • Drops install:all, the docsy.dev _install-theme-deps install-links hack, and scripts/run-hugo.mjs; relies on workspace hoisting for hugo-extended again.
  • Updates tests/smoke.test.mjs to use root npm install and the cloned repo’s postinstall for the non-module path.

- Restores npm workspace for `docsy.dev`
- Adds `theme` workspace
- Makes `theme/package.json` the canonical manifest for Bootstrap and Font Awesome; removes root `dependencies` and `scripts/sync-theme-deps.mjs` (and its tests).
- Adds `install:theme-deps` and wires it through repo `_postinstall` and `docsy.dev` postinstall so `theme/node_modules/` exists for Hugo mounts.
- Drops `install:all`, the `docsy.dev` `_install-theme-deps` install-links hack, and `scripts/run-hugo.mjs`; relies on workspace hoisting for `hugo-extended` again.
- Simplifies CI, Netlify, `make-site.sh`, `_gen-chroma-style.sh`, and `getHugoModules` to a single root `npm install` plus `npx hugo`.
- Updates `tests/smoke.test.mjs` to use root `npm install` and the cloned repo’s `postinstall` for the non-module path.
@chalin chalin added this to the 0.16.0 milestone May 30, 2026
@chalin
chalin merged commit 94f9414 into docsy:main May 30, 2026
15 checks passed
@chalin
chalin deleted the chalin-m24-theme-wksp-2026-0529 branch May 30, 2026 18:14
@chalin chalin mentioned this pull request May 30, 2026
8 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant