mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
chore: complete fumadocs -> @hanzo/docs rebrand
- Rename all packages from fumadocs-* to @hanzo/docs-* - Update all imports across apps, examples, and packages - Update documentation and content references - Sync lockfile with new package names
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { HomeLayout } from 'fumadocs-ui/layouts/home';
|
||||
import { HomeLayout } from '@hanzo/docs/ui/layouts/home';
|
||||
import { baseOptions } from '@/lib/layout.shared';
|
||||
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { source } from '@/lib/source';
|
||||
import { createFromSource } from 'fumadocs-core/search/server';
|
||||
import { createFromSource } from '@hanzo/docs/core/search/server';
|
||||
|
||||
export const { GET } = createFromSource(source);
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
DocsBody,
|
||||
DocsDescription,
|
||||
DocsTitle,
|
||||
} from 'fumadocs-ui/layouts/docs/page';
|
||||
} from '@hanzo/docs/ui/layouts/docs/page';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { createRelativeLink } from 'fumadocs-ui/mdx';
|
||||
import { createRelativeLink } from '@hanzo/docs/ui/mdx';
|
||||
import { getMDXComponents } from '@/mdx-components';
|
||||
|
||||
export default async function Page(props: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
|
||||
import { DocsLayout } from '@hanzo/docs/ui/layouts/docs';
|
||||
import type { ReactNode } from 'react';
|
||||
import { baseOptions } from '@/lib/layout.shared';
|
||||
import { source } from '@/lib/source';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import 'tailwindcss';
|
||||
@import 'fumadocs-ui/css/neutral.css';
|
||||
@import 'fumadocs-ui/css/preset.css';
|
||||
@import 'fumadocs-python/preset.css';
|
||||
@import '@hanzo/docs-ui/css/neutral.css';
|
||||
@import '@hanzo/docs-ui/css/preset.css';
|
||||
@import '@hanzo/docs/python/preset.css';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import './global.css';
|
||||
import { RootProvider } from 'fumadocs-ui/provider/next';
|
||||
import { RootProvider } from '@hanzo/docs/ui/provider/next';
|
||||
import { Inter } from 'next/font/google';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
|
||||
import type { BaseLayoutProps } from '@hanzo/docs/ui/layouts/shared';
|
||||
|
||||
export function baseOptions(): BaseLayoutProps {
|
||||
return {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { docs } from 'fumadocs-mdx:collections/server';
|
||||
import { loader } from 'fumadocs-core/source';
|
||||
import { docs } from '@hanzo/docs/mdx:collections/server';
|
||||
import { loader } from '@hanzo/docs/core/source';
|
||||
|
||||
// See https://fumadocs.dev/docs/headless/source-api for more info
|
||||
export const source = loader({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
||||
import defaultMdxComponents from '@hanzo/docs/ui/mdx';
|
||||
import type { MDXComponents } from 'mdx/types';
|
||||
import * as Python from 'fumadocs-python/components';
|
||||
import * as Python from '@hanzo/docs/python/components';
|
||||
|
||||
// use this function to get MDX components, you will need it for rendering MDX
|
||||
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createMDX } from 'fumadocs-mdx/next';
|
||||
import { createMDX } from '@hanzo/docs/mdx/next';
|
||||
|
||||
const withMDX = createMDX();
|
||||
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
"dev": "next dev",
|
||||
"start": "next start",
|
||||
"build:docs": "node ./scripts/generate-docs.mjs",
|
||||
"python:generate": "pip3 install ./node_modules/fumadocs-python && fumapy-generate httpx",
|
||||
"types:check": "fumadocs-mdx && tsc --noEmit"
|
||||
"python:generate": "pip3 install ./node_modules/@hanzo/docs-python && fumapy-generate httpx",
|
||||
"types:check": "hanzo-docs && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-python": "workspace:*",
|
||||
"fumadocs-ui": "workspace:*",
|
||||
"@hanzo/docs": "workspace:*",
|
||||
"@hanzo/docs-core": "workspace:*",
|
||||
"@hanzo/docs-mdx": "workspace:*",
|
||||
"@hanzo/docs-python": "workspace:*",
|
||||
"@hanzo/docs-ui": "workspace:*",
|
||||
"next": "16.0.10",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { rimraf } from 'rimraf';
|
||||
import * as Python from 'fumadocs-python';
|
||||
import * as Python from '@hanzo/docs/python';
|
||||
import * as fs from 'node:fs/promises';
|
||||
|
||||
async function generate() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
|
||||
import { defineConfig, defineDocs } from '@hanzo/docs/mdx/config';
|
||||
|
||||
// Options: https://fumadocs.dev/docs/mdx/collections#define-docs
|
||||
export const docs = defineDocs({
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"paths": {
|
||||
"fumadocs-mdx:collections/*": [".source/*"],
|
||||
"@hanzo/docs/mdx:collections/*": [".source/*"],
|
||||
"@/*": ["./*"]
|
||||
},
|
||||
"plugins": [
|
||||
|
||||
Reference in New Issue
Block a user