Quickstart Guide
This guide will take you from zero to your first published documentation page in under 5 minutes. No prior experience with EasyGoDocs required.Prerequisites
Before you begin, ensure you have:- Node.js 20+ installed (download here)
- Git for version control
- A code editor (VS Code recommended)
- Basic familiarity with Markdown
New to Markdown? It’s just text with simple formatting.
# Heading, **bold**, [link](url). That’s 90% of what you need!Installation
Install Dependencies
EasyGoDocs uses This installs all dependencies including:
pnpm for package management:- Next.js 15 (React framework)
- MDX support (
@mdx-js/loader,@next/mdx) - UI components (Radix UI, Tailwind)
- Syntax highlighting (
prism-react-renderer)
Port already in use? The dev server will automatically try the next available port (3001, 3002, etc.).
Create Your First Documentation Page
Create an MDX File
Create a new file in the
src/docs/ directory:File naming: Use lowercase with hyphens (kebab-case). The filename becomes your URL slug.
Add Content
Open Your documentation supports:
src/docs/my-first-doc.mdx and add some content:- Lists and bullet points
- Code blocks with syntax highlighting
- Links to external resources
- And much more!
Project Structure
Understanding the file organization:Build Scripts Explained
EasyGoDocs uses Node.js scripts to generate documentation indexes:generate-mdx-routes.cjs
generate-db-index.cjs
Build process: Both scripts run automatically during
pnpm build (see package.json:7).Available Scripts
Adding Features to Your Documentation
Code Blocks with Syntax Highlighting
Lists and Steps
Links and Images
Tables
Blockquotes
Using React Components in MDX
MDX lets you import and use React components:Next Steps
Explore Features
Learn about advanced capabilities like JSON docs, custom components, and styling.
Contribute
Add your own documentation and earn GSSoC points!
Deploy to Vercel
Join the Community
Open issues, submit PRs, and help shape the future of EasyGoDocs.
Troubleshooting
Port 3000 is already in use
Port 3000 is already in use
Next.js will automatically use the next available port. Check the terminal output for the actual URL.Or manually specify a port:
MDX file not appearing
MDX file not appearing
- Ensure the file is in
src/docs/with.mdxextension - Check the filename has no spaces (use hyphens)
- Restart the dev server (
Ctrl+C, thenpnpm dev) - Visit
/mdx/[your-filename](without the.mdxextension)
Syntax highlighting not working
Syntax highlighting not working
Make sure your code block specifies a language:
Table of contents is empty
Table of contents is empty
The TOC is generated from Markdown headings (
#, ##, ###). Ensure you’re using standard Markdown syntax, not HTML tags.Learning Resources
- Markdown Guide: markdownguide.org
- MDX Documentation: mdxjs.com
- Next.js App Router: nextjs.org/docs
- Tailwind CSS: tailwindcss.com/docs
Need help? Open an issue on GitHub or check out existing discussions.
View GitHub Issues →