This is a starter template that demonstrates how a documentation site created with the ObjectDocs CLI works. It's designed to serve as both a learning resource and a deployment-ready template.
This starter template serves multiple purposes:
- Quick Start Reference: Get up and running with ObjectDocs quickly
- Deployment Guide: Demonstrate the correct setup for production deployments
- Best Practices: Show recommended structure and configuration
- Testing Reference: Validate that CLI-created projects work correctly
- Complete Documentation: Includes comprehensive guides on architecture, testing, and deployment
- Ready-to-Deploy: Configured for deployment on Vercel and other platforms
- Workspace Integration: Uses workspace dependencies for development
- Production Representative: Mirrors exactly how a user would create a project
examples/starter/
├── content/
│ ├── package.json # Project configuration and scripts
│ ├── .fumadocs/ # Site engine (created by init command, gitignored)
│ ├── docs.site.json # Global site configuration
│ ├── public/ # Static assets (logos, images)
│ └── docs/
│ ├── meta.json # Sidebar navigation structure
│ ├── index.mdx # Home page
│ ├── getting-started.mdx
│ └── configuration.mdx
└── README.md # This file
Key Points:
- All project files are in
content/ content/package.jsonmanages dependencies and scriptscontent/.fumadocs/is gitignored and not committed
- Node.js 18+
- pnpm (recommended) or npm
- Navigate to the content directory:
cd examples/starter/content- Install dependencies:
pnpm install- Initialize ObjectDocs:
pnpm objectdocs initThis command will:
- Copy the
@objectdocs/siteengine to.fumadocs - Install dependencies in
.fumadocs/node_modules - Prepare your project for development
Start the development server:
npm run devThe site will be available at http://localhost:7777.
Build the project for production:
npm run buildThis will generate the production build in the .fumadocs/.next directory.
Start the production server:
npm run start- Install Vercel CLI:
npm i -g vercel- Deploy from the content directory:
cd examples/starter/content
vercel- Push this starter to your GitHub repository
- Import the project in Vercel
- Set the Root Directory to
examples/starter/content - Vercel will auto-detect Next.js settings
This project includes a vercel.json file with Next.js framework detection. Vercel will automatically:
- Detect the Next.js framework
- Use
pnpm build(viaobjectdocs build) as the build command - Use the
.nextdirectory as the output
For more details on Vercel deployment, see VERCEL.md.
Use this checklist to validate the starter works correctly:
-
pnpm installcompletes without errors -
pnpm objectdocs initinitializes the site successfully -
pnpm devstarts the development server - All pages load correctly in the browser
- Navigation works (sidebar, header links)
-
pnpm buildcompletes successfully -
pnpm startserves the production build - Deployment to Vercel succeeds
- Deployed site is fully functional
Solution: Make sure you're in the monorepo and using workspace references correctly.
Possible causes:
- Incorrect workspace configuration
- Missing or incorrect
package.jsonscripts - Node.js version incompatibility
Solution:
- Check that
package.jsonuses"@objectdocs/cli": "workspace:*" - Ensure build script is
"build": "objectdocs build" - Verify Node.js version is 18+
Solution:
- Verify all pages listed in
meta.jsonhave corresponding.mdxfiles - Check that file names match exactly (case-sensitive)
- Ensure frontmatter includes both
titleanddescription
When a new version of @objectdocs/cli is published:
pnpm up @objectdocs/cli- Create a new
.mdxfile incontent/docs/ - Add the page slug to
content/docs/meta.json - Include proper frontmatter in the MDX file
Edit content/docs.site.json to change:
- Site name
- Logo images
- Navigation links
- Build output type
This starter template is part of the ObjectDocs project. If you find issues or have improvements:
- Test your changes in this example first
- Ensure deployment still works
- Submit a PR with clear description
MIT - Same as the main ObjectDocs project