Skip to content

Commit d1e8be5

Browse files
authored
Merge branch 'main' into reference
2 parents 3339bee + 183c9c7 commit d1e8be5

5 files changed

Lines changed: 42 additions & 5 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
- What does this PR change? Give us a brief description.
77
- Did you change something visual? A before/after screenshot can be helpful.
88

9-
<!-- TAKING PART IN HACKTOBERFEST? LET US KNOW! -->
10-
<!-- See https://contribute.docs.astro.build/guides/hacktoberfest/ for more details. -->
11-
129
<!--
1310
Here’s what will happen next:
1411
One or more of our maintainers will take a look and may ask you to make changes.

docs/src/content/docs/ko/resources/plugins.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ Starlight 팀이 지원하는 공식 플러그인과 Starlight 사용자가 관
9393
title="starlight-site-graph"
9494
description="페이지 사이드바에 대화형 사이트 그래프를 추가합니다."
9595
/>
96+
<LinkCard
97+
href="https://github.com/HiDeoo/starlight-sidebar-topics"
98+
title="starlight-sidebar-topics"
99+
description="문서를 각각 고유한 사이드바가 있는 여러 섹션으로 분할하세요."
100+
/>
101+
<LinkCard
102+
href="https://github.com/trueberryless-org/starlight-sidebar-topics-dropdown"
103+
title="starlight-sidebar-topics-dropdown"
104+
description="문서 페이지를 여러 개의 하위 페이지로 분할하고 사이드바의 드롭다운 메뉴를 사용하여 하위 페이지 간에 전환할 수 있습니다."
105+
/>
96106
</CardGrid>
97107

98108
### 커뮤니티 테마

docs/src/content/docs/ru/guides/i18n.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,13 @@ const arabicDirection = Astro.locals.t.dir('ar');
393393

394394
Вы можете использовать [`Astro.currentLocale`](https://docs.astro.build/ru/reference/api-reference/#astrocurrentlocale) для получения текущей локали в компонентах `.astro`.
395395

396-
Следующий пример считывает текущую локаль и использует её для создания ссылки на страницу о сайте на текущем языке:
396+
Следующий пример считывает текущую локаль и использует её с помощью хелпера [`getRelativeLocaleUrl()`](https://docs.astro.build/ru/reference/modules/astro-i18n/#getrelativelocaleurl) для генерации ссылки на страницу «О сайте» на текущем языке:
397397

398398
```astro
399399
---
400400
// src/components/AboutLink.astro
401+
import { getRelativeLocaleUrl } from 'astro:i18n';
401402
---
402403
403-
<a href={`/${Astro.currentLocale}/about`}>О сайте</a>
404+
<a href={getRelativeLocaleUrl(Astro.currentLocale ?? 'en', 'about')}>О сайте</a>
404405
```

docs/src/content/docs/ru/guides/overriding-components.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ import { Steps } from '@astrojs/starlight/components';
2424
1. Выберите компонент Starlight, который вы хотите переопределить.
2525
Вы можете найти полный список компонентов в [Справочнике по переопределениям](/ru/reference/overrides/).
2626

27+
:::tip
28+
Не уверены, какой компонент нужно переопределить? Используйте [интерактивную карту переопределений Starlight](https://starlight-overrides-map.netlify.app/), чтобы узнать названия UI-компонентов Starlight.
29+
:::
30+
2731
В этом примере будет переопределён компонент [`SocialIcons`](/ru/reference/overrides/#socialicons) в навигационной панели страницы.
2832

2933
2. Создайте компонент Astro для замены компонента Starlight.

docs/src/content/docs/ru/resources/plugins.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ sidebar:
8888
title="starlight-heading-badges"
8989
description="Добавление значков в заголовки Markdown и MDX."
9090
/>
91+
<LinkCard
92+
href="https://github.com/Fevol/starlight-site-graph"
93+
title="starlight-site-graph"
94+
description="Добавление интерактивного графика сайта в боковую панель."
95+
/>
96+
<LinkCard
97+
href="https://github.com/HiDeoo/starlight-sidebar-topics"
98+
title="starlight-sidebar-topics"
99+
description="Разделение документации на разделы с собственными боковыми панелями."
100+
/>
101+
<LinkCard
102+
href="https://github.com/trueberryless-org/starlight-sidebar-topics-dropdown"
103+
title="starlight-sidebar-topics-dropdown"
104+
description="Разделение страницы с документами на несколько подстраниц и переключение между ними с помощью выпадающего меню в боковой панели."
105+
/>
91106
</CardGrid>
92107

93108
### Темы от сообщества
@@ -100,6 +115,16 @@ sidebar:
100115
title="starlight-theme-rapide"
101116
description="Тема Starlight, вдохновлённая темой Visual Studio Code Vitesse."
102117
/>
118+
<LinkCard
119+
href="https://github.com/Fevol/starlight-theme-obsidian"
120+
title="starlight-theme-obsidian"
121+
description="Тема Starlight, вдохновлённая стилем сайтов Obsidian Publish."
122+
/>
123+
<LinkCard
124+
href="https://github.com/TheOtterlord/catppuccin-starlight"
125+
title="catppuccin-starlight"
126+
description="Успокаивающая пастельная тема для Starlight"
127+
/>
103128
</CardGrid>
104129

105130
## Инструменты и интеграции от сообщества

0 commit comments

Comments
 (0)