@astrojs/starlight 0.38.2 → 0.38.3

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,15 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.38.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3799](https://github.com/withastro/starlight/pull/3799) [`313611b`](https://github.com/withastro/starlight/commit/313611b1cd9c1f38688cb98cc103ddd758e80ec2) Thanks [@JosefJezek](https://github.com/JosefJezek)! - Improves Czech UI translations
8
+
9
+ - [#3770](https://github.com/withastro/starlight/pull/3770) [`6e7bed1`](https://github.com/withastro/starlight/commit/6e7bed1e6b3b586b9719c620924f60d3678a1f83) Thanks [@gameroman](https://github.com/gameroman)! - Adds examples to the inline documentation for `title` in the Starlight configuration object
10
+
11
+ - [#3801](https://github.com/withastro/starlight/pull/3801) [`fedd48b`](https://github.com/withastro/starlight/commit/fedd48b701ea9ca764b19139404c744099565f4c) Thanks [@delucis](https://github.com/delucis)! - Fixes missing draft content warning in dev on pages using the hero layout
12
+
3
13
  ## 0.38.2
4
14
 
5
15
  ### Patch Changes
@@ -28,6 +28,7 @@ const { icon, label } = Astro.props;
28
28
  gap: 0.75em;
29
29
  font-size: var(--sl-text-body-sm);
30
30
  line-height: var(--sl-line-height-headings);
31
+ text-align: start;
31
32
  }
32
33
  }
33
34
  </style>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  import { Image } from 'astro:assets';
3
+ import DraftContentNotice from 'virtual:starlight/components/DraftContentNotice';
3
4
  import { PAGE_TITLE_ID } from '../constants';
4
5
  import LinkButton from '../user-components/LinkButton.astro';
5
6
 
@@ -44,6 +45,7 @@ if (image) {
44
45
  <div class="sl-flex stack">
45
46
  <div class="sl-flex copy">
46
47
  <h1 id={PAGE_TITLE_ID} data-page-title set:html={title} />
48
+ {data.draft && <DraftContentNotice />}
47
49
  {tagline && <div class="tagline" set:html={tagline} />}
48
50
  </div>
49
51
  {
@@ -67,6 +69,7 @@ if (image) {
67
69
  @layer starlight.core {
68
70
  .hero {
69
71
  display: grid;
72
+ grid-template-columns: 100%;
70
73
  align-items: center;
71
74
  gap: 1rem;
72
75
  padding-bottom: 1rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -15,19 +15,19 @@
15
15
  "tableOfContents.overview": "Přehled",
16
16
  "i18n.untranslatedContent": "Tento obsah zatím není dostupný ve vašem jazyce.",
17
17
  "page.editLink": "Upravit stránku",
18
- "page.lastUpdated": "Poslední aktualizace:",
18
+ "page.lastUpdated": "Aktualizováno:",
19
19
  "page.previousLink": "Předchozí",
20
20
  "page.nextLink": "Další",
21
21
  "page.draft": "Tento obsah je koncept a nebude zahrnutý v produkčním sestavení.",
22
- "404.text": "Stránka nenalezena. Zkontrolujte adresu nebo zkuste použít vyhledávač",
22
+ "404.text": "Stránka nenalezena. Zkontrolujte adresu nebo zkuste použít vyhledávač.",
23
23
  "aside.note": "Poznámka",
24
24
  "aside.tip": "Tip",
25
25
  "aside.caution": "Upozornění",
26
26
  "aside.danger": "Nebezpečí",
27
27
  "fileTree.directory": "Adresář",
28
- "builtWithStarlight.label": "Postavené s Starlight",
28
+ "builtWithStarlight.label": "Postaveno se Starlight",
29
29
  "expressiveCode.copyButtonCopied": "Zkopírováno!",
30
- "expressiveCode.copyButtonTooltip": "Kopíruj do schránky",
30
+ "expressiveCode.copyButtonTooltip": "Kopírovat do schránky",
31
31
  "expressiveCode.terminalWindowFallbackTitle": "Terminál",
32
32
  "pagefind.clear_search": "Vyčistit",
33
33
  "pagefind.load_more": "Načíst další výsledky",
@@ -39,5 +39,5 @@
39
39
  "pagefind.alt_search": "Žádné výsledky pro [SEARCH_TERM]. Namísto toho zobrazuji výsledky pro: [DIFFERENT_TERM]",
40
40
  "pagefind.search_suggestion": "Žádný výsledek pro [SEARCH_TERM]. Zkus nějaké z těchto hledání:",
41
41
  "pagefind.searching": "Hledám [SEARCH_TERM]...",
42
- "heading.anchorLabel": "Section titled “{{title}}”"
42
+ "heading.anchorLabel": "Sekce “{{title}}”"
43
43
  }
@@ -22,7 +22,15 @@ const LocaleSchema = z.object({
22
22
  });
23
23
 
24
24
  const UserConfigSchema = z.object({
25
- /** Title for your website. Will be used in metadata and as browser tab title. */
25
+ /**
26
+ * Title for your website. Will be used in metadata and as browser tab title.
27
+ *
28
+ * @example
29
+ * title: 'My Docs'
30
+ *
31
+ * @example
32
+ * title: { en: 'My Docs' }
33
+ */
26
34
  title: TitleConfigSchema(),
27
35
 
28
36
  /** Description metadata for your website. Can be used in page metadata. */