mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
# 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
356 lines
7.4 KiB
TypeScript
356 lines
7.4 KiB
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import type { Registry } from '@hanzo/docs-cli/build';
|
|
import * as path from 'node:path';
|
|
import type { Registry } from 'fuma-cli/compiler';
|
|
import { commonComponents, findSlotComponents } from '../../shared/registry.ts';
|
|
|
|
const dir = path.join(path.dirname(fileURLToPath(import.meta.url)), '../src');
|
|
|
|
// in shadcn cli, the order of files matters when writing import paths on consumer's codebase
|
|
export const registry: Registry = {
|
|
name: 'fumadocs/base-ui',
|
|
dir,
|
|
tsconfigPath: '../tsconfig.json',
|
|
packageJson: '../package.json',
|
|
env: {
|
|
ui: '@hanzo/docs-base-ui',
|
|
},
|
|
onResolve(ref) {
|
|
return resolveExternal(ref, '@hanzo/docs-ui', dir) ?? ref;
|
|
},
|
|
components: [
|
|
...commonComponents,
|
|
...(await findSlotComponents(dir)),
|
|
{
|
|
name: 'layouts/sidebar',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/sidebar/base.tsx',
|
|
target: '<dir>/docs-sidebar/base.tsx',
|
|
},
|
|
{
|
|
type: 'components',
|
|
path: 'components/sidebar/page-tree.tsx',
|
|
target: '<dir>/docs-sidebar/page-tree.tsx',
|
|
},
|
|
{
|
|
type: 'components',
|
|
path: 'components/sidebar/link-item.tsx',
|
|
target: '<dir>/docs-sidebar/link-item.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'layouts/shared',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/shared/index.tsx',
|
|
target: '<dir>/shared/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/shared',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/shared/client.tsx',
|
|
target: '<dir>/shared/client.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/shared',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'layouts/docs',
|
|
files: [
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/docs/index.tsx',
|
|
target: '<dir>/docs/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/docs',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/docs/client.tsx',
|
|
target: '<dir>/docs/client.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/docs',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/docs/page/index.tsx',
|
|
target: '<dir>/docs/page/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/docs/page',
|
|
},
|
|
},
|
|
],
|
|
unlisted: true,
|
|
},
|
|
{
|
|
name: 'layouts/flux',
|
|
files: [
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/flux/index.tsx',
|
|
target: '<dir>/flux/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/flux',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/flux/page/index.tsx',
|
|
target: '<dir>/flux/page/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/flux/page',
|
|
},
|
|
},
|
|
],
|
|
unlisted: true,
|
|
},
|
|
{
|
|
name: 'layouts/notebook',
|
|
files: [
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/notebook/index.tsx',
|
|
target: '<dir>/notebook/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/notebook',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/notebook/client.tsx',
|
|
target: '<dir>/notebook/client.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/notebook',
|
|
},
|
|
},
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/notebook/page/index.tsx',
|
|
target: '<dir>/notebook/page/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/notebook/page',
|
|
},
|
|
},
|
|
],
|
|
unlisted: true,
|
|
},
|
|
{
|
|
name: 'layouts/home',
|
|
files: [
|
|
{
|
|
type: 'layout',
|
|
path: 'layouts/home/index.tsx',
|
|
target: '<dir>/home/index.tsx',
|
|
meta: {
|
|
preserveAs: 'layouts/home',
|
|
},
|
|
},
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/navigation-menu.tsx',
|
|
},
|
|
],
|
|
unlisted: true,
|
|
},
|
|
{
|
|
name: 'accordion',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/accordion.tsx',
|
|
},
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/accordion.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'github-info',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/github-info.tsx',
|
|
},
|
|
],
|
|
description: 'A card to display GitHub repo info',
|
|
},
|
|
{
|
|
name: 'banner',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/banner.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'callout',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/callout.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'card',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/card.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'codeblock',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/codeblock.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'files',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/files.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'heading',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/heading.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'image-zoom',
|
|
description: 'Zoomable Image',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/image-zoom.tsx',
|
|
},
|
|
{
|
|
type: 'css',
|
|
path: 'components/image-zoom.css',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'inline-toc',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/inline-toc.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'steps',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/steps.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'tabs',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/tabs.tsx',
|
|
},
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/tabs.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'type-table',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'components/type-table.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'button',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/button.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'popover',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/popover.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'scroll-area',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/scroll-area.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'collapsible',
|
|
unlisted: true,
|
|
files: [
|
|
{
|
|
type: 'ui',
|
|
path: 'components/ui/collapsible.tsx',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'ai/page-actions',
|
|
description: 'Common page actions',
|
|
files: [
|
|
{
|
|
type: 'components',
|
|
path: 'layouts/shared/page-actions.tsx',
|
|
target: '<dir>/ai/page-actions.tsx',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
dependencies: {
|
|
'@hanzo/docs-core': null,
|
|
'@hanzo/docs-base-ui': null,
|
|
react: null,
|
|
},
|
|
};
|