|
| 1 | +# Object UI Documentation Site (Fumadocs Migration - In Progress) |
| 2 | + |
| 3 | +This is the official documentation site for Object UI, being migrated to [Fumadocs](https://fumadocs.vercel.app/). |
| 4 | + |
| 5 | +## Status |
| 6 | + |
| 7 | +🚧 **Work in Progress** - The site structure is complete but there are issues with the fumadocs source API integration that need to be resolved. |
| 8 | + |
| 9 | +### Completed |
| 10 | +- ✅ Next.js 15 + TypeScript setup |
| 11 | +- ✅ Tailwind CSS configuration |
| 12 | +- ✅ Fumadocs UI integration |
| 13 | +- ✅ MDX content processing |
| 14 | +- ✅ Basic documentation pages created |
| 15 | +- ✅ Homepage and layout structure |
| 16 | + |
| 17 | +### Known Issues |
| 18 | +- ⚠️ Route generation not working - investigating fumadocs 15.x API changes |
| 19 | +- The `.source` output from fumadocs-mdx needs proper integration with loader |
| 20 | +- `createMDXSource` API compatibility issue with runtime-processed docs/meta |
| 21 | + |
| 22 | +## Development |
| 23 | + |
| 24 | +```bash |
| 25 | +# Install dependencies |
| 26 | +pnpm install |
| 27 | + |
| 28 | +# Start development server (NOTE: routes currently return 404) |
| 29 | +pnpm dev |
| 30 | + |
| 31 | +# Build for production |
| 32 | +pnpm build |
| 33 | +``` |
| 34 | + |
| 35 | +## Project Structure |
| 36 | + |
| 37 | +``` |
| 38 | +apps/site/ |
| 39 | +├── app/ # Next.js app directory |
| 40 | +│ ├── docs/ # Documentation pages |
| 41 | +│ ├── layout.tsx # Root layout |
| 42 | +│ └── page.tsx # Homepage |
| 43 | +├── content/ # MDX documentation content |
| 44 | +│ └── docs/ # Documentation markdown files |
| 45 | +├── lib/ # Library code |
| 46 | +│ └── source.ts # Fumadocs source configuration |
| 47 | +├── public/ # Static assets |
| 48 | +├── next.config.mjs # Next.js configuration |
| 49 | +├── tailwind.config.ts # Tailwind CSS configuration |
| 50 | +└── source.config.ts # Fumadocs MDX configuration |
| 51 | +``` |
| 52 | + |
| 53 | +## Technical Notes |
| 54 | + |
| 55 | +The fumadocs-mdx compiler generates a `.source` directory with processed docs and meta exports. These are wrapped by `_runtime.doc()` and `_runtime.meta()` functions. The correct integration with fumadocs-core's `loader` and `createMDXSource` needs investigation based on fumadocs 15.x API. |
| 56 | + |
| 57 | +## Next Steps |
| 58 | + |
| 59 | +1. Investigate correct fumadocs 15.x API for integrating `.source` exports |
| 60 | +2. Fix route generation to resolve 404 errors |
| 61 | +3. Add search functionality |
| 62 | +4. Migrate remaining documentation content |
| 63 | +5. Set up deployment |
| 64 | + |
| 65 | +## Tech Stack |
| 66 | + |
| 67 | +- [Next.js 15](https://nextjs.org/) - React framework |
| 68 | +- [Fumadocs](https://fumadocs.vercel.app/) - Documentation framework |
| 69 | +- [Tailwind CSS](https://tailwindcss.com/) - Styling |
| 70 | +- [TypeScript](https://www.typescriptlang.org/) - Type safety |
| 71 | + |
0 commit comments