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: contributor-guides/translating-astro-docs.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
3
3
Thanks for your interest in helping us translate [docs.astro.build](https://docs.astro.build/)! This can be a great way to get involved with open-source development without having to code.
4
4
5
-
**Participating in Hacktoberfest?** See how you can get recognized for your translation PRs and PR reviews in our [Hacktoberfest guide](../.github/hacktoberfest.md).
6
-
7
5
Currently, we are aiming to translate the Astro documentation into the following languages:
**Bist du bereit, deine Astro-Website zu erzeugen und zu veröffentlichen?**
9
10
Folge einer unserer Anleitungen zu den verschiedenen Hosting-Anbietern, oder scrolle weiter nach unten, um allgemeine Informationen zur Veröffentlichung einer Astro-Website zu erhalten.
@@ -41,13 +42,27 @@ Manche Hosting-Anbieter stellen eine eigene Kommandozeilen­schnittstelle (CL
41
42
42
43
1. Installiere die CLI deines Hosting-Anbieters global, zum Beispiel:
43
44
44
-
```bash
45
-
npm install --global netlify-cli
46
-
```
47
-
48
-
1. Starte die CLI und folge den Anweisungen zur Authentifizierung, Einrichtung usw.
49
-
50
-
1. Erzeuge deine Website und veröffentliche sie bei deinem Hosting-Anbieter.
45
+
<PackageManagerTabs>
46
+
<Fragmentslot="npm">
47
+
```shell
48
+
npm install --global netlify-cli
49
+
```
50
+
</Fragment>
51
+
<Fragmentslot="pnpm">
52
+
```shell
53
+
pnpm add --global netlify-cli
54
+
```
55
+
</Fragment>
56
+
<Fragmentslot="yarn">
57
+
```shell
58
+
yarn global add netlify-cli
59
+
```
60
+
</Fragment>
61
+
</PackageManagerTabs>
62
+
63
+
2. Starte die CLI und folge den Anweisungen zur Authentifizierung, Einrichtung usw.
64
+
65
+
3. Erzeuge deine Website und veröffentliche sie bei deinem Hosting-Anbieter.
51
66
52
67
Viele gängige Anbieter bauen und veröffentlichen deine Website für dich. Im Normalfall werden sie dein Projekt als Astro-Website erkennen und sollten die folgenden Konfigurationseinstellungen zum Erzeugen und Veröffentlichen festlegen (falls nicht, können diese angepasst werden):
53
68
@@ -60,15 +75,29 @@ Manche Hosting-Anbieter stellen eine eigene Kommandozeilen­schnittstelle (CL
60
75
61
76
## Erzeuge deine Website lokal
62
77
63
-
Viele Anbieter wie Netlify und Vercel erzeugen deine Website für dich und veröffentlichen das Ergebnis dann im Internet. Manche Anbieter setzen aber voraus, dass du deine Website lokal selbst erzeugst und dann entweder einen Veröffentlichungs-Befehl ausführst oder die Build-Ausgabe hochlädst.
78
+
Viele Anbieter wie Netlify und Vercel erzeugen deine Website für dich und veröffentlichen das Ergebnis dann im Internet. Manche Anbieter setzen aber voraus, dass du deine Website lokal selbst erzeugst und dann entweder einen Veröffentlichungs-Befehl ausführst oder die Build-Ausgabe hochlädst.
64
79
65
80
Vielleicht möchtest du deine Website auch lokal erzeugen, um sie dir als Vorschau anzusehen oder mögliche Fehler und Warnungen in deiner eigenen Umgebung zu entdecken.
66
81
67
82
Nutze den Befehl `npm run build`, um deine Astro-Website zu erzeugen:
68
83
69
-
```bash
70
-
npm run build
71
-
```
84
+
<PackageManagerTabs>
85
+
<Fragmentslot="npm">
86
+
```shell
87
+
npm run build
88
+
```
89
+
</Fragment>
90
+
<Fragmentslot="pnpm">
91
+
```shell
92
+
pnpm run build
93
+
```
94
+
</Fragment>
95
+
<Fragmentslot="yarn">
96
+
```shell
97
+
yarn run build
98
+
```
99
+
</Fragment>
100
+
</PackageManagerTabs>
72
101
73
102
Die Build-Ausgabe wird standardmäßig ins Verzeichnis `dist/` geschrieben. Dieses Ziel kann über die [`outDir`-Konfigurationsoption](/de/reference/configuration-reference/#outdir) geändert werden.
Astro baut auf Vite auf und unterstützt sowohl Vite- als auch Rollup-Plugins. Dieses Rezept verwendet ein Rollup-Plugin, um eine YAML-Datei (`.yml`) in Astro importieren zu können.
9
11
10
12
## Rezept
11
13
12
14
1. Installiere `@rollup/plugin-yaml`:
13
15
14
-
```bash
16
+
<PackageManagerTabs>
17
+
<Fragmentslot="npm">
18
+
```shell
15
19
npm install @rollup/plugin-yaml --save-dev
16
20
```
21
+
</Fragment>
22
+
<Fragmentslot="pnpm">
23
+
```shell
24
+
pnpm add @rollup/plugin-yaml --save-dev
25
+
```
26
+
</Fragment>
27
+
<Fragmentslot="yarn">
28
+
```shell
29
+
yarn add @rollup/plugin-yaml --save-dev
30
+
```
31
+
</Fragment>
32
+
</PackageManagerTabs>
17
33
18
34
2. Importiere das Plugin in deine `astro.config.mjs` und füge es dem Vite Plugins-Array hinzu:
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/cms/tina-cms.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
12
12
13
13
## Integrating with Astro
14
14
15
-
To get started, you'll need an existing Astro project.
15
+
To get started, you'll need an existing Astro project.
16
16
17
17
1. Run the following command to install Tina into your Astro project.
18
18
@@ -38,8 +38,8 @@ To get started, you'll need an existing Astro project.
38
38
- When prompted "What framework are you using", choose **Other**.
39
39
- When asked where public assets are stored, press <kbd>Enter</kbd>.
40
40
41
-
After this has finished, you should now have a `.tina` folder in the root of your project and an `admin` folder in your public directory. It will also create a Markdown file at `content/posts/hello-world.md`.
42
-
41
+
After this has finished, you should now have a `.tina` folder in the root of your project and a generated `hello-world.md`file at `content/posts`.
42
+
43
43
2. Change the `dev` script in `package.json`:
44
44
45
45
<PackageManagerTabs>
@@ -132,7 +132,7 @@ To get started, you'll need an existing Astro project.
132
132
name:"body",
133
133
label:"Body",
134
134
isBody:true,
135
-
},
135
+
},
136
136
],
137
137
},
138
138
],
@@ -148,7 +148,7 @@ To get started, you'll need an existing Astro project.
0 commit comments