Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"fumadocs-core": "16.4.7",
"fumadocs-mdx": "14.2.5",
"fumadocs-ui": "16.4.7",
"lucide-react": "^0.562.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"server-only": "^0.0.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/bin/cli.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env node
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { cac } from 'cac';
import 'dotenv/config';
import { registerTranslateCommand } from '../src/commands/translate.mjs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/build.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { spawn } from 'child_process';
import path from 'path';
import fs from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/dev.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { spawn } from 'child_process';
import path from 'path';
import fs from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/start.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { spawn } from 'node:child_process';
import path from 'node:path';
import fs from 'node:fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/translate.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import fs from 'node:fs';
import path from 'node:path';
import OpenAI from 'openai';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/utils/translate.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import fs from 'node:fs';
import path from 'node:path';
import OpenAI from 'openai';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/[lang]/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { source } from '@/lib/source';
import type { Metadata } from 'next';
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/[lang]/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { source } from '@/lib/source';
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import type { ReactNode } from 'react';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import 'fumadocs-ui/style.css';
import { RootProvider } from 'fumadocs-ui/provider/next';
import { defineI18nUI } from 'fumadocs-ui/i18n';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/[lang]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { redirect, notFound } from 'next/navigation';


Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { source } from '@/lib/source';
import { createSearchAPI } from 'fumadocs-core/search/server';

Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/layout.config.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { type BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
import { siteConfig } from '@/lib/site-config';
import Image from 'next/image';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import 'fumadocs-ui/style.css';
import { RootProvider } from 'fumadocs-ui/provider/next';
import { defineI18nUI } from 'fumadocs-ui/i18n';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { redirect } from 'next/navigation';

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/site/lib/deep-merge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export function isObject(item: any): item is Record<string, any> {
return (item && typeof item === 'object' && !Array.isArray(item));
}
Expand Down
8 changes: 8 additions & 0 deletions packages/site/lib/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { siteConfig } from './site-config';
import { defineI18n } from 'fumadocs-core/i18n';

Expand Down
8 changes: 8 additions & 0 deletions packages/site/lib/site-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { deepMerge } from './deep-merge';
import objectDocsConfig from '@/docs.site.json';

Expand Down
8 changes: 8 additions & 0 deletions packages/site/lib/source.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { loader } from 'fumadocs-core/source';
import { docs, meta } from '@/.source/server';
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/lib/translations.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { siteConfig } from './site-config';

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/site/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import defaultComponents from 'fumadocs-ui/mdx';
import type { MDXComponents } from 'mdx/types';
import { Steps, Step } from 'fumadocs-ui/components/steps';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { createMDX } from 'fumadocs-mdx/next';

const withMDX = createMDX();
Expand Down
8 changes: 8 additions & 0 deletions packages/site/proxy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { createI18nMiddleware } from 'fumadocs-core/i18n/middleware';
import { i18n } from '@/lib/i18n';
import { NextResponse, NextRequest, NextFetchEvent } from 'next/server';
Expand Down
8 changes: 8 additions & 0 deletions packages/site/source.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
import { siteConfig } from './lib/site-config';
import path from 'node:path';
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading