-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve static tuple literal errors, migrate to fumadocs (#1233)
- Loading branch information
1 parent
07d77d0
commit 8b91296
Showing
208 changed files
with
942 additions
and
13,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shell-emulator=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,26 @@ | ||
# arktype.io | ||
# my-app | ||
|
||
Source code for ArkType's docs at [arktype.io](https://arktype.io) | ||
This is a Next.js application generated with | ||
[Create Fumadocs](https://github.com/fuma-nama/fumadocs). | ||
|
||
Built with [Starlight](https://starlight.astro.build/) | ||
Run development server: | ||
|
||
# Definitions | ||
```bash | ||
npm run dev | ||
# or | ||
pnpm dev | ||
# or | ||
yarn dev | ||
``` | ||
|
||
- Primitives | ||
Open http://localhost:3000 with your browser to see the result. | ||
|
||
- string | ||
- keywords | ||
- Autogenerate from JSDoc | ||
- literals | ||
- patterns | ||
- lengths | ||
- number | ||
- keywords | ||
- Autogenerate from JSDoc | ||
- literals | ||
- ranges | ||
- divisors | ||
- more | ||
- bigint | ||
- boolean | ||
- symbol | ||
- null | ||
- undefined | ||
## Learn More | ||
|
||
- Objects | ||
To learn more about Next.js and Fumadocs, take a look at the following | ||
resources: | ||
|
||
- properties | ||
- required | ||
- optional | ||
- defaultable | ||
- index | ||
- undeclared | ||
- more | ||
- merge | ||
- keyof | ||
- get | ||
- map | ||
- arrays | ||
- lengths | ||
- tuples | ||
- prefix | ||
- optional | ||
- variadic | ||
- postfix | ||
- dates | ||
- keywords | ||
- Autogenerate from JSDoc | ||
- literals | ||
- ranges | ||
- instanceOf | ||
- keywords | ||
- Autogenerate from JSDoc | ||
|
||
- Expressions | ||
|
||
- intersection | ||
- union | ||
- brand | ||
- narrow | ||
- morph | ||
- more | ||
- unit | ||
- enumerated | ||
- meta | ||
- cast | ||
- parenthetical | ||
- this | ||
|
||
# Other stuff | ||
|
||
- Types (how you can use existing types) | ||
|
||
- Top-level type invocation | ||
|
||
- Autogenerate from JSDoc <!-- properties of a Type instance --> | ||
|
||
- define <!-- type utilities not attached to a type instance --> | ||
- raw | ||
|
||
- Configuration | ||
|
||
- errors | ||
- clone | ||
- onUndeclaredKey | ||
- jitless | ||
|
||
- Scopes (advanced) | ||
|
||
- syntax | ||
- modules | ||
- visibility | ||
- submodules | ||
- thunks | ||
|
||
- Generics (advanced) | ||
|
||
- keywords | ||
- Autogenerate from JSDoc | ||
- syntax | ||
- hkt (advanced++) | ||
|
||
- Integrations | ||
|
||
- Standard Schema | ||
- tRPC | ||
- react-hook-form | ||
- hono | ||
|
||
- FAQ | ||
- About the project | ||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js | ||
features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ark/fuma/app/api/search/route.ts → ark/docs/app/api/search/route.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { createFromSource } from "fumadocs-core/search/server" | ||
import { source } from "../../../lib/source.ts" | ||
import { source } from "../../../lib/source.tsx" | ||
// it should be cached forever | ||
export const revalidate = false | ||
export const { staticGET: GET } = createFromSource(source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { generateOGImage } from "fumadocs-ui/og" | ||
import { metadataImage } from "../../../lib/metadata" | ||
|
||
export const GET = metadataImage.createAPI(page => | ||
generateOGImage({ | ||
title: page.data.title === "ArkType" ? "ArkType" : "ArkType Docs", | ||
description: page.data.title === "ArkType" ? "" : page.data.title, | ||
site: "ArkType" | ||
// font: { | ||
// title: { | ||
// families: ["Raleway"], | ||
// weight: "Bold", | ||
// size: 100 | ||
// }, | ||
// description: { | ||
// families: ["Raleway"], | ||
// weight: "SemiBold", | ||
// size: 40 | ||
// } | ||
// } | ||
// fonts: [ | ||
// fromPackageRoot("src", "assets", "Raleway.ttf"), | ||
// "https://fonts.googleapis.com/css?family=Raleway:300,400,500,700&display=swap" | ||
// ] | ||
}) | ||
) | ||
|
||
export const generateStaticParams = () => metadataImage.generateParams() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.