@astrojs/starlight 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/components/SidebarSublist.astro +5 -3
- package/index.ts +1 -1
- package/package.json +2 -2
- package/translations/hi.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1111](https://github.com/withastro/starlight/pull/1111) [`cb19d07`](https://github.com/withastro/starlight/commit/cb19d07d6192ffb732ac6fcf9df04d4f098bfc1f) Thanks [@at-the-vr](https://github.com/at-the-vr)! - Fix minor punctuation typo in Hindi UI string
|
|
8
|
+
|
|
9
|
+
- [#1156](https://github.com/withastro/starlight/pull/1156) [`631c5ae`](https://github.com/withastro/starlight/commit/631c5aeccba60254ff649712f93ba30495775edf) Thanks [@votemike](https://github.com/votemike)! - Updates `@astrojs/sitemap` dependency to the latest version
|
|
10
|
+
|
|
11
|
+
- [#1109](https://github.com/withastro/starlight/pull/1109) [`0c25c1f`](https://github.com/withastro/starlight/commit/0c25c1f33bbfe311724784530c30ada44eb5de19) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Internal: fix import issue with expressive-code
|
|
12
|
+
|
|
3
13
|
## 0.13.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -7,17 +7,19 @@ interface Props {
|
|
|
7
7
|
sublist: SidebarEntry[];
|
|
8
8
|
nested?: boolean;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
const { sublist, nested } = Astro.props;
|
|
10
12
|
---
|
|
11
13
|
|
|
12
|
-
<ul class:list={{ 'top-level': !
|
|
14
|
+
<ul class:list={{ 'top-level': !nested }}>
|
|
13
15
|
{
|
|
14
|
-
|
|
16
|
+
sublist.map((entry) => (
|
|
15
17
|
<li>
|
|
16
18
|
{entry.type === 'link' ? (
|
|
17
19
|
<a
|
|
18
20
|
href={entry.href}
|
|
19
21
|
aria-current={entry.isCurrent && 'page'}
|
|
20
|
-
class:list={[{ large: !
|
|
22
|
+
class:list={[{ large: !nested }, entry.attrs.class]}
|
|
21
23
|
{...entry.attrs}
|
|
22
24
|
>
|
|
23
25
|
<span>{entry.label}</span>
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { spawn } from 'node:child_process';
|
|
|
4
4
|
import { dirname, relative } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
import { starlightAsides } from './integrations/asides';
|
|
7
|
-
import { starlightExpressiveCode } from './integrations/expressive-code';
|
|
7
|
+
import { starlightExpressiveCode } from './integrations/expressive-code/index';
|
|
8
8
|
import { starlightSitemap } from './integrations/sitemap';
|
|
9
9
|
import { vitePluginStarlightUserConfig } from './integrations/virtual-user-config';
|
|
10
10
|
import { errorMap } from './utils/error-map';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/starlight",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Build beautiful, high-performance documentation websites with Astro",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
},
|
|
171
171
|
"dependencies": {
|
|
172
172
|
"@astrojs/mdx": "^1.1.0",
|
|
173
|
-
"@astrojs/sitemap": "^3.0.
|
|
173
|
+
"@astrojs/sitemap": "^3.0.3",
|
|
174
174
|
"@pagefind/default-ui": "^1.0.3",
|
|
175
175
|
"@types/mdast": "^3.0.11",
|
|
176
176
|
"astro-expressive-code": "^0.29.0",
|
package/translations/hi.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"sidebarNav.accessibleLabel": "मुख्य",
|
|
14
14
|
"tableOfContents.onThisPage": "इस पृष्ठ पर",
|
|
15
15
|
"tableOfContents.overview": "अवलोकन",
|
|
16
|
-
"i18n.untranslatedContent": "यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं
|
|
16
|
+
"i18n.untranslatedContent": "यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।",
|
|
17
17
|
"page.editLink": "पृष्ठ संपादित करें",
|
|
18
18
|
"page.lastUpdated": "आखिरी अद्यतन:",
|
|
19
19
|
"page.previousLink": "पिछला",
|