From 649090de1b7a8a8849074b8e1bfd938943e1b028 Mon Sep 17 00:00:00 2001 From: mancuoj <1337381768@qq.com> Date: Sat, 2 Dec 2023 14:59:02 +0800 Subject: [PATCH] docs: add deploy with netlify (#613) --- docs/hosting.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/hosting.md b/docs/hosting.md index a4ca1ea..cf7064c 100644 --- a/docs/hosting.md +++ b/docs/hosting.md @@ -167,6 +167,17 @@ Using `docs.example.com` is an example of a subdomain. They're a simple way of c 4. Go to the Settings tab and then click Domains in the sidebar 5. Enter your subdomain into the field and press Add +## Netlify + +Like Vercel, you can also deploy the site generated by Quartz 4 via Netlify. + +1. Log in to the [Netlify dashboard](https://app.netlify.com/) and click "Add new site". +2. Select your Git provider and repository containing your Quartz project. +3. Under "Build command", enter `npx quartz build`. +4. Under "Publish directory", enter `public`. +5. Press Deploy. Once it's live, you'll have a `*.netlify.app` URL to view the page. +6. To add a custom domain, check "Domain management" in the left sidebar, just like with Vercel. + ## GitLab Pages You can configure GitLab CI to build and deploy a Quartz 4 project.