style: format docs/hosting.md and loader/index.ts

This commit is contained in:
saberzero1
2026-07-23 09:26:51 +02:00
parent ebdbb3da21
commit 966307e0d0
2 changed files with 7 additions and 10 deletions
+5 -1
View File
@@ -134,7 +134,11 @@ Here's how to add a custom domain to your GitHub pages deployment.
- `185.199.111.153` - `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-username>.github.io`. - 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-username>.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. 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.
+2 -9
View File
@@ -99,11 +99,7 @@ function extractPluginFactory(
module: unknown, module: unknown,
type: "transformer" | "filter" | "emitter" | "pageType", type: "transformer" | "filter" | "emitter" | "pageType",
): ):
| QuartzTransformerPlugin QuartzTransformerPlugin | QuartzFilterPlugin | QuartzEmitterPlugin | QuartzPageTypePlugin | null {
| QuartzFilterPlugin
| QuartzEmitterPlugin
| QuartzPageTypePlugin
| null {
if (!module || typeof module !== "object") return null if (!module || typeof module !== "object") return null
const mod = module as Record<string, unknown> const mod = module as Record<string, unknown>
@@ -112,10 +108,7 @@ function extractPluginFactory(
if (typeof factory === "function") { if (typeof factory === "function") {
return factory as return factory as
| QuartzTransformerPlugin QuartzTransformerPlugin | QuartzFilterPlugin | QuartzEmitterPlugin | QuartzPageTypePlugin
| QuartzFilterPlugin
| QuartzEmitterPlugin
| QuartzPageTypePlugin
} }
return null return null