Quick Start
Quick start guide using github pages.
Fork the repo
Fork the repo, naming it depending on where you want to it to show up.
If you want to host it on yourusername.github.io
then name the repo yourusername.github.io
.
Otherwise, name it something like my-docs
and it will be hosted at yourusername.github.io/my-docs
.
Go to /src/config.ts
and change the SITE
and BASE
variables.
-
SITE
should be behttps://yourusername.github.io
. -
BASE
should either be empty if you named the repoyourusername.github.io
or the name of the repo if you named it something else with a leading/
(e.g./my-docs
).
Enable github pages
Enable github pages in the repo settings. Go to SETTINGS → PAGES → SOURCE: Github Actions
Your site should be live after a few minutes.
Development preview
- Clone repo locally
git clone https://github.com/yourusername/yourrepo.git
- Install dependencies
npm install
- Start the development server
npm run dev
- Open the development preview at
http://localhost:4321/BASE
Changes made to the docs will be reflected live.