Skip to content

Commit f2123a1

Browse files
authored
i18n(ru): update some translations (#2933)
* Update ru/guides/authoring-content.mdx * Update ru/guides/css-and-tailwind.mdx * Update ru/guides/sidebar.mdx * Update ru/reference/frontmatter.md * Update ru/resources/community-content.mdx * Update ru/resources/plugins.mdx * Add ru/resources/themes.mdx
1 parent 9a5450d commit f2123a1

File tree

7 files changed

+98
-45
lines changed

7 files changed

+98
-45
lines changed

‎docs/src/content/docs/ru/guides/authoring-content.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title: Заголовок страницы
2121
```
2222

2323
Каждая страница должна включать хотя бы заголовок.
24-
См. [ссылку на метаданные](/ru/reference/frontmatter/) для получения информации обо всех доступных полях и о том, как добавлять настраиваемые поля.
24+
См. [справочник по метаданным](/ru/reference/frontmatter/) для получения информации обо всех доступных полях и о том, как добавлять настраиваемые поля.
2525

2626
## Встроенные стили
2727

‎docs/src/content/docs/ru/guides/css-and-tailwind.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
77

88
Вы можете стилизовать ваш сайт Starlight с помощью CSS-файлов или использовать плагин Starlight Tailwind.
99

10+
Для быстрого изменения стандартного стиля вашего сайта ознакомьтесь с [темами от сообщества](/ru/resources/themes/).
11+
1012
## Ваши CSS стили
1113

1214
Настройте стили, применяемые к вашему сайту Starlight, предоставив дополнительные CSS-файлы для изменения или расширения стандартных стилей Starlight.

‎docs/src/content/docs/ru/guides/sidebar.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ starlight({
390390
]}
391391
/>
392392

393+
Узнайте больше об [использовании и настройке значков](/ru/components/badges/#использование).
394+
393395
## Пользовательские HTML-атрибуты
394396

395397
Ссылки также могут включать свойство `attrs` для добавления пользовательских HTML-атрибутов к элементу ссылки.

‎docs/src/content/docs/ru/reference/frontmatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ sidebar:
400400

401401
## Настройка схемы метаданных
402402

403-
Схема метаданных для коллекции контента Starlight `docs` настраивается в файле `src/content.config.ts` с помощью помощника `docsSchema()`:
403+
Схема метаданных для коллекции контента Starlight `docs` настраивается в файле `src/content.config.ts` с помощью хелпера `docsSchema()`:
404404

405405
```ts {4,7}
406406
// src/content.config.ts

‎docs/src/content/docs/ru/resources/community-content.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Откройте для себя подготовленные со
55

66
:::tip[Добавьте собственную работу!]
77
Вы создали какой-то материал о Starlight?
8-
Откройте PR, добавив ссылку на созданную страницу!
8+
Откройте PR, добавляющий вашу ссылку на эту страницу!
99
:::
1010

1111
import { CardGrid, LinkCard } from '@astrojs/starlight/components';

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

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar:
77

88
:::tip[Добавьте собственную работу!]
99
Вы создали плагин или инструмент для Starlight?
10-
Откройте PR, добавив ссылку на эту страницу!
10+
Откройте PR, добавляющий ваш плагин на эту страницу!
1111
:::
1212

1313
## Плагины
@@ -41,7 +41,7 @@ sidebar:
4141
<LinkCard
4242
href="https://github.com/HiDeoo/starlight-blog"
4343
title="starlight-blog"
44-
description="Добавление блога на сайт документации."
44+
description="Добавьте блог на сайт документации."
4545
/>
4646
<LinkCard
4747
href="https://github.com/HiDeoo/starlight-openapi"
@@ -56,12 +56,12 @@ sidebar:
5656
<LinkCard
5757
href="https://astro-ghostcms.xyz/intro/starlight/install/"
5858
title="starlight-ghostcms"
59-
description="Добавление записей в блог GhostCMS вместе с документами Starlight."
59+
description="Добавьте записи в блог GhostCMS вместе с документами Starlight."
6060
/>
6161
<LinkCard
6262
href="https://github.com/HiDeoo/starlight-image-zoom"
6363
title="starlight-image-zoom"
64-
description="Добавление возможности масштабирования к изображениям вашей документации."
64+
description="Добавьте возможности масштабирования к изображениям вашей документации."
6565
/>
6666
<LinkCard
6767
href="https://github.com/lorenzolewis/starlight-utils"
@@ -71,7 +71,7 @@ sidebar:
7171
<LinkCard
7272
href="https://github.com/trueberryless/starlight-view-modes"
7373
title="starlight-view-modes"
74-
description="Добавление различных режимов просмотра на ваш сайт документации."
74+
description="Добавьте различные режимы просмотра на ваш сайт документации."
7575
/>
7676
<LinkCard
7777
href="https://github.com/HiDeoo/starlight-versions"
@@ -86,27 +86,27 @@ sidebar:
8686
<LinkCard
8787
href="https://github.com/HiDeoo/starlight-heading-badges"
8888
title="starlight-heading-badges"
89-
description="Добавление значков в заголовки Markdown и MDX."
89+
description="Добавьте значки в заголовки Markdown и MDX."
9090
/>
9191
<LinkCard
9292
href="https://github.com/Fevol/starlight-site-graph"
9393
title="starlight-site-graph"
94-
description="Добавление интерактивного графика сайта в боковую панель."
94+
description="Добавьте интерактивный график сайта в боковую панель."
9595
/>
9696
<LinkCard
9797
href="https://github.com/HiDeoo/starlight-sidebar-topics"
9898
title="starlight-sidebar-topics"
99-
description="Разделение документации на разделы с собственными боковыми панелями."
99+
description="Разделите документацию на разделы с собственными боковыми панелями."
100100
/>
101101
<LinkCard
102102
href="https://github.com/trueberryless-org/starlight-sidebar-topics-dropdown"
103103
title="starlight-sidebar-topics-dropdown"
104-
description="Разделение страницы с документами на несколько подстраниц и переключение между ними с помощью выпадающего меню в боковой панели."
104+
description="Разделите страницы с документами на несколько подстраниц и переключайтесь между ними с помощью выпадающего меню в боковой панели."
105105
/>
106106
<LinkCard
107107
href="https://github.com/trueberryless-org/starlight-cooler-credit"
108108
title="starlight-cooler-credit"
109-
description="Добавление красивой благодарности Starlight или Astro в нижней части оглавления."
109+
description="Добавьте красивую благодарность Starlight или Astro в нижней части оглавления."
110110
/>
111111
<LinkCard
112112
href="https://github.com/trueberryless-org/starlight-contributor-list"
@@ -116,7 +116,7 @@ sidebar:
116116
<LinkCard
117117
href="https://github.com/dragomano/starlight-giscus"
118118
title="starlight-giscus"
119-
description="Добавление комментариев Giscus к вашему сайту документации."
119+
description="Добавьте комментарии Giscus на ваш сайт документации."
120120
/>
121121
<LinkCard
122122
href="https://github.com/HiDeoo/starlight-videos"
@@ -128,37 +128,10 @@ sidebar:
128128
title="starlight-kbd"
129129
description="Удобное документирование горячих клавиш."
130130
/>
131-
</CardGrid>
132-
133-
### Темы от сообщества
134-
135-
Тема — это плагин Starlight, который изменяет внешний вид сайта с помощью переопределения компонентов, пользовательского CSS или других новых возможностей.
136-
137-
<CardGrid>
138-
<LinkCard
139-
href="https://github.com/HiDeoo/starlight-theme-rapide"
140-
title="starlight-theme-rapide"
141-
description="Тема Starlight, вдохновлённая темой Visual Studio Code Vitesse."
142-
/>
143-
<LinkCard
144-
href="https://github.com/Fevol/starlight-theme-obsidian"
145-
title="starlight-theme-obsidian"
146-
description="Тема Starlight, вдохновлённая стилем сайтов Obsidian Publish."
147-
/>
148-
<LinkCard
149-
href="https://github.com/TheOtterlord/catppuccin-starlight"
150-
title="catppuccin-starlight"
151-
description="Успокаивающая пастельная тема для Starlight"
152-
/>
153-
<LinkCard
154-
href="https://github.com/louisescher/starlight-ion-theme"
155-
title="starlight-ion-theme"
156-
description="Элегантная, современная тема для Starlight."
157-
/>
158131
<LinkCard
159-
href="https://github.com/adrian-ub/starlight-theme-black"
160-
title="starlight-theme-black"
161-
description="Тема Starlight, вдохновлённая документацией shadcn"
132+
href="https://events-3bg.pages.dev/library/StarlightPlugin/"
133+
title="starlight-view-transitions"
134+
description="Добавьте нативные кросс-документные переходы в браузере."
162135
/>
163136
</CardGrid>
164137

@@ -172,7 +145,7 @@ import { CardGrid, LinkCard } from '@astrojs/starlight/components';
172145
<LinkCard
173146
href="https://www.feelback.dev/blog/new-astro-starlight-integration/"
174147
title="FeelBack"
175-
description="Добавление системы обратной связи с пользователями на страницы ваших документов."
148+
description="Добавьте систему обратной связи с пользователями на страницы ваших документов."
176149
/>
177150
<LinkCard
178151
href="https://github.com/val-town/notion-to-astro"
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: Темы
3+
description: Оформите документацию с помощью темы от сообщества для Starlight
4+
tableOfContents: false
5+
sidebar:
6+
order: 2
7+
head:
8+
- tag: style
9+
content: |
10+
body { --sl-content-width: 66.75rem; }
11+
---
12+
13+
import ThemeGrid from '~/components/theme-grid.astro';
14+
15+
Тема — это плагин Starlight, который изменяет внешний вид сайта с помощью [пользовательского CSS](/ru/guides/css-and-tailwind/), [переопределения компонентов](/ru/guides/overriding-components/), или других новых возможностей.
16+
17+
## Темы от сообщества
18+
19+
Установите тему, созданную сообществом, чтобы быстро настроить внешний вид и стиль вашего сайта.
20+
21+
<ThemeGrid
22+
labels={{
23+
/** Accessible label for the theme toggle. */
24+
legend: 'Превью',
25+
/** Accessible label for the dark color scheme variant. */
26+
dark: 'Тёмные',
27+
/** Accessible label for the light color scheme variant. */
28+
light: 'Светлые',
29+
}}
30+
themes={[
31+
{
32+
title: 'Starlight Rapide',
33+
description:
34+
'Тема Starlight, вдохновлённая темой Visual Studio Code Vitesse.',
35+
href: 'https://starlight-theme-rapide.vercel.app/',
36+
previews: { light: 'rapide-light.png', dark: 'rapide-dark.png' },
37+
},
38+
{
39+
title: 'Starlight Obsidian Theme',
40+
description:
41+
'Тема Starlight, вдохновлённая стилем сайтов Obsidian Publish.',
42+
href: 'https://fevol.github.io/starlight-theme-obsidian/',
43+
previews: { light: 'obsidian-light.png', dark: 'obsidian-dark.png' },
44+
},
45+
{
46+
title: 'Catppuccin for Starlight',
47+
description: 'Успокаивающая пастельная тем�� для Starlight.',
48+
href: 'https://catppuccin-starlight.otterlord.dev/',
49+
previews: { light: 'catppuccin-light.png', dark: 'catppuccin-dark.png' },
50+
},
51+
{
52+
title: 'Ion',
53+
description: 'Элегантная, современная тема для Starlight.',
54+
href: 'https://louisescher.github.io/starlight-ion-theme/',
55+
previews: { light: 'ion-light.png', dark: 'ion-dark.png' },
56+
},
57+
{
58+
title: 'Starlight Black',
59+
description: 'Тема Starlight, вдохновлённая документацией shadcn.',
60+
href: 'https://starlight-theme-black.vercel.app/',
61+
previews: { light: 'black-light.png', dark: 'black-dark.png' },
62+
},
63+
{
64+
title: 'Starlight Flexoki',
65+
description:
66+
'Тёплая и дружелюбная тема, основанная на цветовой палитре Flexoki.',
67+
href: 'https://delucis.github.io/starlight-theme-flexoki/',
68+
previews: { light: 'flexoki-light.png', dark: 'flexoki-dark.png' },
69+
},
70+
]}
71+
/>
72+
73+
:::tip[Добавьте собственную работу!]
74+
Вы создали тему для Starlight?
75+
[Откройте PR](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md#themes), добавляющий вашу тему на эту страницу!
76+
:::

0 commit comments

Comments
 (0)