Skip to content

Commit

Permalink
Merge branch 'main' into i18n/fr-update-integrations-guide/cloudflare…
Browse files Browse the repository at this point in the history
….mdx
  • Loading branch information
thomasbnt authored Jan 11, 2025
2 parents 2aef503 + 8cea7db commit 29d6e1d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 73 deletions.
11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/OTHER.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE/REQUEST.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: Support & Community 💁
- name: 💡 New content idea
url: https://github.com/withastro/docs/discussions/new?category=ideas
about: Share an idea for new content.
- name: 💁 Support & Community
url: https://astro.build/chat
about: 'This issue tracker is not for support questions. Our Discord server hosts an active community of Astro users. Come join us to discuss Astro or find assistance!'
about: 'This issue tracker is not for support questions. Join us on Discord for assistance!'
- name: 📚 Contribute
url: https://contribute.docs.astro.build
about: 'Read our contributor docs.'
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/cms/contentful.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Feel free to add as many blog posts as you want, then switch to your favorite co

Create a new interface called `BlogPost` and add it to your `contentful.ts` file in `src/lib/`. This interface will match the fields of your blog post content type in Contentful. You will use it to type your blog post entries response.

```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12}
```ts title="src/lib/contentful.ts" ins="type { EntryFieldTypes }" ins={4-13}
import * as contentful from "contentful";
import type { EntryFieldTypes } from "contentful";

Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/en/guides/markdown-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Collections use content-specfic, optimized APIs for [querying and rendering your

After importing or querying Markdown files, you can write dynamic HTML templates in your `.astro` components that include frontmatter data and body content.

```md title="src/posts/great-post.md"
```md title="src/pages/posts/great-post.md"
---
title: 'The greatest post of all time'
author: 'Ben'
Expand All @@ -50,8 +50,8 @@ Here is my _great_ post!

```astro title="src/pages/my-posts.astro"
---
import * as greatPost from '../posts/great-post.md';
const posts = Object.values(import.meta.glob('../posts/*.md', { eager: true }));
import * as greatPost from './posts/great-post.md';
const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true }));
---
<p>{greatPost.frontmatter.title}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
<DontEditWarning />


> **SessionStorageInitError**: Error when initializing session storageDRIVER ? ` WITH DRIVER ${DRIVER` : ''}. ERROR ?? ''
> Error when initializing session storage with driver `DRIVER`. `ERROR`
## What went wrong?
Thrown when the session storage could not be initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
<DontEditWarning />


> **SessionStorageSaveError**: Error when saving session dataDRIVER ? ` WITH DRIVER ${DRIVER` : ''}. ERROR ?? ''
> Error when saving session data with driver `DRIVER`. `ERROR`
## What went wrong?
Thrown when the session data could not be saved.
Expand Down
7 changes: 4 additions & 3 deletions src/content/docs/fr/guides/cms/contentful.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Pour vous connecter à votre espace Contentful, installez les deux éléments su
Ensuite, créez un nouveau fichier appelé `contentful.ts` dans le répertoire `src/lib/` de votre projet.

```ts title="src/lib/contentful.ts"
import contentful from "contentful";
import * as contentful from "contentful";

export const contentfulClient = contentful.createClient({
space: import.meta.env.CONTENTFUL_SPACE_ID,
Expand Down Expand Up @@ -220,8 +220,9 @@ N'hésitez pas à ajouter autant d'articles de blog que vous le souhaitez, puis

Créez une nouvelle interface appelée `BlogPost` et ajoutez-la à votre fichier `contentful.ts` dans `src/lib/`. Cette interface correspondra aux champs de votre type de contenu blog post dans Contentful. Vous l'utiliserez pour rédiger vos articles de blog.

```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12}
import contentful, { EntryFieldTypes } from "contentful";
```ts title="src/lib/contentful.ts" ins="type { EntryFieldTypes }" ins={4-13}
import * as contentful from "contentful";
import type { EntryFieldTypes } from "contentful";

export interface BlogPost {
contentTypeId: "blogPost",
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ko/guides/cms/contentful.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Contentful space의 **Content** 섹션에서 **Add Entry** 버튼을 클릭하

`BlogPost`라는 새 인터페이스를 만들어 `src/lib/` 디렉터리에 있는 `contentful.ts` 파일에 추가하세요. 이 인터페이스는 Contentful의 블로그 게시물 콘텐츠 타입 필드와 일치합니다. 이는 블로그 게시물 항목 응답의 타입을 지정하는 데 사용됩니다.

```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12}
```ts title="src/lib/contentful.ts" ins="type { EntryFieldTypes }" ins={4-13}
import * as contentful from "contentful";
import type { EntryFieldTypes } from "contentful";

Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/ko/guides/markdown-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Markdown 콘텐츠와 프런트매터 속성은 [로컬 파일 가져오기](#ma

Markdown 파일을 가져오거나 쿼리한 후에는 프런트매터 데이터와 본문 콘텐츠를 포함하는 `.astro` 컴포넌트에 동적 HTML 템플릿을 작성할 수 있습니다.

```md title="src/posts/great-post.md"
```md title="src/pages/posts/great-post.md"
---
title: 'The greatest post of all time'
author: 'Ben'
Expand All @@ -50,8 +50,8 @@ Here is my _great_ post!

```astro title="src/pages/my-posts.astro"
---
import * as greatPost from '../posts/great-post.md';
const posts = Object.values(import.meta.glob('../posts/*.md', { eager: true }));
import * as greatPost from './posts/great-post.md';
const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true }));
---
<p>{greatPost.frontmatter.title}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **SessionStorageInitError**: Error when initializing session storageDRIVER ? ` WITH DRIVER ${DRIVER` : ''}. ERROR ?? ''
> Error when initializing session storage with driver `DRIVER`. `ERROR`
## 무엇이 잘못되었나요?
세션 스토리지를 초기화할 수 없을 때 발생합니다.

**더 보기:**
- [experimental.session](/ko/reference/experimental-flags/sessions/)


Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **SessionStorageSaveError**: Error when saving session dataDRIVER ? ` WITH DRIVER ${DRIVER` : ''}. ERROR ?? ''
> Error when saving session data with driver `DRIVER`. `ERROR`
## 무엇이 잘못되었나요?
세션 데이터를 저장할 수 없을 때 발생합니다.

**더 보기:**
- [experimental.session](/ko/reference/experimental-flags/sessions/)


0 comments on commit 29d6e1d

Please sign in to comment.