This is the Boilerplate Code to create a static website to publish notes, blogs etc. It uses markdown files to generate website content.
- Converts markdown files into static website.
Follow these steps to set up and deploy your Docusaurus-based documentation website:
- Clone the Repository
git clone <repository-url>
cd <project-directory>- Install Dependencies
npm install- Add Documentation Content
- Place your Markdown files in the
docs/directory.
- Configure Site Metadata
- Update site title, description, and other metadata in
docusaurus.config.js.
- Preview the Website Locally
npm run serve- Set Custom Domain (Optional)
- Create a
CNAMEfile inside thestatic/directory with your custom domain:
example.com- Deploy Changes
- Use the provided script to commit and deploy:
./push-changes.sh "Your commit message here"- If no message is provided, a default will be used.