Announce the new name: Fumadocs

This commit is contained in:
Fuma Nama
2024-01-19 21:33:17 +08:00
parent a2f481958c
commit 06f72a1c01
162 changed files with 360 additions and 420 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { getPages } from '@/app/source';
import { createSearchAPI } from '@fuma-docs/core/search/server';
import { createSearchAPI } from 'fumadocs-core/search/server';
export const { GET } = createSearchAPI('advanced', {
indexes: getPages()!.map((page) => ({
@@ -1,7 +1,7 @@
'use client';
import { useMDXComponent } from 'next-contentlayer/hooks';
import defaultComponents from '@fuma-docs/ui/mdx/default-client';
import defaultComponents from 'fumadocs-ui/mdx/default-client';
const components = {
...defaultComponents,
@@ -1,7 +1,7 @@
import { Content } from './content';
import { getPage, getPages } from '@/app/source';
import type { Metadata } from 'next';
import { DocsPage, DocsBody } from '@fuma-docs/ui/page';
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
import { notFound } from 'next/navigation';
export default async function Page({
+1 -1
View File
@@ -1,5 +1,5 @@
import { pageTree } from '../source';
import { DocsLayout } from '@fuma-docs/ui/layout';
import { DocsLayout } from 'fumadocs-ui/layout';
import type { ReactNode } from 'react';
export default function RootDocsLayout({ children }: { children: ReactNode }) {
+1 -1
View File
@@ -1,5 +1,5 @@
import './global.css';
import { RootProvider } from '@fuma-docs/ui/provider';
import { RootProvider } from 'fumadocs-ui/provider';
import { Inter } from 'next/font/google';
import type { ReactNode } from 'react';
+2 -2
View File
@@ -1,6 +1,6 @@
import { allDocs, allMeta } from 'contentlayer/generated';
import { createContentlayerSource } from '@fuma-docs/core/contentlayer';
import { loader } from '@fuma-docs/core/source';
import { createContentlayerSource } from 'fumadocs-core/contentlayer';
import { loader } from 'fumadocs-core/source';
export const { pageTree, getPages, getPage } = loader({
baseUrl: '/docs',
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -1,4 +1,4 @@
import { makeSource } from 'contentlayer/source-files';
import { defaultConfig } from '@fuma-docs/core/contentlayer/configuration';
import { defaultConfig } from 'fumadocs-core/contentlayer/configuration';
export default makeSource(defaultConfig);
+2 -2
View File
@@ -8,9 +8,9 @@
"start": "next start"
},
"dependencies": {
"@fuma-docs/core": "7.1.2",
"@fuma-docs/ui": "7.1.2",
"contentlayer": "0.3.4",
"fumadocs-core": "7.1.2",
"fumadocs-ui": "7.1.2",
"next": "14.0.4",
"next-contentlayer": "0.3.4",
"react": "18.2.0",
+2 -2
View File
@@ -1,4 +1,4 @@
const { docsUi, docsUiPlugins } = require('@fuma-docs/ui/tailwind-plugin');
const { docsUi, docsUiPlugins } = require('fumadocs-ui/tailwind-plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
@@ -6,7 +6,7 @@ module.exports = {
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./content/**/*.mdx',
'./node_modules/@fuma-docs/ui/dist/**/*.js',
'./node_modules/fumadocs-ui/dist/**/*.js',
],
plugins: [...docsUiPlugins, docsUi],
};
+1 -1
View File
@@ -1,5 +1,5 @@
import { getPages } from '@/app/source';
import { createSearchAPI } from '@fuma-docs/core/search/server';
import { createSearchAPI } from 'fumadocs-core/search/server';
export const { GET } = createSearchAPI('advanced', {
indexes: getPages().map((page) => ({
@@ -1,6 +1,6 @@
import { getPage, getPages } from '@/app/source';
import type { Metadata } from 'next';
import { DocsPage, DocsBody } from '@fuma-docs/ui/page';
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
import { notFound } from 'next/navigation';
export default async function Page({
+1 -1
View File
@@ -1,5 +1,5 @@
import { pageTree } from '../source';
import { DocsLayout } from '@fuma-docs/ui/layout';
import { DocsLayout } from 'fumadocs-ui/layout';
import type { ReactNode } from 'react';
export default function RootDocsLayout({ children }: { children: ReactNode }) {
+2 -2
View File
@@ -1,5 +1,5 @@
import { RootProvider } from '@fuma-docs/ui/provider';
import '@fuma-docs/ui/style.css';
import { RootProvider } from 'fumadocs-ui/provider';
import 'fumadocs-ui/style.css';
import { Inter } from 'next/font/google';
import type { ReactNode } from 'react';
+2 -2
View File
@@ -1,6 +1,6 @@
import { map } from '@/.map';
import { createMDXSource } from '@fuma-docs/mdx';
import { loader } from '@fuma-docs/core/source';
import { createMDXSource } from 'fumadocs-mdx';
import { loader } from 'fumadocs-core/source';
export const { getPage, getPages, pageTree } = loader({
baseUrl: '/docs',
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -1,5 +1,5 @@
import type { MDXComponents } from 'mdx/types';
import defaultComponents from '@fuma-docs/ui/mdx/default';
import defaultComponents from 'fumadocs-ui/mdx/default';
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
+1 -1
View File
@@ -1,4 +1,4 @@
import createNextDocsMDX from '@fuma-docs/mdx/config';
import createNextDocsMDX from 'fumadocs-mdx/config';
const withFumaMDX = createNextDocsMDX();
+3 -3
View File
@@ -8,9 +8,9 @@
"start": "next start"
},
"dependencies": {
"@fuma-docs/core": "7.1.2",
"@fuma-docs/mdx": "7.1.2",
"@fuma-docs/ui": "7.1.2",
"fumadocs-core": "7.1.2",
"fumadocs-mdx": "7.1.2",
"fumadocs-ui": "7.1.2",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
+1 -1
View File
@@ -1,5 +1,5 @@
import { getPages } from '@/app/source';
import { createSearchAPI } from '@fuma-docs/core/search/server';
import { createSearchAPI } from 'fumadocs-core/search/server';
export const { GET } = createSearchAPI('simple', {
indexes: getPages().map((page) => ({
@@ -1,7 +1,7 @@
'use client';
import { useMDXComponent } from 'next-contentlayer/hooks';
import defaultComponents from '@fuma-docs/ui/mdx/default-client';
import defaultComponents from 'fumadocs-ui/mdx/default-client';
const components = {
...defaultComponents,
@@ -1,7 +1,7 @@
import { Content } from './content';
import { getPage, getPages } from '@/app/source';
import type { Metadata } from 'next';
import { DocsPage, DocsBody } from '@fuma-docs/ui/page';
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
import { notFound } from 'next/navigation';
export default async function Page({
+1 -1
View File
@@ -1,5 +1,5 @@
import { pageTree } from '../source';
import { DocsLayout } from '@fuma-docs/ui/layout';
import { DocsLayout } from 'fumadocs-ui/layout';
import type { ReactNode } from 'react';
export default function RootDocsLayout({ children }: { children: ReactNode }) {
+2 -2
View File
@@ -1,5 +1,5 @@
import { RootProvider } from '@fuma-docs/ui/provider';
import '@fuma-docs/ui/style.css';
import { RootProvider } from 'fumadocs-ui/provider';
import 'fumadocs-ui/style.css';
import { Inter } from 'next/font/google';
import type { ReactNode } from 'react';
+2 -2
View File
@@ -1,6 +1,6 @@
import { allDocs, allMeta } from 'contentlayer/generated';
import { createContentlayerSource } from '@fuma-docs/core/contentlayer';
import { loader } from '@fuma-docs/core/source';
import { createContentlayerSource } from 'fumadocs-core/contentlayer';
import { loader } from 'fumadocs-core/source';
export const { getPage, pageTree, getPages } = loader({
baseUrl: '/docs',
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -9,7 +9,7 @@ Hey there!
<Cards>
<Card title="Learn more about Next.js" href="https://nextjs.org/docs" />
<Card title="Learn more about Fumadocs" href="https://fuma-docs.vercel.app" />
<Card title="Learn more about Fumadocs" href="https://fumadocs.vercel.app" />
</Cards>
### Heading
+1 -1
View File
@@ -1,4 +1,4 @@
import { makeSource } from 'contentlayer/source-files';
import { defaultConfig } from '@fuma-docs/core/contentlayer/configuration';
import { defaultConfig } from 'fumadocs-core/contentlayer/configuration';
export default makeSource(defaultConfig);
+2 -2
View File
@@ -8,9 +8,9 @@
"start": "next start"
},
"dependencies": {
"@fuma-docs/core": "7.1.2",
"@fuma-docs/ui": "7.1.2",
"contentlayer": "0.3.4",
"fumadocs-core": "7.1.2",
"fumadocs-ui": "7.1.2",
"next": "14.0.4",
"next-contentlayer": "0.3.4",
"react": "18.2.0",