From 8e67d75793e9986d1f39be98637eefdcea9da8ff Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Sun, 18 Dec 2022 13:00:30 +0100 Subject: [PATCH] Fix links in content used by docs (#5631) * Use canonical URLs with trailing slash * Always use full URL for JSDoc links --- examples/with-content/README.md | 2 +- packages/astro/src/@types/astro.ts | 8 ++++---- packages/astro/src/core/errors/errors-data.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/with-content/README.md b/examples/with-content/README.md index f7e10f6c7..4c2019430 100644 --- a/examples/with-content/README.md +++ b/examples/with-content/README.md @@ -1,6 +1,6 @@ # Astro Content Collections (Experimental) -This demos our Blog Starter using **[the experimental Content Collections API.](https://docs.astro.build/en/guides/content-collections)** +This demos our Blog Starter using **[the experimental Content Collections API.](https://docs.astro.build/en/guides/content-collections/)** [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-content) [![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/s/github/withastro/astro/tree/latest/examples/with-content) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index b42144e9a..8dabfa43f 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -814,7 +814,7 @@ export interface AstroUserConfig { * * Extend Astro with custom integrations. Integrations are your one-stop-shop for adding framework support (like Solid.js), new features (like sitemaps), and new libraries (like Partytown and Turbolinks). * - * Read our [Integrations Guide](/en/guides/integrations-guide/) for help getting started with Astro Integrations. + * Read our [Integrations Guide](https://docs.astro.build/en/guides/integrations-guide/) for help getting started with Astro Integrations. * * ```js * import react from '@astrojs/react'; @@ -881,9 +881,9 @@ export interface AstroUserConfig { * @version 1.0.0-rc.1 * @description * Enable Astro's pre-v1.0 support for components and JSX expressions in `.md` (and alternative extensions for markdown files like ".markdown") Markdown files. - * In Astro `1.0.0-rc`, this original behavior was removed as the default, in favor of our new [MDX integration](/en/guides/integrations-guide/mdx/). + * In Astro `1.0.0-rc`, this original behavior was removed as the default, in favor of our new [MDX integration](https://docs.astro.build/en/guides/integrations-guide/mdx/). * - * To enable this behavior, set `legacy.astroFlavoredMarkdown` to `true` in your [`astro.config.mjs` configuration file](/en/guides/configuring-astro/#the-astro-config-file). + * To enable this behavior, set `legacy.astroFlavoredMarkdown` to `true` in your [`astro.config.mjs` configuration file](https://docs.astro.build/en/guides/configuring-astro/#the-astro-config-file). * * ```js * { @@ -938,7 +938,7 @@ export interface AstroUserConfig { * @default `false` * @version 1.7.0 * @description - * Enable experimental support for [Content Collections](/en/guides/content-collections). This makes the `src/content/` directory a reserved directory for Astro to manage, and introduces the `astro:content` module for querying this content. + * Enable experimental support for [Content Collections](https://docs.astro.build/en/guides/content-collections/). This makes the `src/content/` directory a reserved directory for Astro to manage, and introduces the `astro:content` module for querying this content. * * To enable this feature, set `experimental.contentCollections` to `true` in your Astro config: * diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index bd0135f55..85f62b208 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -507,7 +507,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati * A Markdown document's frontmatter in `src/content/` does not match its collection schema. * Make sure that all required fields are present, and that all fields are of the correct type. * You can check against the collection schema in your `src/content/config.*` file. - * See the [Content collections documentation](https://docs.astro.build/en/guides/content-collections) for more information. + * See the [Content collections documentation](https://docs.astro.build/en/guides/content-collections/) for more information. */ MarkdownContentSchemaValidationError: { title: 'Content collection frontmatter invalid.', @@ -518,7 +518,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati ...error.errors.map((zodError) => zodError.message), ].join('\n'); }, - hint: 'See https://docs.astro.build/en/guides/content-collections for more information on content schemas.', + hint: 'See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas.', }, // Config Errors - 7xxx UnknownConfigError: {