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
5 changes: 5 additions & 0 deletions .changeset/slimy-frogs-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fast-url": patch
---

Add documentation and update homepage
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: auto
threshold: 1%

ignore:
- "web/"
- "web/**/*"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"email": "[email protected]",
"url": "https://www.khanh.id"
},
"homepage": "https://github.com/hckhanh/fast-url",
"homepage": "https://fast-url.khanh.id",
"repository": {
"type": "git",
"url": "git+https://github.com/hckhanh/fast-url.git"
Expand Down
26 changes: 26 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# deps
/node_modules

# generated content
.source

# test & build
/coverage
/.next/
/out/
/build
*.tsbuildinfo

# misc
.DS_Store
*.pem
/.pnp
.pnp.js
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# others
.env*.local
.vercel
next-env.d.ts
29 changes: 29 additions & 0 deletions web/INSTRUCTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Do the task for me


As a opensource documentation writer, update this folder `web`

This is the sample project from fumadocs, It will be used to deploy the documentation website for this project.

The current content of the doc is just sample content, you need to replace it with relevant documentation content for this project.

Here is the structure of the documentation you need to create:

* Introduction
* Why this folk is created
* Key features (read the project to get the features)
* The disadvantages of using the original project (non-optimized, not regularly updated,...) - https://github.com/balazsbotond/urlcat
* How this fork addresses those issues
* Getting Started
* Installation
* Usage
* API Reference

Each section should be in a separate mdx file and should utilize different components from fumadocs to enhance the documentation.

Ensure that the content is clear, concise, and provides value to the users of the project. Use examples, code snippets, and other relevant information to make the documentation comprehensive and user-friendly.

After updating the documentation, ensure to review and proofread the content for accuracy and clarity before finalizing it.
Then update SEO metadata for each doc page to improve search engine visibility.

Finally, test the documentation website locally to ensure all links, components, and features are functioning correctly before deploying the updated documentation.
Comment on lines +1 to +29
Copy link

Copilot AI Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INSTRUCTION.md file appears to be internal documentation for creating the docs and should not be committed to the repository. This file contains instructions like 'Do the task for me' which are not relevant to end users or contributors.

Suggested change
Do the task for me
As a opensource documentation writer, update this folder `web`
This is the sample project from fumadocs, It will be used to deploy the documentation website for this project.
The current content of the doc is just sample content, you need to replace it with relevant documentation content for this project.
Here is the structure of the documentation you need to create:
* Introduction
* Why this folk is created
* Key features (read the project to get the features)
* The disadvantages of using the original project (non-optimized, not regularly updated,...) - https://github.com/balazsbotond/urlcat
* How this fork addresses those issues
* Getting Started
* Installation
* Usage
* API Reference
Each section should be in a separate mdx file and should utilize different components from fumadocs to enhance the documentation.
Ensure that the content is clear, concise, and provides value to the users of the project. Use examples, code snippets, and other relevant information to make the documentation comprehensive and user-friendly.
After updating the documentation, ensure to review and proofread the content for accuracy and clarity before finalizing it.
Then update SEO metadata for each doc page to improve search engine visibility.
Finally, test the documentation website locally to ensure all links, components, and features are functioning correctly before deploying the updated documentation.

Copilot uses AI. Check for mistakes.
45 changes: 45 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# web

This is a Next.js application generated with
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).

Run development server:

```bash
npm run dev
# or
pnpm dev
# or
yarn dev
```

Open http://localhost:3000 with your browser to see the result.

## Explore

In the project, you can see:

- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
- `lib/layout.shared.tsx`: Shared options for layouts, optional but preferred to keep.

| Route | Description |
| ------------------------- | ------------------------------------------------------ |
| `app/(home)` | The route group for your landing page and other pages. |
| `app/docs` | The documentation layout and pages. |
| `app/api/search/route.ts` | The Route Handler for search. |

### Fumadocs MDX

A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.

Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.

## Learn More

To learn more about Next.js and Fumadocs, take a look at the following
resources:

- [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.dev) - learn about Fumadocs
19 changes: 19 additions & 0 deletions web/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
"extends": "//",
"root": false,
"files": {
"ignoreUnknown": true,
"includes": ["**", "!node_modules", "!.next", "!dist", "!build", "!.source"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"domains": {
"next": "recommended",
"react": "recommended"
}
}
}
763 changes: 763 additions & 0 deletions web/bun.lock

Large diffs are not rendered by default.

Loading
Loading