A modern documentation website for Trustless OSS built with Nextra (Docs Theme).
- 📚 Modern Documentation: Built with Nextra's Docs theme
- 🎨 Brand Matching: Custom theme matching Trustless OSS branding
- 📱 Responsive Design: Works on all devices
- 🔍 Search: Built-in search functionality
- 📖 MDX Support: Write content with React components
- 🌓 Dark Mode: Automatic dark/light theme switching
- 🚀 Fast Performance: Built on Next.js with optimized builds
- Next.js 14 - React framework
- Nextra 3 - Documentation framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- pnpm - Package manager
-
Install dependencies:
pnpm install
-
Start development server:
pnpm dev
# Build the application
pnpm build
# Start production server
pnpm startpnpm lint/
├── pages/ # Documentation pages (MDX)
│ ├── index.mdx # Home page
│ ├── get-started.mdx
│ ├── features.mdx
│ ├── integrations.mdx
│ ├── api.mdx
│ ├── contributing.mdx
│ ├── faq.mdx
│ └── _meta.json # Sidebar configuration
├── public/ # Static assets
├── theme.config.tsx # Nextra theme configuration
├── next.config.mjs # Next.js configuration
├── tailwind.config.ts # Tailwind configuration
└── package.json # Dependencies and scripts
- Create a new
.mdxfile in thepages/directory - Add the page to
pages/_meta.jsonfor sidebar navigation - Write content using MDX (Markdown + JSX)
Example page:
# Page Title
Content goes here...
## Section
More content...Customize the theme in theme.config.tsx:
- Logo and branding
- Navigation links
- Color scheme
- SEO metadata
- Footer content
- Push to GitHub
- Import to Vercel
- Configure environment variables
- Deploy
The site can be deployed to any platform that supports Next.js:
- Netlify:
next build && next export - AWS Amplify: Configure for Next.js
- Railway: One-click deployment
- Docker: Build and deploy containers
Create .env.local for local development:
# Optional: API keys or configuration
NEXT_PUBLIC_APP_URL=http://localhost:3000See our Contributing Guide for details on:
- Code standards
- Pull request process
- Testing requirements
- Documentation guidelines
MIT © Trustless OSS