Daily Use
npx quartz build --serve
npx quartz syncInitialization
- Install node.js & npm, then check the version
node -v
npm -v
git --version- Clone the repo & install dependencies
git clone https://github.com/jackyzha0/quartz.git
cd quartz
npm i
npx quartz create- Start the server
npx quartz build --serve # open http://localhost:8080
npx quartz build # only build static siteDeploy to Github Pages
- Create a new repo named
yourname - Add a remote
git remote -v
git remote set-url origin <your repo REMOTE-URL>
git remote add upstream https://github.com/jackyzha0/quartz.git- Push to github
npx quartz sync --no-pull # first time
npx quartz sync # update-
Setup Github Pages and connect to your domain
If you have a custom domain, you can set it up in
quartz.config.ts→baseUrl. For me, I did so. -
Update Quartz version
git remote add upstream https://github.com/jackyzha0/quartz.git # first time
git fetch upstream && git merge upstream/v4 # then you go