diff --git a/netlify.toml b/netlify.toml index 2e04d1c5..b880a3e6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -11,4 +11,9 @@ [[redirects]] status = 302 from = "/discord/" - to = "https://discord.gg/dmDmjFCKuH" \ No newline at end of file + to = "https://discord.gg/dmDmjFCKuH" + +[[redirects]] + status = 301 + from = "/docs/plugins/typescript/" + to = "/docs/resources/typescript/" \ No newline at end of file diff --git a/src/pages/docs/content-as-data/collections.md b/src/pages/docs/content-as-data/collections.md index d26b5d67..cfecbc87 100644 --- a/src/pages/docs/content-as-data/collections.md +++ b/src/pages/docs/content-as-data/collections.md @@ -6,9 +6,9 @@ tocHeading: 2 # Collections -Collections are a feature in Greenwood by which you can use [frontmatter](/docs/resources/markdown/#frontmatter) to group pages that can then be referenced through [JavaScript](/docs/content-as-data/data-client/) or [active frontmatter](/docs/content-as-data/active-frontmatter/). +Collections are a feature in Greenwood by which you can use [frontmatter](/docs/resources/markdown/#frontmatter) to group pages that can then be referenced through [JavaScript](/docs/content-as-data/data-client/) or [active frontmatter](/docs/content-as-data/active-frontmatter/). This can be a useful way to group pages for things like navigation menus based on the content in your pages directory. -This can be a useful way to group pages for things like navigation menus based on the content in your pages directory. +See our [reference docs on Greenwood's available types](/docs/reference/appendix/#types) for more information on authoring with TypeScript. ## Usage diff --git a/src/pages/docs/content-as-data/data-client.md b/src/pages/docs/content-as-data/data-client.md index 098e2b3f..6bdf56c2 100644 --- a/src/pages/docs/content-as-data/data-client.md +++ b/src/pages/docs/content-as-data/data-client.md @@ -6,7 +6,9 @@ tocHeading: 2 # Data Client -To access your content as data with Greenwood, there are three pre-made APIs you can use, based on your use case. These are isomorphic in that they will consume live data during development, and statically build out each query at build time to its own JSON file that will be fetched client side without needing a. This way, you can serialize and / or hydrate from this data as needed based on your needs. +To access your content as data with Greenwood, there are three pre-made APIs you can use, based on your use case. These are isomorphic in that they will consume live data during development, and statically build out each query at build time to its own JSON file that will be fetched client side without needing a server. This way, you can serialize and / or hydrate from this data as needed based on your needs. + +See our [reference docs on Greenwood's available types](/docs/reference/appendix/#types) for more information on authoring with TypeScript. > This feature works best when used for build time templating when combined with the [**static** optimization](/docs/reference/configuration/#optimization) setting. diff --git a/src/pages/docs/plugins/css-modules.md b/src/pages/docs/plugins/css-modules.md index 7eab7c46..d180e00f 100644 --- a/src/pages/docs/plugins/css-modules.md +++ b/src/pages/docs/plugins/css-modules.md @@ -2,7 +2,7 @@ title: CSS Modules label: CSS Modules layout: docs -order: 3 +order: 2 tocHeading: 2 --- @@ -123,3 +123,46 @@ And reference that in your (Light DOM) HTML based Web Component: From there, Greenwood will scope your CSS class names by prefixing them with the filename and a hash of the contents, inline that into a `