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
Copy file name to clipboardExpand all lines: README.md
+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
@@ -53,7 +53,7 @@ Did you find a typo, a broken link, or another item with an obvious quick fix?
53
53
54
54
If you can see what the problem is, and you know how to fix it, then you can make a PR (pull request) with the change and contribute to the docs repo yourself.
55
55
56
-
> Want to make a larger contribution? Please see [CONTRIBUTING.md](CONTRIBUTING.md) first!
56
+
> Want to make a larger contribution? Please see [CONTRIBUTING.md](./CONTRIBUTING.md) first!
Copy file name to clipboardExpand all lines: contributor-guides/writing-and-style-guide.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,11 @@ This can be easier to follow (and perhaps more reassuring!) than a statement tha
102
102
**After: add necessary context to the instruction, followed by opinionated usage**
103
103
> Add the `LanguagePicker` component to your site in a component that is shown on every page. The example below adds this to the page footer:
104
104
105
+
### Third-Party Instructions
106
+
When documenting how to use Astro with third-party tools and services, focus on actions that are necessary to integrate with Astro. Do not document usage of products that we do not maintain. For example, do not explain how to set up a new project in a CMS. If you want your reader to do something complex, consider making the entire action a prerequisite. You might also include links to relevant documentation, like an official guide.
107
+
108
+
Do not include details about another site's navigation. Your instructions should still be helpful even if the layout of the particular tool changes. However, do use the other site's vocabulary for features and settings so that your readers can search the site's own documentation for help if they need it.
109
+
105
110
<!--
106
111
107
112
-->
@@ -373,7 +378,7 @@ Here are two examples of what our code snippets look like written in Markdown, j
373
378
- highlight any occurrence of `{props.title}` and `{props.social}`
**Bereit, Features wie Authentifizierung, Datenspeicher oder Daten zu deinem Astro-Projekt hinzuzufügen?** Folge einem unserer Guides, um einen Backend-Service zu integrieren.
9
+
10
+
## Guides für Backend-Services
11
+
12
+
<BackendGuidesNav />
13
+
14
+
Beachte, dass viele dieser Seiten **Platzhalter** sind: Es handelt sich um Sammlungen von Ressourcen, die auf deinen Beitrag warten!
15
+
16
+
## Was ist ein Backend-Service?
17
+
18
+
Ein Backend-Service ist ein cloudbasiertes System, das dir dabei hilft, deine Backend-Infrastruktur zu erstellen und zu verwalten. Es stellt eine Reihe von Tools und Diensten zur Verwaltung von Datenbanken, Benutzerauthentifizierung und anderer serverseitiger Funktionalität zur Verfügung. Dies ermöglicht es dir, dich auf die Entwicklung deiner Anwendungen zu konzentrieren, ohne dir Gedanken über das Management der zugrundeliegenden Infrastruktur machen zu müssen.
19
+
20
+
## Warum sollte ich einen Backend-Service verwenden?
21
+
22
+
Du solltest über die Verwendung eines Backend-Services nachdenken, wenn dein Projekt komplexe serverseitige Anforderungen hat, zum Beispiel:
23
+
- Benutzerregistrierung und -authentifizierung
24
+
- Persistente Datenspeicherung
25
+
- Speicherung von Benutzer-hochgeladenen Inhalten oder Dateien
Copy file name to clipboardExpand all lines: src/content/docs/de/reference/api-reference.mdx
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -888,14 +888,6 @@ import { Code } from 'astro/components';
888
888
889
889
Diese Komponente bietet Syntax-Highlighting für Codeblöcke zum Zeitpunkt der Erstellung (kein clientseitiges JavaScript enthalten). Die Komponente wird intern von Shiki betrieben und unterstützt alle gängigen [Themen](https://github.com/shikijs/shiki/blob/main/docs/themes.md) und [Sprachen](https://github.com/shikijs/shiki/blob/main/docs/languages.md). Außerdem kannst du deine eigenen Themes und Sprachen hinzufügen, indem du sie an `theme` bzw. `lang` übergibst.
890
890
891
-
:::note
892
-
Wenn du einen [strict package manager](https://pnpm.io/pnpm-vs-npm#npms-flat-tree) wie `pnpm` verwendest, musst du eventuell auch Shiki installieren, damit es während des Builds funktioniert:
893
-
894
-
```bash
895
-
pnpm install shiki
896
-
```
897
-
:::
898
-
899
891
### `<Prism />`
900
892
901
893
Um die Textmarker-Komponente `Prism` zu verwenden, musst du zuerst das Paket `@astrojs/prism`**installieren**:
Copy file name to clipboardExpand all lines: src/content/docs/en/concepts/islands.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
@@ -56,7 +56,7 @@ With Astro Islands, the vast majority of your site remains pure, lightweight HTM
56
56
57
57
## What are the benefits of Islands?
58
58
59
-
The most obvious benefit to building with Astro Islands is performance: the majority of your website is converted to fast, static HTML and JavaScript is only loaded for the individual components that need it. JavaScript is one of the slowest assets that you can load per-byte, so every byte counts.
59
+
The most obvious benefit of building with Astro Islands is performance: the majority of your website is converted to fast, static HTML and JavaScript is only loaded for the individual components that need it. JavaScript is one of the slowest assets that you can load per-byte, so every byte counts.
60
60
61
61
Another benefit is parallel loading. In the example illustration above, the low-priority "image carousel" island doesn't need to block the high-priority "header" island. The two load in parallel and hydrate in isolation, meaning that the header becomes interactive immediately without having to wait for the heavier carousel lower down the page.
We welcome contributions of any size and contributors of any skill level. As an open-source project, we believe in giving back to our contributors. We are happy to help with guidance on PRs, technical writing, and turning any feature idea into a reality.
8
+
We welcome contributions of any size and contributors of any skill level. As an open-source project, we believe in giving back to our contributors. We are happy to help with guidance on PRs, technical writing, and turning any feature idea into a reality.
12
9
13
10
Want to get even more involved? See our [Governance doc](https://github.com/withastro/.github/blob/main/GOVERNANCE.md) for detailed descriptions of different roles, maintainer nomination processes, code review processes, and Code of Conduct enforcement.
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/content-collections.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
@@ -21,7 +21,7 @@ import RecipeLinks from "~/components/RecipeLinks.astro"
21
21
22
22
A **content collection** is any top-level directory inside the reserved `src/content` project directory, such as `src/content/newsletter` and `src/content/authors`. Only content collections are allowed inside the `src/content` directory. This directory cannot be used for anything else.
23
23
24
-
A **collection entry** is any piece of content stored inside of your content collection directory. Entries can use content authoring formats including Markdown (`.md`) and MDX (`.mdx` using the [MDX integration](/en/guides/integrations-guide/mdx/)) or as data formats including YAML (`.yaml`) and JSON (`.json`). We recommend using a consistent naming scheme (lower-case, dashes instead of spaces) for your files to make it easier to find and organize your content, but this is not required. You can also [exclude entries from being built](/en/core-concepts/routing/#excluding-pages) by prefixing the filename with an underscore (_).
24
+
A **collection entry** is any piece of content stored inside of your content collection directory. Entries can use content authoring formats including Markdown (`.md`) and MDX (`.mdx` using the [MDX integration](/en/guides/integrations-guide/mdx/)) or as one of two supported data formats: YAML (`.yaml`) and JSON (`.json`). We recommend using a consistent naming scheme (lower-case, dashes instead of spaces) for your files to make it easier to find and organize your content, but this is not required. You can also [exclude entries from being built](/en/core-concepts/routing/#excluding-pages) by prefixing the filename with an underscore (_).
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/deploy/netlify.mdx
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,21 @@ description: How to deploy your Astro site to the web on Netlify.
4
4
type: deploy
5
5
i18nReady: true
6
6
---
7
-
[Netlify](https://netlify.com) offers hosting and serverless backend services for web applications and static websites. Any Astro site can be hosted on Netlify!
7
+
[Netlify](https://netlify.com) offers hosting and serverless backend services for web applications and static websites. Any Astro site can be hosted on Netlify!
8
8
9
9
This guide includes instructions for deploying to Netlify through the website UI or Netlify's CLI.
10
10
11
11
## Project Configuration
12
12
13
-
Your Astro project can be deployed to Netlify in three different ways: as a static site, a server-rendered site, or an (experimental) edge-rendered site.
13
+
Your Astro project can be deployed to Netlify in three different ways: as a static site, a server-rendered site, or an edge-rendered site.
14
14
15
15
### Static Site
16
16
17
-
Your Astro project is a static site by default. You don’t need any extra configuration to deploy a static Astro site to Netlify.
17
+
Your Astro project is a static site by default. You don’t need any extra configuration to deploy a static Astro site to Netlify.
18
18
19
-
### Adapter for SSR/Edge
19
+
### Adapter for SSR
20
20
21
-
To enable SSR in your Astro project and deploy on Netlify:
21
+
To enable SSR in your Astro project and deploy on Netlify, including using Netlify's edge functions:
22
22
23
23
Add [the Netlify adapter](/en/guides/integrations-guide/netlify/) to enable SSR in your Astro project with the following `astro add` command. This will install the adapter and make the appropriate changes to your `astro.config.mjs` file in one step.
24
24
@@ -45,18 +45,21 @@ If you prefer to install the adapter manually instead, complete the following tw
45
45
adapter:netlify(),
46
46
});
47
47
```
48
-
49
-
To render your project using [Netlify's experimental Edge Functions](https://docs.netlify.com/netlify-labs/experimental-features/edge-functions/#app) instead, change the `netlify/functions` import in the Astro config file to use `netlify/edge-functions`.
50
-
```js title="astro.config.mjs" ins={3} del={2}
48
+
49
+
You can also deploy your project using Netlify's Edge Functions by adding `edgeMiddleware: true` to the Netlify adatper's configuration:
@@ -111,7 +114,7 @@ You can also create a new site on Netlify and link up your Git repository by ins
111
114
3. Run `netlify init` and follow the instructions
112
115
4. Confirm your build command (`astro build`)
113
116
114
-
The CLI will automatically detect the build settings (`astro build`) and deploy directory (`dist`), and will offer to automatically generate [a `netlify.toml` file](#netlifytoml-file) with those settings.
117
+
The CLI will automatically detect the build settings (`astro build`) and deploy directory (`dist`), and will offer to automatically generate [a `netlify.toml` file](#netlifytoml-file) with those settings.
0 commit comments