Skip to content

Commit 414f125

Browse files
committed
objectql
1 parent 1fab774 commit 414f125

File tree

108 files changed

+2317
-2945
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2317
-2945
lines changed

apps/site/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/site/.gitignore

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,26 @@
1-
# dependencies
1+
# deps
22
/node_modules
3-
/.pnp
4-
.pnp.js
53

6-
# testing
7-
/coverage
4+
# generated content
5+
.source
86

9-
# next.js
7+
# test & build
8+
/coverage
109
/.next/
1110
/out/
12-
13-
# production
1411
/build
12+
*.tsbuildinfo
1513

1614
# misc
1715
.DS_Store
1816
*.pem
19-
20-
# debug
17+
/.pnp
18+
.pnp.js
2119
npm-debug.log*
2220
yarn-debug.log*
2321
yarn-error.log*
2422

25-
# local env files
23+
# others
2624
.env*.local
27-
28-
# vercel
2925
.vercel
30-
31-
# typescript
32-
*.tsbuildinfo
33-
next-env.d.ts
34-
35-
# fumadocs
36-
.source
26+
next-env.d.ts

apps/site/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# my-app
2+
3+
This is a Next.js application generated with
4+
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
5+
6+
Run development server:
7+
8+
```bash
9+
npm run dev
10+
# or
11+
pnpm dev
12+
# or
13+
yarn dev
14+
```
15+
16+
Open http://localhost:3000 with your browser to see the result.
17+
18+
## Explore
19+
20+
In the project, you can see:
21+
22+
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
23+
- `lib/layout.shared.tsx`: Shared options for layouts, optional but preferred to keep.
24+
25+
| Route | Description |
26+
| ------------------------- | ------------------------------------------------------ |
27+
| `app/(home)` | The route group for your landing page and other pages. |
28+
| `app/docs` | The documentation layout and pages. |
29+
| `app/api/search/route.ts` | The Route Handler for search. |
30+
31+
### Fumadocs MDX
32+
33+
A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.
34+
35+
Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.
36+
37+
## Learn More
38+
39+
To learn more about Next.js and Fumadocs, take a look at the following
40+
resources:
41+
42+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
43+
features and API.
44+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
45+
- [Fumadocs](https://fumadocs.dev) - learn about Fumadocs

apps/site/app/(home)/layout.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { HomeLayout } from 'fumadocs-ui/layouts/home';
2+
import { baseOptions } from '@/lib/layout.shared';
3+
4+
export default function Layout({ children }: LayoutProps<'/'>) {
5+
return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
6+
}
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import Link from 'next/link';
2-
import { HomeLayout } from 'fumadocs-ui/home-layout';
3-
import { baseOptions } from '@/app/layout.config';
42

53
function CheckIcon() {
64
return (
@@ -40,8 +38,8 @@ function CodeBlock({ title, content, lang = 'yaml' }: { title: string, content:
4038

4139
export default function HomePage() {
4240
return (
43-
<HomeLayout {...baseOptions}>
44-
<main className="flex-1">
41+
<>
42+
<main className="flex-1 max-w-7xl mx-auto w-full px-4 sm:px-6 lg:px-8">
4543
{/* --- Hero Section --- */}
4644
<section className="relative overflow-hidden pt-16 md:pt-24 lg:pt-32 pb-16">
4745
<div className="container relative z-10 flex flex-col items-center gap-6 text-center">
@@ -297,18 +295,6 @@ export interface Project {
297295
</div>
298296
</section>
299297
</main>
300-
301-
<footer className="border-t py-6 md:py-12">
302-
<div className="container flex flex-col items-center justify-between gap-4 md:flex-row">
303-
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">
304-
© 2026 ObjectQL Team. Released under MIT License.
305-
</p>
306-
<div className="flex gap-4 text-sm text-muted-foreground">
307-
<Link href="/docs/guide/license" className="hover:underline">License</Link>
308-
<Link href="https://github.com/objectql/objectql" className="hover:underline">GitHub</Link>
309-
</div>
310-
</div>
311-
</footer>
312-
</HomeLayout>
298+
</>
313299
);
314300
}

apps/site/app/api/search/route.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { source } from '@/lib/source';
2-
import { createSearchAPI } from 'fumadocs-core/search/server';
2+
import { createFromSource } from 'fumadocs-core/search/server';
33

4-
export const { GET } = createSearchAPI('advanced', {
5-
indexes: source.getPages().map((page) => ({
6-
title: page.data.title,
7-
description: page.data.description ?? '',
8-
url: page.url,
9-
id: page.url,
10-
structuredData: page.data.structuredData,
11-
})),
4+
export const { GET } = createFromSource(source, {
5+
// https://docs.orama.com/docs/orama-js/supported-languages
6+
language: 'english',
127
});

apps/site/app/blog/[[...slug]]/page.tsx

Lines changed: 0 additions & 237 deletions
This file was deleted.

0 commit comments

Comments
 (0)