From 966307e0d02a31247b6cbb056f167255440848af Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Thu, 23 Jul 2026 09:26:51 +0200 Subject: [PATCH] style: format docs/hosting.md and loader/index.ts --- docs/hosting.md | 6 +++++- quartz/plugins/loader/index.ts | 11 ++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/docs/hosting.md b/docs/hosting.md index afae47f..efea944 100644 --- a/docs/hosting.md +++ b/docs/hosting.md @@ -134,7 +134,11 @@ Here's how to add a custom domain to your GitHub pages deployment. - `185.199.111.153` - If you are using a subdomain, navigate to your DNS provider and create a `CNAME` record that points your subdomain to the default domain for your site. For example, if you want to use the subdomain `quartz.example.com` for your user site, create a `CNAME` record that points `quartz.example.com` to `.github.io`. -![[dns records.png]]_The above shows a screenshot of Google Domains configured for both `jzhao.xyz` (an apex domain) and `quartz.jzhao.xyz` (a subdomain)._ +![[dns records.png]]_The above shows a screenshot of Google Domains configured for both `jzhao.xyz` + + (an apex domain) and `quartz.jzhao.xyz` + + (a subdomain)._ See the [GitHub documentation](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain) for more detail about how to setup your own custom domain with GitHub Pages. diff --git a/quartz/plugins/loader/index.ts b/quartz/plugins/loader/index.ts index de02404..fd08bd9 100644 --- a/quartz/plugins/loader/index.ts +++ b/quartz/plugins/loader/index.ts @@ -99,11 +99,7 @@ function extractPluginFactory( module: unknown, type: "transformer" | "filter" | "emitter" | "pageType", ): - | QuartzTransformerPlugin - | QuartzFilterPlugin - | QuartzEmitterPlugin - | QuartzPageTypePlugin - | null { + QuartzTransformerPlugin | QuartzFilterPlugin | QuartzEmitterPlugin | QuartzPageTypePlugin | null { if (!module || typeof module !== "object") return null const mod = module as Record @@ -112,10 +108,7 @@ function extractPluginFactory( if (typeof factory === "function") { return factory as - | QuartzTransformerPlugin - | QuartzFilterPlugin - | QuartzEmitterPlugin - | QuartzPageTypePlugin + QuartzTransformerPlugin | QuartzFilterPlugin | QuartzEmitterPlugin | QuartzPageTypePlugin } return null