forked from balazsbotond/urlcat
-
Notifications
You must be signed in to change notification settings - Fork 1
Create comprehensive documentation for fast-url using fumadocs #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0721c1d
Initialize `web` package with Next.js boilerplate setup
hckhanh 1a6de2d
Add `INSTRUCTION.md` to guide documentation updates for `web`
hckhanh 2c3e7af
Initial plan
Copilot 776e16b
Create comprehensive documentation for fast-url
Copilot b755dd0
Fix formatting issues and remove Google Fonts dependency
Copilot 1fbe2cc
Replace urlcat with createUrl and redirect home to docs
Copilot 8103541
Revamp documentation and layout configuration for `fast-url`
hckhanh 6016bab
Redirect `/` to `/docs` and update config
hckhanh 14160b3
[autofix.ci] apply automated fixes
autofix-ci[bot] 5e68f11
Normalize codebase indentation, improve consistency, and update confi…
hckhanh 55593b3
[autofix.ci] apply automated fixes
autofix-ci[bot] 4598941
Update homepage URL and add changeset for documentation improvements
hckhanh dcc5715
Add codecov.yml to ignore web/ directory from coverage
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| "fast-url": patch | ||
| --- | ||
|
|
||
| Add documentation and update homepage |
This file contains hidden or 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,14 @@ | ||
| coverage: | ||
| status: | ||
| project: | ||
| default: | ||
| target: auto | ||
| threshold: 1% | ||
| patch: | ||
| default: | ||
| target: auto | ||
| threshold: 1% | ||
|
|
||
| ignore: | ||
| - "web/" | ||
| - "web/**/*" |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -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" | ||
|
|
||
This file contains hidden or 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,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 |
This file contains hidden or 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,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. | ||
This file contains hidden or 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,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 |
This file contains hidden or 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,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" | ||
| } | ||
| } | ||
| } |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.