Commit Graph
294 Commits
Author SHA1 Message Date
zeekay 084b847d33 rebrand: complete white-label — all packages @hanzo/docs-* (one brand)
Finish the fumadocs→Hanzo Docs rebrand: rename the remaining fuma-named
workspace packages and every reference so the framework is uniformly
@hanzo/docs-*. One brand, no Fuma in package names or product surface.

Package renames (name field + all refs: deps, imports, CSS @import,
configs, .changeset, next/vite build config):
  fumadocs-core        → @hanzo/docs-core
  fumadocs-mdx         → @hanzo/docs-mdx
  fumadocs-ui          → @hanzo/docs-ui          (packages/radix-ui)
  fumadocs-openapi     → @hanzo/docs-openapi
  fumadocs-preview     → @hanzo/docs-preview
  @fumadocs/base-ui    → @hanzo/docs-base-ui
  @fumadocs/basehub    → @hanzo/docs-basehub
  @fumadocs/language   → @hanzo/docs-language
  @fumadocs/local-md   → @hanzo/docs-local-md
  @fumadocs/sanity     → @hanzo/docs-sanity
  @fumadocs/shadcn     → @hanzo/docs-shadcn
  @fumadocs/vite       → @hanzo/docs-vite
  @fumari/stf          → @hanzo/docs-stf
  create-fumadocs-app  → @hanzo/create-docs
  create-fumadocs-versions → @hanzo/docs-create-versions

Stale @fumadocs/{cli,story,tailwind,mdx-remote,...} references collapsed to
their existing @hanzo/docs-* canonical packages (no dup created).

De-branded product strings: Fumadocs/Fuma prose → Hanzo Docs/Hanzo; site
branding, CLI output, doc copy, AI-assistant name, metadata. URLs
fumadocs.dev → docs.hanzo.ai, repo fuma-nama/fumadocs → hanzoai/docs.
Filesystem renames: packages/python/fumapy → hanzodocs_py, preview config,
what-is-fumadocs.mdx → what-is-hanzo-docs.mdx, api/fumadocs-ui route.

KEPT (real external npm deps / attribution — NOT renamed):
  fuma-cli, fuma-content, @fumari/json-schema-ts (published upstream pkgs),
  typesense-/trieve-fumadocs-adapter (3rd-party search adapters),
  LICENSE "Copyright (c) 2023 Fuma" (OSS attribution, all 7 LICENSE files
  untouched), CHANGELOG.md history (accurate release records, left as-is).

Build: node 24, pnpm install clean; all 4 target apps next build GREEN
(spec, gui-docs, zen-docs, base-docs) + full package closure (18/18 turbo).
Gate: zero @hanzo-package fumadocs-/@fumadocs/ references remain.
2026-06-24 23:21:42 -07:00
zeekay 20a125303a fix(docs): repair fumadocs i18n context + page-tree $ref + docs registry/config wiring
Unblocks app-build-green for the content-docs apps (spec, gui-docs, zen-docs,
base-docs) and advances the docs registry/config app integration.

Root causes (upstream-merge artifacts from the 16.x restructure), with the
authoritative fix matched to upstream [email protected]:

- packages/{base-ui,radix-ui}/src/contexts/i18n.tsx: file was partially
  overwritten with an older shape — it referenced `defaultTranslations`,
  `use`, `renderTranslation`, `TranslationValue`, `TranslationObject`
  without importing/defining any of them, and redeclared a stale local
  `Translations`. Restored the upstream 16.9.3 context: import the i18n
  primitives from `fumadocs-core/i18n` + `@/i18n`, use React `use`. This was
  the `ReferenceError: defaultTranslations is not defined` prerender crash.

- packages/core/src/source/page-tree/builder.ts: item `$ref` was emitted as
  an object `{ file: path }`, violating `PageTree.Item.$ref?: string` and
  breaking the sort (`aT.localeCompare` on an object → `c.localeCompare is
  not a function`). Restored upstream string `$ref: path`.

