-
Notifications
You must be signed in to change notification settings - Fork 1
Create comprehensive documentation for fast-url using fumadocs #49
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
Conversation
Co-authored-by: hckhanh <[email protected]>
Co-authored-by: hckhanh <[email protected]>
|
@copilot I think instead of using import urlcat, we should change to import createUrl |
Co-authored-by: hckhanh <[email protected]>
Changed in commit 1fbe2cc. All documentation now uses Additionally, the home page now redirects directly to |
|
- Simplify `baseOptions` by removing redundant `links` array and directly integrating `githubUrl`. - Overhaul documentation content in `/docs`: - Replace `introduction.mdx` with comprehensive updates in `index.mdx`. - Introduce new structure, emphasizing `fast-url` features, performance, and use-cases. - Add `Tabs` and `Cards` for better content accessibility and readability. - Improve alignment with modern JavaScript/TypeScript practices.
- Add a permanent redirect from `/` to `/docs` in `next.config.mjs`. - Remove unused `(home)` layout and page components. - Update Open Graph metadata for better brand alignment (`site` updated to "fast-url").
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## docs #49 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 3
Lines ? 191
Branches ? 63
========================================
Hits ? 191
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #49 will not alter performanceComparing Summary
Footnotes
|
…g files - Standardize indentation to 2 spaces across the entire codebase (JSON, TS, TSX, and config files). - Replace double quotes with single quotes in JavaScript/TypeScript files for alignment with modern conventions. - Improve readability in metadata and configuration files. - No functional changes.
|
@copilot update codecov to ignore web/ |
Co-authored-by: hckhanh <[email protected]>
|
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.
Pull Request Overview
This PR adds comprehensive documentation for the fast-url library and updates branding from "My App" to "fast-url" throughout the web application. The changes include extensive MDX documentation files, configuration updates for code formatting (tabs to spaces), and the removal of placeholder content.
Key Changes:
- Added complete documentation (introduction, getting started, API reference)
- Updated branding and metadata throughout the web application
- Standardized code formatting from tabs to spaces
- Removed placeholder/demo content and routes
Reviewed Changes
Copilot reviewed 27 out of 29 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| web/biome.json | Updated biome configuration extends property |
| web/tsconfig.json | Reformatted with spaces instead of tabs |
| web/package.json | Reformatted with spaces instead of tabs |
| web/postcss.config.mjs | Reformatted with spaces instead of tabs |
| web/source.config.ts | Reformatted with spaces instead of tabs |
| web/next.config.mjs | Added homepage redirect and reformatted |
| web/src/**/*.tsx | Updated imports to single quotes and spaces, removed Inter font |
| web/src/lib/layout.shared.tsx | Updated branding from "My App" to "fast-url" |
| web/src/app/layout.tsx | Added comprehensive metadata and removed custom font |
| web/src/app/og/docs/[...slug]/route.tsx | Updated site name from "My App" to "fast-url" |
| web/src/app/(home)/*.tsx | Removed home layout and page components |
| web/content/docs/*.mdx | Added comprehensive documentation and removed placeholders |
| web/content/docs/meta.json | Updated documentation structure |
| package.json | Updated homepage URL to documentation site |
| codecov.yml | Added configuration to exclude web directory |
| .changeset/slimy-frogs-roll.md | Added changeset entry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| } | ||
| "$schema": "../node_modules/@biomejs/biome/configuration_schema.json", | ||
| "extends": "//", |
Copilot
AI
Nov 2, 2025
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 extends value '//' appears to be incorrect. This should likely reference a parent biome configuration file path like '../biome.json' (as shown in the original code) or be removed entirely if not extending a parent config.
| "extends": "//", |




Replaced sample fumadocs content with production documentation for the fast-url library per
web/INSTRUCTION.md.Documentation Structure
createUrl,query,subst,join), advanced patterns (pagination, dynamic routing)Technical Changes
/docsfor immediate access to documentationcreateUrlinstead ofurlcatfor consistencytest.mdx,v1/,v2/)codecov.ymlto excludeweb/directory from coverage reportsComponents Utilized
Fumadocs UI: Cards, Tabs, Steps, Callouts, syntax highlighting with copy-to-clipboard
Preview
Documentation
All documentation pages use
createUrlconsistently throughout examples and API references.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.