You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: update outdated links to Astro Docs
* some were correctly redirected, but might as well use the new links
* some used the right page, but the section has been renamed or removed
* some were no longer targeting the correct page
* docs: add changeset
Copy file name to clipboardExpand all lines: examples/blog/src/content/blog/using-mdx.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This theme comes with the [@astrojs/mdx](https://docs.astro.build/en/guides/inte
9
9
10
10
## Why MDX?
11
11
12
-
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to [mix JavaScript and UI Components into your Markdown content](https://docs.astro.build/en/guides/markdown-content/#mdx-features) for things like interactive charts or alerts.
12
+
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to [mix JavaScript and UI Components into your Markdown content](https://docs.astro.build/en/guides/integrations-guide/mdx/#mdx-in-astro) for things like interactive charts or alerts.
13
13
14
14
If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.
15
15
@@ -27,5 +27,5 @@ import HeaderLink from '../../components/HeaderLink.astro';
-**Note:**[Client Directives](https://docs.astro.build/en/reference/directives-reference/#client-directives) are still required to create interactive components. Otherwise, all components in your MDX will render as static HTML (no JavaScript) by default.
Copy file name to clipboardExpand all lines: examples/with-mdx/src/pages/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Published on: {new Intl.DateTimeFormat('en', {dateStyle: 'long'}).format(publish
18
18
19
19
## Syntax highlighting
20
20
21
-
We also support syntax highlighting in MDX out-of-the-box! This example uses the default [Shiki](https://shiki.style) theme. See the [MDX integration docs](https://docs.astro.build/en/guides/integrations-guide/mdx/#syntax-highlighting) for configuration options.
21
+
We also support syntax highlighting in MDX out-of-the-box! This example uses the default [Shiki](https://shiki.style) theme. See the [MDX integration docs](https://docs.astro.build/en/guides/integrations-guide/mdx/#configuration) for configuration options.
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/with-nanostores)
9
9
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/with-nanostores/devcontainer.json)
10
10
11
-
This example showcases using [`nanostores`](https://github.com/nanostores/nanostores) to provide shared state between components of any framework. [**Read our documentation on sharing state**](https://docs.astro.build/en/core-concepts/sharing-state/) for a complete breakdown of this project, along with guides to use React, Vue, Svelte, or Solid!
11
+
This example showcases using [`nanostores`](https://github.com/nanostores/nanostores) to provide shared state between components of any framework. [**Read our documentation on sharing state**](https://docs.astro.build/en/recipes/sharing-state-islands/) for a complete breakdown of this project, along with guides to use React, Vue, Svelte, or Solid!
Copy file name to clipboardExpand all lines: packages/astro-rss/README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The `<description>` attribute of your RSS feed's output xml.
26
26
27
27
Type: `string (required)`
28
28
29
-
The base URL to use when generating RSS item links. We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#contextsite), which includes the `site` configured in your project's `astro.config.*`:
29
+
The base URL to use when generating RSS item links. We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#site), which includes the `site` configured in your project's `astro.config.*`:
30
30
31
31
```ts
32
32
importrssfrom'@astrojs/rss';
@@ -87,7 +87,7 @@ Type: `string (optional)`
87
87
88
88
The full text content of the item suitable for presentation as HTML. If used, you should also provide a short article summary in the `description` field.
89
89
90
-
To render Markdown content from a glob result or from a content collection, see the [content rendering guide](https://docs.astro.build/en/guides/rss/#including-full-post-content).
90
+
To render Markdown content from a glob result or from a content collection, see the [content rendering guide](https://docs.astro.build/en/recipes/rss/#including-full-post-content).
'[RSS] Passing a glob result directly has been deprecated. Please migrate to the `pagesGlobToRssItems()` helper: https://docs.astro.build/en/guides/rss/',
75
+
'[RSS] Passing a glob result directly has been deprecated. Please migrate to the `pagesGlobToRssItems()` helper: https://docs.astro.build/en/recipes/rss/',
76
76
),
77
77
);
78
78
returnpagesGlobToRssItems(items);
@@ -116,7 +116,7 @@ async function validateRssOptions(rssOptions: RSSOptions) {
116
116
return[
117
117
message,
118
118
`The \`items\` property requires at least the \`title\` or \`description\` key. They must be properly typed, as well as \`pubDate\` and \`link\` keys if provided.`,
119
-
`Check your collection's schema, and visit https://docs.astro.build/en/guides/rss/#generating-items for more info.`,
119
+
`Check your collection's schema, and visit https://docs.astro.build/en/recipes/rss/#generating-items for more info.`,
120
120
].join('\n');
121
121
}
122
122
@@ -133,7 +133,7 @@ export function pagesGlobToRssItems(items: GlobResult): Promise<ValidatedRSSFeed
133
133
const{ url, frontmatter }=awaitgetInfo();
134
134
if(url===undefined||url===null){
135
135
thrownewError(
136
-
`[RSS] You can only glob entries within 'src/pages/' when passing import.meta.glob() directly. Consider mapping the result to an array of RSSFeedItems. See the RSS docs for usage examples: https://docs.astro.build/en/guides/rss/#2-list-of-rss-feed-objects`,
136
+
`[RSS] You can only glob entries within 'src/pages/' when passing import.meta.glob() directly. Consider mapping the result to an array of RSSFeedItems. See the RSS docs for usage examples: https://docs.astro.build/en/recipes/rss/`,
hint=`If the param contains slashes, try using a rest parameter: **[...${invalidParam}]**. Learn more at https://docs.astro.build/en/core-concepts/routing/#dynamic-routes`;
462
+
hint=`If the param contains slashes, try using a rest parameter: **[...${invalidParam}]**. Learn more at https://docs.astro.build/en/guides/routing/#dynamic-routes`;
0 commit comments