style: format docs/hosting.md and loader/index.ts
This commit is contained in:
+5
-1
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user