- packages/shared/registry.ts: `glob` was imported from `node:fs/promises`
  (an async generator → `await glob()` is non-iterable → `{} is not
  iterable`) and `Component` was double-imported. Restored upstream
  `import { glob } from 'tinyglobby'`.

- apps/docs registry codegen aligned to the real `@hanzo/docs-cli/build`
  (=`fuma-cli/compiler`) API: `components/registry/index.ts` split the
  merged duplicate `export const registry` back into `compileOptions` +
  `registry` (restoring the dropped `baseUi`/`sanity` registry imports);
  `scripts/build-registry.ts` uses `compile({ root, ...compileOptions })` +
  `writeRegistry` instead of a non-existent `RegistryCompiler`/
  `combineRegistry`/`writeDocsRegistry` surface. Restored the dropped
  `lib/inkeep/inkeep-qa-schema.ts` and declared the inkeep files in the
  `ai/hanzo` component.

- apps/docs/next.config.mts: ESM `__dirname` shim via
  `fileURLToPath(import.meta.url)`; removed orphaned `createNextStory()`
  dead line; declared the `@hanzo/docs` workspace dep the config imports.

- apps/docs/package.json build:pre/post/lint run via `bun` (resolves `@/`
  tsconfig aliases) to match every other app — `node` cannot resolve `@/`.

- apps/zen-docs/[[...slug]]/page.tsx: reuse the canonical `getMDXComponents()`
  factory instead of an inline components map whose `next/dynamic` wrappers
  produced an over-specific `ComponentType` incompatible with
  `NestedMDXComponents`.

Verified `next build` GREEN (exit 0, full static gen): spec 245/245,
gui-docs 103/103, zen-docs 129/129, base-docs 19/19. 29/29 packages build
green (fumadocs-preview leaf excluded). The `docs` registry/demo app remains
blocked only on external `@hanzo/iam`/`@hanzo/logo` packages not present in
this tree (the in-flight subject of this branch).
2026-06-24 18:50:54 -07:00
zeekay bb90824285 fix(docs): normalize phantom workspace package names — monorepo installs again
The fumadocs-fork rebrand left ~13 apps + examples referencing packages under
names that don't exist in the workspace (in BOTH directions: some kept
fumadocs-*, some became @hanzo/docs-*). pnpm install failed outright. Mapped
every reference (deps + imports, 607 source + 61 package.json) to the package
that actually exists, by suffix:
  @hanzo/docs-{core,mdx,ui,base-ui} → fumadocs-{core,mdx,ui} / @fumadocs/base-ui
  @fumadocs/{story,cli,mdx-remote,tailwind} → @hanzo/docs-{story,cli,...}
  fumadocs-{docgen,epub,twoslash,typescript} → @hanzo/docs-{...}
  drop phantom eslint-config-custom
Guarded @hanzo/docs-mdx vs -mdx-remote. Also fixes a pre-existing cli bug
(createConfigSchema referenced undefined isSrc) that blocked the package build.

