Skip to content

Latest commit

Β 

History

History
77 lines (52 loc) Β· 1.7 KB

File metadata and controls

77 lines (52 loc) Β· 1.7 KB

πŸ“– VitePress GitHub Pages Boilerplate with Github actions

A minimal, ready-to-deploy VitePress site with GitHub Actions preconfigured for seamless deployment to GitHub Pages.

✨ Features

  • ⚑️ Out-of-the-box VitePress setup
  • πŸš€ Continuous Deployment via GitHub Actions
  • 🌐 Auto-publish to GitHub Pages
  • πŸ› οΈ Easy customization for docs, blogs, or personal sites

πŸ“‚ Project Structure

.
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── deploy.yml   # GitHub Actions workflow for Pages
β”œβ”€β”€ .vitepress/
β”‚   └── config.ts        # VitePress configuration
β”œβ”€β”€ index.md             # Home page
β”œβ”€β”€ package.json
└── README.md

πŸš€ Getting Started

1. Clone this repo

git clone https://github.com/MorganMarshall/vitepress-github-pages.git
cd vitepress-github-pages

2. Install dependencies

npm install

3. Run locally

npm run dev

Open http://localhost:5173 in your browser.

4. Build for production

npm run build

5. Deploy

Push changes to the main branch. GitHub Actions will automatically build and publish your site to GitHub Pages.

Your site will be live at:

https://<username>.github.io/<repo>/

βš™οΈ Configuration

  • Edit .vitepress/config.ts for site title, theme, and navigation.
  • Update index.md and add additional pages in the root folder.
  • GitHub Actions workflow is located at .github/workflows/deploy.yml.

πŸ“œ License

MIT License - see LICENSE file for details.


Made with ❀️ using VitePress + GitHub Pages.