Skip to content

Commit

Permalink
Merge branch 'main' into hd-refactor-astro-i18n
Browse files Browse the repository at this point in the history
* main: (45 commits)
  i18n(tr): add `showcase.mdx` (withastro#1896)
  [ci] format
  i18n(zh-cn): Update `authoring-content.md` (withastro#1901)
  [ci] format
  [ci] release (withastro#1897)
  [ci] format
  i18n(tr): update `authoring-content.md` (withastro#1887)
  Micro-optimization: clean up `<details>` CSS (withastro#1892)
  [ci] format
  i18n(tr): update `components.md` file (withastro#1889)
  [ci] format
  i18n(tr): add css-and-tailwind (withastro#1893)
  [ci] format
  [ci] release (withastro#1890)
  Adds custom styles for `<details>` and `<summary>` elements in Markdown content (withastro#1735)
  Update @astrojs/mdx to v3 (withastro#1846)
  [ci] format
  [ci] release (withastro#1869)
  Add BlueSky social icon (withastro#1871)
  [ci] format
  ...
  • Loading branch information
HiDeoo committed May 20, 2024
2 parents e731ab3 + 5177283 commit 897f0bf
Show file tree
Hide file tree
Showing 39 changed files with 1,091 additions and 47 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-cats-taste.md

This file was deleted.

5 changes: 4 additions & 1 deletion docs/src/content/docs/fr/guides/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,22 @@ import IconsList from '~/components/icons-list.astro';

Starlight fournit un ensemble d'icônes courantes que vous pouvez afficher dans votre contenu à l'aide du composant `<Icon>`.

Chaque `<Icon>` nécessite un [`name`](#toutes-les-icônes) et peut optionnellement inclure un attribut `label`, `size` et `color`.
Chaque `<Icon>` nécessite un attribut [`name`](#toutes-les-icônes) et peut optionnellement inclure un `label` pour fournir un contexte aux lecteurs d'écran.
Les attributs `size` et `color` peuvent être utilisés pour ajuster l'apparence de l'icône en utilisant des unités et valeurs de couleur CSS.
```mdx
# src/content/docs/exemple.mdx
import { Icon } from '@astrojs/starlight/components';
<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />
```
Le code ci-dessus génère ce qui suit sur la page :
<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />
#### Toutes les icônes
Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/fr/reference/overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ Le chemin de base utilisé pour servir une langue. `undefined` pour les slugs de

Le titre du site pour la langue de cette page.

#### `siteTitleHref`

**Type :** `string`

La valeur de l’attribut `href` du titre du site, renvoyant à la page d'accueil, par exemple `/`.
Pour les sites multilingues, cette valeur inclura la locale actuelle, par exemple `/fr/` ou `/zh-cn/`.

#### `slug`

**Type :** `string`
Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/fr/resources/community-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,12 @@ import YouTubeGrid from '~/components/youtube-grid.astro';
description:
"Configurer un projet Starlight dans un sous-répertoire au sein d'un site Next.js",
},
{
href: 'https://www.youtube.com/watch?v=5pq80drDrNs',
title:
"J'ai recréé la documentation de Shadcn en 30 minutes avec cet outil incroyable",
description:
"Dans cette vidéo, je passe en revue ce qui rend Starlight si cool et pourquoi vous voudriez l'essayer avec votre prochain projet.",
},
]}
/>
25 changes: 25 additions & 0 deletions docs/src/content/docs/guides/authoring-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,31 @@ A code block’s optional title can be set either with a `title="..."` attribute
```
````
## Details
Details (also known as “disclosures” or “accordions”) are useful to hide content that is not immediately relevant.
Users can click a short summary to expand and view the full content.
Use the standard HTML [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) and [`<summary>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary) elements in your Markdown content to create a disclosure widget.
You can nest any other Markdown syntax inside a `<details>` element.
<details>
<summary>Where and when is the Andromeda constellation most visible?</summary>
The [Andromeda constellation](<https://en.wikipedia.org/wiki/Andromeda_(constellation)>) is most visible in the night sky during the month of November at latitudes between `+90°` and `−40°`.
</details>
```md
<details>
<summary>Where and when is the Andromeda constellation most visible?</summary>
The [Andromeda constellation](<https://en.wikipedia.org/wiki/Andromeda_(constellation)>) is most visible in the night sky during the month of November at latitudes between `+90°` and `−40°`.
</details>
```
## Other common Markdown features
Starlight supports all other Markdown authoring syntax, such as lists and tables. See the [Markdown Cheat Sheet from The Markdown Guide](https://www.markdownguide.org/cheat-sheet/) for a quick overview of all the Markdown syntax elements.
Expand Down
5 changes: 4 additions & 1 deletion docs/src/content/docs/guides/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -419,19 +419,22 @@ import IconsList from '~/components/icons-list.astro';

Starlight provides a set of common icons that you can display in your content using the `<Icon>` component.

Each `<Icon>` requires a [`name`](#all-icons) and can optionally include a `label`, `size`, and `color` attribute.
Each `<Icon>` requires a [`name`](#all-icons) and can optionally include a `label` to provide context for screen readers.
The `size` and `color` attributes can be used to adjust the icon’s appearance using CSS units and color values.

```mdx
# src/content/docs/example.mdx
import { Icon } from '@astrojs/starlight/components';
<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />
```

The code above generates the following on the page:

<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />

#### All icons

Expand Down
5 changes: 4 additions & 1 deletion docs/src/content/docs/ko/guides/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -425,19 +425,22 @@ import IconsList from '~/components/icons-list.astro';

Starlight는 `<Icon>` 컴포넌트를 사용하여 콘텐츠에 표시할 수 있는 공통 아이콘 세트를 제공합니다.

`<Icon>`에는 [`name`](#모든-아이콘)이 필요하며 선택적으로 `label`, `size``color` 속성을 포함할 수 있습니다.
`<Icon>`에는 [`name`](#모든-아이콘)이 필요하며 스크린 리더에 컨텍스트를 제공하기 위해 선택적으로 `label`을 포함할 수 있습니다.
CSS 단위와 색상 값을 사용하여 아이콘의 모양을 조정하는 데 `size``color` 속성을 사용할 수 있습니다.

```mdx
# src/content/docs/example.mdx
import { Icon } from '@astrojs/starlight/components';
<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />
```

위 코드는 페이지에 다음을 생성합니다.

<Icon name="star" color="goldenrod" size="2rem" />
<Icon name="rocket" color="var(--sl-color-text-accent)" />

#### 모든 아이콘

Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/ko/reference/overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ Starlight는 사용자 정의 컴포넌트에 다음 속성들을 전달합니

이 페이지의 로케일에 대한 사이트 제목입니다.

#### `siteTitleHref`

**타입:** `string`

`/`처럼 홈페이지와 연결되는 사이트 제목 `href` 속성의 값입니다.
다국어 사이트의 경우 `/en/` 또는 `/zh-cn/`과 같은 현재 로케일이 포함됩니다.

#### `slug`

**타입:** `string`
Expand Down
7 changes: 7 additions & 0 deletions docs/src/content/docs/ko/resources/community-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,12 @@ import YouTubeGrid from '~/components/youtube-grid.astro';
description:
'Next.js 웹사이트 내 하위 디렉터리 프로젝트로 Starlight 설정',
},
{
href: 'https://www.youtube.com/watch?v=5pq80drDrNs',
title:
'이 놀라운 도구를 사용하여 Shadcn의 문서를 30분 만에 다시 만들었습니다.',
description:
'이 비디오에서는 Starlight가 왜 그렇게 멋진지, 그리고 왜 다음 프로젝트에서 Starlight를 사용해 보고 싶은지 설명합니다.',
},
]}
/>
7 changes: 7 additions & 0 deletions docs/src/content/docs/reference/overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ The base path at which a language is served. `undefined` for root locale slugs.

The site title for this page’s locale.

#### `siteTitleHref`

**Type:** `string`

The value for the site title’s `href` attribute, linking back to the homepage, e.g. `/`.
For multilingual sites this will include the current locale, e.g. `/en/` or `/zh-cn/`.

#### `slug`

**Type:** `string`
Expand Down
6 changes: 6 additions & 0 deletions docs/src/content/docs/resources/community-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,11 @@ import YouTubeGrid from '~/components/youtube-grid.astro';
description:
'Set up Starlight as a sub-directory project inside a Next.js website',
},
{
href: 'https://www.youtube.com/watch?v=5pq80drDrNs',
title: "I Recreated Shadcn's Docs In 30 Minutes With This Amazing Tool",
description:
'In this video I go over what makes Starlight so cool and why you may want to give it a try on your next project.',
},
]}
/>
2 changes: 1 addition & 1 deletion docs/src/content/docs/tr/environmental-impact.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Doğa Dostu Dokümanlar
description: Starlight'ın daha çevreci dokümantasyon sitesi oluşturmanda nasıl yardımcı olacağını ve karbon ayakizini nasıl düşüreceğini öğren.
---

Web endüstrisinin iklime etkisinin [%2][sf] ila [4% arasında küresel karbon emisyonu][bbc]'na sahip olduğu tahmin ediliyor; kabaca havayolları endüstrisindeki emisyon oranında.
Web endüstrisinin iklime etkisinin [%2][sf] ila [%4 arasında küresel karbon emisyonu][bbc]'na sahip olduğu tahmin ediliyor; kabaca havayolları endüstrisindeki emisyon oranında.
Bir websitesinin ekolojik etkisini hesaplamada çok fazla karmaşık etken var, ancak bu rehber dokümantasyon sitenizin çevresel ayakizini düşürmek için birkaç ipucu içerir.

İyi haber şu ki, Starlight'ı seçmek mükemmel bir başlangıç.
Expand Down
Loading

0 comments on commit 897f0bf

Please sign in to comment.