- Published on
Docusaurus v2
- Authors
- Name
- Jason Deramo
► Docusaurus is a popular way to quickly build a documentation site, and deploying it on Vercel takes only a few minutes. Follow this guide to get your new website up and running.

Step 1: Create a New Docusaurus Project
The easiest way to get started is by creating a new Docusaurus site.
Steps:
- Open your terminal (or use GitHub CodeSpaces if preferred).
- Run the following command to create a new Docusaurus project:
npx create-docusaurus@latest my-docusaurus-project classic
- Navigate into the project directory:
cd my-docusaurus-project
- Start the development server:
npm run start
- Open
http://localhost:3000
in your browser to view your site.

Docusaurus©
📌 Estimated Time: 10-15 minutes
Learn More:
Step 2: Push Your Project to GitHub
Next, set up version control for your project on GitHub.
Steps:
- Initialize Git in your project directory:
git init
- Stage and commit your files:
git add .
git commit -m "Initial commit"
- Create a new repository on GitHub.
- Push your code to GitHub:
git remote add origin <YOUR_GITHUB_REPO_URL>
git push -u origin main

GitHub Integration for Docusaurus
📌 Estimated Time: 10-15 minutes
Learn More:
Step 3: Set Up Vercel for Deployment
Now, let’s deploy your Docusaurus site on Vercel.
Steps:
- Log in to Vercel and create a new project.
- Import your GitHub repository into Vercel.
- Configure the project:
- Build Command:
npm run build
- Output Directory:
build
- Build Command:
- Click Deploy to trigger the deployment process.
📌 Estimated Time: 15 minutes
Learn More:
Step 4: Customize Your Site
Customize your Docusaurus site by modifying files in the src
folder.
Steps:
- Clone your GitHub repository locally:
git clone https://github.com/your-username/your-repo-name.git
- Navigate into the cloned directory:
cd your-repo-name
- Run the development server locally:
npm run start
- Edit content in the
docs
andblog
folders to customize your site.
🎥 Video Recommendation:
The Net Ninja - Git & GitHub for Beginners
📌 Estimated Time: 2-3 hours (depending on customization level)
Learn More:
Step 5: Deploy Updates to Vercel
With every commit to the main branch, Vercel automatically redeploys your site.
Steps:
- After making changes, commit and push them:
git add .
git commit -m "Updated content"
git push origin main
- Vercel will automatically deploy the new version of your site.

Dashboard Showing New Deployments
📌 Estimated Time: 15-30 minutes (for updates and debugging)
Learn More:
Helpful Resources
Here are additional resources to enhance your learning:
Note: Take time to customize and explore different themes and features in Docusaurus. Practice will help you understand its flexibility and streamline your workflow. Happy coding!