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
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 { coreLoader, platformLoader } 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 { coreLoader, platformLoader } 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 { coreLoader, platformLoader } 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/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 { core, platform } from '@/.source/server';
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
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/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';

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