@astrojs/starlight 0.1.2 → 0.1.4

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#190](https://github.com/withastro/starlight/pull/190) [`a3809e4`](https://github.com/withastro/starlight/commit/a3809e4f1e14f3949e9e25f7ffbdea2920408edb) Thanks [@gabrielemercolino](https://github.com/gabrielemercolino)! - Added Italian language support
8
+
9
+ - [#193](https://github.com/withastro/starlight/pull/193) [`c9ca4eb`](https://github.com/withastro/starlight/commit/c9ca4ebe10f4776999e3fff4ac4c19ac0a714bac) Thanks [@BryceRussell](https://github.com/BryceRussell)! - Fix bottom padding for sidebar on larger screen sizes
10
+
11
+ ## 0.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#183](https://github.com/withastro/starlight/pull/183) [`89e0a04`](https://github.com/withastro/starlight/commit/89e0a04c26639246f550957acda2285e50417729) Thanks [@delucis](https://github.com/delucis)! - Fix disclosure caret rotation in sidebar sub-groups
16
+
17
+ - [#177](https://github.com/withastro/starlight/pull/177) [`bdafdb0`](https://github.com/withastro/starlight/commit/bdafdb050d9d4e2501485dff37b71a3175a3b0c8) Thanks [@rviscomi](https://github.com/rviscomi)! - Fix Markdown table overflow
18
+
19
+ - [#185](https://github.com/withastro/starlight/pull/185) [`4844915`](https://github.com/withastro/starlight/commit/4844915c25c9cdfb852e41584d93abfd85b82d08) Thanks [@delucis](https://github.com/delucis)! - Support setting an SVG as the hero image file
20
+
3
21
  ## 0.1.2
4
22
 
5
23
  ### Patch Changes
@@ -14,18 +14,24 @@ const {
14
14
  image,
15
15
  actions,
16
16
  } = Astro.props.hero;
17
+
18
+ const imageAttrs = {
19
+ loading: 'eager' as const,
20
+ decoding: 'async' as const,
21
+ width: 400,
22
+ height: 400,
23
+ alt: image?.alt,
24
+ };
17
25
  ---
18
26
 
19
27
  <div class="hero">
20
28
  {
21
29
  image?.file ? (
22
- <Image
23
- src={image.file}
24
- loading="eager"
25
- width={400}
26
- height={400}
27
- alt={image.alt}
28
- />
30
+ image.file.format === 'svg' ? (
31
+ <img src={image.file.src} {...imageAttrs} />
32
+ ) : (
33
+ <Image src={image.file} {...imageAttrs} />
34
+ )
29
35
  ) : (
30
36
  image?.html && <div class="hero-html flex" set:html={image.html} />
31
37
  )
@@ -95,7 +95,8 @@
95
95
  }
96
96
 
97
97
  .content :global(table) {
98
- border: 1px solid var(--sl-color-gray-5);
98
+ display: block;
99
+ overflow: auto;
99
100
  border-collapse: collapse;
100
101
  }
101
102
  .content :global(tr:nth-child(2n)) {
@@ -28,13 +28,15 @@ const { sidebar, locale } = Astro.props;
28
28
  gap: 1rem;
29
29
  }
30
30
 
31
- .sidebar > :global(:last-child) {
32
- padding-bottom: 1rem;
33
- }
34
-
35
31
  .mobile-preferences {
36
32
  justify-content: space-between;
37
33
  border-top: 1px solid var(--sl-color-gray-6);
38
34
  padding: 0.5rem 0;
39
35
  }
36
+
37
+ @media (min-width: 50rem) {
38
+ .sidebar > :global(:nth-last-child(2)) {
39
+ padding-bottom: 1rem;
40
+ }
41
+ }
40
42
  </style>
@@ -65,7 +65,7 @@ interface Props {
65
65
  :global([dir='rtl']) .caret {
66
66
  transform: rotateZ(180deg);
67
67
  }
68
- [open] .caret {
68
+ [open] > summary .caret {
69
69
  transform: rotateZ(90deg);
70
70
  }
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -5,9 +5,10 @@ import de from './de.json';
5
5
  import ja from './ja.json';
6
6
  import pt from './pt.json';
7
7
  import fr from './fr.json';
8
+ import it from './it.json';
8
9
 
9
10
  const parse = i18nSchema().required().strict().parse;
10
11
 
11
12
  export default Object.fromEntries(
12
- Object.entries({ en, es, de, ja, pt, fr }).map(([key, dict]) => [key, parse(dict)])
13
+ Object.entries({ en, es, de, ja, pt, fr, it }).map(([key, dict]) => [key, parse(dict)])
13
14
  );
@@ -0,0 +1,20 @@
1
+ {
2
+ "skipLink.label": "Salta ai contenuti",
3
+ "search.label": "Cerca",
4
+ "search.shortcutLabel": "(Usa / per cercare)",
5
+ "search.cancelLabel": "Cancella",
6
+ "themeSelect.accessibleLabel": "Seleziona tema",
7
+ "themeSelect.dark": "Scuro",
8
+ "themeSelect.light": "Chiaro",
9
+ "themeSelect.auto": "Auto",
10
+ "languageSelect.accessibleLabel": "Seleziona lingua",
11
+ "menuButton.accessibleLabel": "Menu",
12
+ "sidebarNav.accessibleLabel": "Principale",
13
+ "tableOfContents.onThisPage": "In questa pagina",
14
+ "tableOfContents.overview": "Panoramica",
15
+ "i18n.untranslatedContent": "Questi contenuti non sono ancora disponibili nella tua lingua.",
16
+ "page.editLink": "Modifica pagina",
17
+ "page.lastUpdated": "Ultimo aggiornamento:",
18
+ "page.previousLink": "Indietro",
19
+ "page.nextLink": "Avanti"
20
+ }