Complete Setup Guide
Step-by-step guide to set up and configure your help center from scratch
Complete Setup Guide
This comprehensive guide will walk you through setting up your help center from initial installation to deployment.
Prerequisites
Before you begin, make sure you have:
- Node.js (version 18 or higher)
- npm or yarn package manager
- Git for version control
- A code editor (VS Code recommended)
Step 1: Installation
Clone the Repository
# Clone the repository
git clone <your-repo-url>
cd help-center
# Install dependencies
npm install
# or if you prefer yarn
yarn install
Verify Installation
Run the development server to ensure everything is working:
npm run dev
Visit http://localhost:3000
to see your help center running locally.
Step 2: Basic Configuration
Update Site Information
- Open
lib/config.ts
- Update the basic site configuration:
export const siteConfig: SiteConfig = {
siteName: "Your Company Help Center",
siteDescription: "Get help and support for our products",
logo: {
icon: "HelpCircle", // Choose from Lucide icons
alt: "Your Company Logo",
},
links: {
website: "https://your-company.com",
changelog: "/changelog",
twitter: "https://twitter.com/yourcompany",
github: "https://github.com/yourcompany/repo",
},
};
Configure Categories
Update the category ordering to match your content structure:
export const CategoryOrder: Record<string, number> = {
"Getting Started": 1,
"Product Guides": 2,
Troubleshooting: 3,
"API Documentation": 4,
"General Info": 5,
};
Step 3: Content Creation
Understanding the Content Structure
Your content is organized in the content/
directory:
content/
βββ getting-started/
β βββ setup-guide.md
β βββ why-knowledge-base.md
βββ customization/
β βββ branding.md
β βββ themes.md
βββ general-info/
βββ search-functionality.md
Creating Your First Article
- Create a new Markdown file in the appropriate category folder
- Add the required frontmatter:
---
title: Your Article Title
description: Brief description for SEO and search
category: Getting Started
slug: your-url-slug
order: 1
---
# Your Article Title
Write your content here using Markdown syntax.
Frontmatter Fields
- title: The display title of your article
- description: Used for SEO meta tags and search results
- category: Must match a category in your
CategoryOrder
- slug: The URL path for the article (should be URL-friendly)
- order: (Optional) Numeric value to control the display order within a category (lower numbers appear first)
Step 4: Customization
Branding Your Help Center
Follow the detailed Branding Guide to:
- Set up your logo and company information
- Configure external links
- Customize site metadata
Applying Themes
Follow the Theming Guide to:
- Choose and apply shadcn/ui themes
- Customize colors and gradients
- Set up dark mode support
Custom Favicon
Replace app/favicon.ico
with your company's favicon.
Step 5: Content Organization
Best Practices for Articles
- Use descriptive titles - Make them searchable and clear
- Write good descriptions - These appear in search results
- Organize logically - Group related articles in the same category
- Use consistent slugs - Keep URLs clean and predictable
- Set logical order - Use the order field to control display sequence within categories
Category Management
- Plan your structure - Think about user journeys
- Use logical ordering - Most important categories first
- Keep it simple - Don't create too many categories initially
- Be consistent - Use the same category names in frontmatter
Writing Effective Content
- Use clear, simple language
- Include code examples where relevant
- Add screenshots and images for visual guides
- Break up long content with headers
- Include links to related articles
Step 6: Testing and Validation
Local Testing
-
Run the development server:
npm run dev
-
Test all functionality:
- Navigation between articles
- Search functionality
- Dark/light mode toggle
- Mobile responsiveness
-
Validate content:
- Check all links work
- Verify images load correctly
- Test search with various keywords
Content Validation
- Ensure all articles have proper frontmatter
- Check category names match your configuration
- Verify slugs are unique and URL-friendly
- Test internal links between articles
Step 7: Production Build
Build for Production
# Create production build
npm run build
# Test production build locally
npm start
Pre-deployment Checklist
- All content reviewed and proofread
- Site configuration updated with correct URLs
- Favicon replaced with company logo
- External links tested and working
- SEO metadata complete
- Performance tested with production build
Step 8: Deployment
Deploy to Vercel (Recommended)
-
Push to GitHub:
git add . git commit -m "Initial help center setup" git push origin main
-
Connect to Vercel:
- Visit vercel.com
- Import your GitHub repository
- Deploy with default settings
-
Configure custom domain (optional):
- Add your domain in Vercel dashboard
- Update DNS settings as instructed
Alternative Deployment Options
- Netlify: Similar process to Vercel
- GitHub Pages: For public repositories
- Your own server: Build and serve the
out
directory
Step 9: Ongoing Maintenance
Adding New Content
- Create new Markdown files in appropriate categories
- Update
CategoryOrder
if adding new categories - Test locally before deploying
- Push changes to trigger automatic deployment
Content Updates
- Keep articles current and accurate
- Regular review of external links
- Update screenshots and examples
- Monitor search analytics if available
Performance Monitoring
- Check Core Web Vitals
- Monitor page load speeds
- Review user feedback
- Optimize images and content as needed
Troubleshooting
Common Issues
Build Errors:
- Check frontmatter syntax in all Markdown files
- Verify category names match configuration
- Ensure all required fields are present
Content Not Appearing:
- Verify file is in correct directory
- Check frontmatter format
- Ensure category exists in
CategoryOrder
Search Not Working:
- Check content is being generated correctly
- Verify search component is properly imported
- Test with different search terms
Styling Issues:
- Verify theme variables are correctly applied
- Check custom CSS doesn't conflict
- Test in different browsers
Next Steps
Now that your help center is set up:
- Create comprehensive content - Add articles for common user questions
- Gather feedback - Share with team members and users
- Iterate and improve - Regularly update based on user needs
- Monitor usage - Consider adding analytics to understand user behavior
Getting Help
If you encounter issues:
- Check the existing articles in this help center
- Review the troubleshooting section
- Check the GitHub repository for issues and discussions
- Consider the community forums or support channels