Update docs in compiler messages (#710)

* `github.com/snowpackjs/astro/blob/main/docs/*.md` -> `docs.astro.build/*/`

* convert links to docs site links

* Fix broken links that didn't work w/ the regex.

* Add changeset

* Delete five-weeks-destroy.md

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
This commit is contained in:
Caleb Jasik 2021-07-16 06:01:31 -05:00 committed by GitHub
parent f64ff85b26
commit 6d06fce6d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 33 additions and 33 deletions

View file

@ -4,4 +4,4 @@
Improve slot support, adding support for named slots and fallback content within `slot` elements.
See the new [Slots documentation](https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md#slots) for more information.
See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information.

View file

@ -19,7 +19,7 @@ allPosts.sort((a, b) => new Date(b.date) - new Date(a.date));
let firstPage = allPosts.slice(0, 2);
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -17,7 +17,7 @@ let allPosts = Astro.fetchContent('./posts/*.md');
allPosts = allPosts.sort((a, b) => new Date(b.publishDate) - new Date(a.publishDate));
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -16,7 +16,7 @@ const currentFile = currentPage === '/' ? 'src/pages/index.md' : `src/pages${cur
const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}`
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang={ content.lang ?? 'en' }>
<head>

View file

@ -46,14 +46,14 @@ The `src/components/ThemeToggle.tsx` is only responsible for applying the theme,
For more information on how to use Astro components, check the documentation pages:
- [General Instructions](https://github.com/snowpackjs/astro#readme)
- [astro.config.mjs](https://github.com/snowpackjs/astro/blob/main/docs/config.md)
- [API](https://github.com/snowpackjs/astro/blob/main/docs/api.md)
- [Command Line Interface](https://github.com/snowpackjs/astro/blob/main/docs/cli.md)
- [Collections](https://github.com/snowpackjs/astro/blob/main/docs/collections.md)
- [Development Server](https://github.com/snowpackjs/astro/blob/main/docs/dev.md)
- [Markdown](https://github.com/snowpackjs/astro/blob/main/docs/markdown.md)
- [Publishing Astro components](https://github.com/snowpackjs/astro/blob/main/docs/publishing.md)
- [Renderers](https://github.com/snowpackjs/astro/blob/main/docs/renderers.md)
- [Styling](https://github.com/snowpackjs/astro/blob/main/docs/styling.md)
- [.astro Syntax](https://github.com/snowpackjs/astro/blob/main/docs/syntax.md)
- [Quick Start](https://docs.astro.build/quick-start)
- [astro.config.mjs](https://docs.astro.build/reference/configuration-reference)
- [API](https://docs.astro.build/reference/api-reference)
- [Command Line Interface](https://docs.astro.build/reference/cli-reference)
- [Collections](https://docs.astro.build/core-concepts/collections)
- [Development Server](https://docs.astro.build/reference/dev/)
- [Markdown](https://docs.astro.build/guides/markdown-content)
- [Publishing Astro components](https://docs.astro.build/guides/publish-to-npm)
- [Renderers](https://docs.astro.build/reference/renderer-reference)
- [Styling](https://docs.astro.build/guides/styling)
- [.astro Syntax](https://docs.astro.build/core-concepts/astro-components)

View file

@ -8,7 +8,7 @@ import SvelteCounter from '../components/SvelteCounter.svelte';
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -4,7 +4,7 @@ import Counter from '../components/Counter.jsx'
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -4,7 +4,7 @@ import Counter from '../components/Counter.jsx'
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -4,7 +4,7 @@ import Counter from '../components/Counter.svelte'
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -4,7 +4,7 @@ import Counter from '../components/Counter.vue'
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -11,7 +11,7 @@ const projects = Astro.fetchContent('./project/**/*.md');
const featuredProject = projects[0];
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -11,7 +11,7 @@ import Tour from '../components/Tour.astro';
let title = 'My Astro Site';
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>
@ -48,7 +48,7 @@ let title = 'My Astro Site';
- Note: by default, these components are NOT interactive on the client.
- The `:visible` directive tells Astro to make it interactive.
-
- See https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/component-hydration.md
- See https://docs.astro.build/core-concepts/component-hydration/
-->
<!-- ASTRO:COMPONENT_MARKUP -->
</main>

View file

@ -16,7 +16,7 @@ const variable = 'content';
const items = ['A', 'B', 'C'];
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<Layout content={{ title }}>
<Markdown>

View file

@ -6,7 +6,7 @@ import AdminsVue from '../components/AdminsVue.vue';
import AdminsPreact from '../components/AdminsPreact.jsx';
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -3,7 +3,7 @@
import Button from '../components/Button.astro';
// Full Astro Component Syntax:
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
// https://docs.astro.build/core-concepts/astro-components/
---
<html lang="en">
<head>

View file

@ -66,4 +66,4 @@
- b3886c2: Enhanced **Markdown** support! Markdown processing has been moved from `micromark` to `remark` to prepare Astro for user-provided `remark` plugins _in the future_.
This change also introduces a built-in `<Markdown>` component for embedding Markdown and any Astro-supported component format inside of `.astro` files. [Read more about Astro's Markdown support.](https://github.com/snowpackjs/astro/blob/main/docs/markdown.md)
This change also introduces a built-in `<Markdown>` component for embedding Markdown and any Astro-supported component format inside of `.astro` files. [Read more about Astro's Markdown support.](https://docs.astro.build/markdown/)

View file

@ -46,7 +46,7 @@
- 8f4562a: Improve slot support, adding support for named slots and fallback content within `slot` elements.
See the new [Slots documentation](https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md#slots) for more information.
See the new [Slots documentation](https://docs.astro.build/core-concepts/astro-components/#slots) for more information.
- 9859f53: Correcting typo in ReadMe
@ -211,7 +211,7 @@
<div>{text}</div>
```
[Read more about the `.astro` syntax](https://github.com/snowpackjs/astro/blob/main/docs/syntax.md#data-and-props)
[Read more about the `.astro` syntax](https://docs.astro.build/syntax/#data-and-props)
***
@ -439,7 +439,7 @@ _Rolling back to 0.13.10 to prevent a regression in the dev server output._
### Patch Changes
- 0d6afae: Fixes a few small bugs with the `Markdown` component when there are multiple instances on the same page
- 1d930ff: Adds [`--verbose`](https://github.com/snowpackjs/astro/blob/main/docs/cli.md#--verbose) and [`--reload`](https://github.com/snowpackjs/astro/blob/main/docs/cli.md#--reload) flags to the `astro` CLI.
- 1d930ff: Adds [`--verbose`](https://docs.astro.build/cli.md#--verbose) and [`--reload`](https://github.com/snowpackjs/astro/blob/main/docs/cli/#--reload) flags to the `astro` CLI.
## 0.12.3
@ -566,7 +566,7 @@ _Rolling back to 0.13.10 to prevent a regression in the dev server output._
- b3886c2: Enhanced **Markdown** support! Markdown processing has been moved from `micromark` to `remark` to prepare Astro for user-provided `remark` plugins _in the future_.
This change also introduces a built-in `<Markdown>` component for embedding Markdown and any Astro-supported component format inside of `.astro` files. [Read more about Astro's Markdown support.](https://github.com/snowpackjs/astro/blob/main/docs/markdown.md)
This change also introduces a built-in `<Markdown>` component for embedding Markdown and any Astro-supported component format inside of `.astro` files. [Read more about Astro's Markdown support.](https://docs.astro.build/markdown/)
### Patch Changes

View file

@ -264,7 +264,7 @@ async function load(config: RuntimeConfig, rawPathname: string | undefined): Pro
`[${reqPath}]
The window object is not available during server-side rendering (SSR).
Try using \`import.meta.env.SSR\` to write SSR-friendly code.
https://github.com/snowpackjs/astro/blob/main/docs/reference/api-reference.md#importmeta`
https://docs.astro.build/reference/api-reference/#importmeta`
),
};
}

View file

@ -60,7 +60,7 @@ React('Throws helpful error message on window SSR', async () => {
`[/window]
The window object is not available during server-side rendering (SSR).
Try using \`import.meta.env.SSR\` to write SSR-friendly code.
https://github.com/snowpackjs/astro/blob/main/docs/reference/api-reference.md#importmeta`
https://docs.astro.build/reference/api-reference/#importmeta`
);
});