1-Intro
一个免费的 obsidian publish 方案.
1)-先初始化
nvm use v20.18.1
git clone https://github.com/jackyzha0/quartz.git
cd quartz
npm inpx
quartz create2)-初始化之后
npx quartz build --serve可以本地预览
3)-Hosts 方案
支持如下的4种姿势:
- Cloudflare Pages
- GitHub Pages
- Custom Domain
- Vercel
- GitLab Pages
- Self-Hosting
2-Cloudflare pages
我们使用 Cloudflare pages 功能.
- Log in to the Cloudflare dashboard and select your account.
- In Account Home, select Workers & Pages > Create application > Pages > Connect to Git.
- Select the new GitHub repository that you created and, in the Set up builds and deployments section, provide the following information:
| Configuration option | Value |
|---|---|
| Production branch | v4 |
| Framework preset | None |
| Build command | npx quartz build |
| Build output directory | public |
即可.