Verified: pnpm install resolves clean (46.8s, was broken); package dist
regenerates phantom-free from the corrected source (hanzo-docs 430→0). Full
app build-green is blocked only by a node v26 toolchain bug in fumadocs-mdx's
config loader (repo targets node >=24.14; CI node builds it).
2026-06-24 15:17:27 -07:00
zeekay e4d28a6e97 merge: upstream/main (preserve Hanzo brand, 334 commits)
# Conflicts:
#	apps/docs/app/(home)/sponsors/data.tsx
#	apps/docs/app/(home)/uwu.tsx
#	apps/docs/app/og/[...slug]/generate.tsx
#	apps/docs/app/static.json/route.ts
#	apps/docs/content/blog/customise-ui.mdx
#	apps/docs/content/blog/mdx-v10-summary.mdx
#	apps/docs/content/blog/openapi-v9.mdx
#	apps/docs/content/blog/v15.mdx
#	apps/docs/content/blog/v16-2.mdx
#	apps/docs/content/docs/(framework)/deploying/static.mdx
#	apps/docs/content/docs/(framework)/integrations/content/custom.mdx
#	apps/docs/content/docs/(framework)/integrations/openapi/generate-files.mdx
#	apps/docs/content/docs/(framework)/integrations/openapi/server.mdx
#	apps/docs/content/docs/(framework)/integrations/story/client.story.tsx
#	apps/docs/content/docs/(framework)/integrations/story/index.mdx
#	apps/docs/content/docs/(framework)/integrations/story/next.mdx
#	apps/docs/content/docs/(framework)/search/orama.mdx
#	apps/docs/content/docs/(framework)/what-is-fumadocs.mdx
#	apps/docs/content/docs/cli/index.mdx
#	apps/docs/content/docs/headless/mdx/headings.mdx
#	apps/docs/content/docs/headless/mdx/rehype-code.mdx
#	apps/docs/content/docs/headless/mdx/remark-image.mdx
#	apps/docs/content/docs/headless/source-api/plugins.mdx
#	apps/docs/content/docs/mdx/(integrations)/loader/node.mdx
#	apps/docs/content/docs/mdx/global.mdx
#	apps/docs/content/docs/mdx/index.mdx
#	apps/docs/content/docs/ui/components/banner.mdx
#	apps/docs/content/docs/ui/components/graph-view.mdx
#	apps/docs/content/docs/ui/layouts/flux.mdx
#	apps/docs/content/docs/ui/layouts/home-layout.mdx
#	apps/docs/content/docs/ui/layouts/root-provider.mdx
#	apps/docs/content/docs/ui/theme.mdx
#	apps/docs/eslint.config.mjs
#	apps/docs/scripts/preload.ts
#	apps/docs/scripts/update-orama-index.ts
#	examples/openapi/README.md
#	examples/openapi/scripts/generate-docs.ts
#	examples/react-router-i18n/scripts/preload.ts
#	examples/tanstack-start-story/src/components/callout/story-client.tsx
#	packages/base-ui/scripts/compile-inline.utils.ts
#	packages/cli/src/build/index.ts
#	packages/core/src/content/md/frontmatter.ts
#	packages/create-app/scripts/update-git-repo.js
#	packages/create-app/scripts/update-git-repo.sh
#	packages/mdx-runtime/eslint.config.mjs
#	packages/openapi/scripts/compile-inline.utils.ts
#	packages/openapi/src/server/create.ts
#	packages/openapi/src/ui/full.tsx
#	packages/openapi/src/utils/process-document.ts
#	packages/press/waku.config.ts
#	packages/radix-ui/scripts/compile-inline.utils.ts
2026-06-02 09:55:12 -07:00
zeekay 9f2bd33c02 merge: dev (aggressive theirs) 2026-06-01 18:31:05 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
756384341b Version Packages (#3324)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-29 19:49:33 +08:00
Fuma Nama c86e79f1a2 chore: bump deps 2026-05-29 18:22:54 +08:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
802186a87d Version Packages (#3314)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-28 15:43:53 +08:00
Fuma Nama c8005a43ec fix(shadcn): performance 2026-05-28 15:40:44 +08:00
Fuma Nama 1920a3ae92 feat(shadcn): support docgen for Shadcn UI 2026-05-27 19:27:48 +08:00
Fuma Nama 56a3828e2c fix(ui): consistent toc size when empty 2026-05-27 19:27:47 +08:00
Fuma Nama af323918b1 fix(ui): types 2026-05-27 19:27:47 +08:00
Fuma Nama 383f8e614f chore: bump deps 2026-05-26 19:49:18 +08:00
Fuma Nama 6b4ad47e39 fix(cli): lower eslint version 2026-05-23 22:15:27 +08:00
github-actions[bot]andGitHub 21d86340d8 Merge pull request #3301 from fuma-nama/changeset-release/dev
Version Packages
2026-05-23 20:16:25 +08:00
Fuma Nama ee906218a1 Version Packages 2026-05-21 16:19:39 +08:00
Fuma Nama f8ddb7804f fix(ui): strict types 2026-05-20 22:34:26 +08:00
Fuma Nama 3a965a5f42 feat(ui): add translations to all remaining components 2026-05-20 21:20:32 +08:00
Fuma Nama 78e1206139 docs: use new i18n API 2026-05-20 20:22:12 +08:00
Fuma Nama c0379664a4 Core: Introduce new translations API 2026-05-20 19:23:26 +08:00
Fuma NamaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
76aab15250 Version Packages (#3294)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-19 20:45:51 +08:00
Fuma Nama dfdc7179de Chore: bump deps 2026-05-18 19:44:58 +08:00
Fuma Nama cd7c5208cc chore: bump deps 2026-05-16 00:10:59 +08:00
Fuma NamaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ed1a875e3e Version Packages (#3280)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-14 17:24:21 +08:00
Fuma Nama 236d9f808a UI: improve default OG image 2026-05-13 18:14:37 +08:00
Fuma Nama 4c5099781a UI: encode storage keys 2026-05-13 17:02:01 +08:00
Fuma Nama ae34a7ab35 Chore: Bump deps 2026-05-12 18:51:40 +08:00
Fuma Nama 792571ca43 Refactor: pnpm v11 & remove bun 2026-05-12 18:50:36 +08:00
Fuma NamaandGitHub 332a0fca1e Merge pull request #3263 from fuma-nama/changeset-release/dev
Version Packages
2026-05-11 23:41:25 +08:00
Fuma Nama fe63d1fdf8 Version Packages 2026-05-10 13:48:19 +08:00
Fuma Nama f6b9ba23f8 Press: fix HMR 2026-05-09 21:30:38 +08:00
Fuma Nama 90f7affc23 MDX: Make source config optional in Vite plugin 2026-05-08 16:28:55 +08:00
Fuma Nama 984d2b56d5 Bump deps 2026-05-07 22:40:49 +08:00
Fuma NamaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
305586cad5 Version Packages (#3249)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-07 22:36:26 +08:00
Fuma Nama c1972a834d UI: Support copy ID in headings 2026-05-07 22:02:51 +08:00
Fuma Nama 4ab0e70831 UI: show ctrl for Linux machines 2026-05-07 21:33:01 +08:00
Fuma Nama 276996a9af Press: add AI integration 2026-05-06 21:40:27 +08:00
Fuma NamaandGitHub 9a549159f1 Merge pull request #3246 from fuma-nama/changeset-release/dev
Version Packages
2026-05-03 20:49:43 +08:00
Fuma Nama 51aad756ec fix 2026-05-03 20:48:07 +08:00
Fuma NamaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
7779490049 Version Packages (#3244)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-03 20:17:20 +08:00
Fuma Nama 3323774b55 UI: fix RTL layout for Clerk style 2026-05-03 19:05:14 +08:00
Fuma Nama dea21a9fb2 CLI: improve for Sanity registry 2026-05-02 22:23:17 +08:00
Fuma Nama cb998b0e6a Version Packages 2026-05-02 22:00:12 +08:00
Fuma Nama 4deac3b26c Update fuma-cli 2026-05-02 21:48:57 +08:00
Fuma Nama 1223d2fd7b Sanity: ship content types via regsitry 2026-05-02 21:43:17 +08:00
Fuma Nama 712498ac8a Chore: bump deps 2026-04-27 23:21:15 +08:00
Fuma NamaandGitHub cf3a94ac1c Merge pull request #3235 from fuma-nama/changeset-release/dev
Version Packages
2026-04-27 21:52:00 +08:00
Fuma Nama 86eebf1150 UI: relocate toc width 2026-04-26 00:20:08 +08:00
Fuma NamaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
f2da970f63 Version Packages (#3232)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-25 23:40:04 +08:00
Fuma Nama 8180bf3252 UI: Support new OG image design for Takumi 2026-04-25 23:08:02 +08:00