@astrojs/starlight 0.0.18 → 0.0.19

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,21 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fab453c`](https://github.com/withastro/starlight/commit/fab453c27a26a3928c0b355306d45b313a5fc531) Thanks [@delucis](https://github.com/delucis)! - Design tweak: larger sidebar text with more spacing
8
+
9
+ - [#134](https://github.com/withastro/starlight/pull/134) [`5f4acdf`](https://github.com/withastro/starlight/commit/5f4acdf75102f4431f5c60f65912db8d690b098c) Thanks [@Yan-Thomas](https://github.com/Yan-Thomas)! - Add Portuguese language support
10
+
11
+ - [`8805fbf`](https://github.com/withastro/starlight/commit/8805fbf30a2c26208aaf6d29ee53586f2dbf6cce) Thanks [@delucis](https://github.com/delucis)! - Add box-shadow to prev/next page links as per designs
12
+
13
+ - [`81ef58e`](https://github.com/withastro/starlight/commit/81ef58eac2a53672773d7d564068539190960127) Thanks [@delucis](https://github.com/delucis)! - Design tweak: slightly less horizontal padding in header component on narrower viewports
14
+
15
+ - [`8c103b3`](https://github.com/withastro/starlight/commit/8c103b3b44e4b91159f8225fffdf9ba843f9c395) Thanks [@delucis](https://github.com/delucis)! - Design tweak: pad bottom of page content slightly
16
+
17
+ - [#129](https://github.com/withastro/starlight/pull/129) [`bbcb277`](https://github.com/withastro/starlight/commit/bbcb277591514705fcc39665068aa331cfa2a653) Thanks [@delucis](https://github.com/delucis)! - Fix bug setting writing direction from a single root locale
18
+
3
19
  ## 0.0.18
4
20
 
5
21
  ### Patch Changes
@@ -61,6 +61,7 @@ const t = useTranslations(locale);
61
61
  padding: 1rem;
62
62
  text-decoration: none;
63
63
  color: var(--sl-color-gray-2);
64
+ box-shadow: var(--sl-shadow-md);
64
65
  }
65
66
  [rel='next'] {
66
67
  justify-content: end;
@@ -74,7 +74,7 @@ interface Props {
74
74
  border-radius: 0.25rem;
75
75
  text-decoration: none;
76
76
  color: var(--sl-color-gray-2);
77
- padding-inline: var(--sl-sidebar-item-padding-inline);
77
+ padding: 0.1em var(--sl-sidebar-item-padding-inline);
78
78
  }
79
79
 
80
80
  a:hover,
@@ -98,7 +98,7 @@ interface Props {
98
98
  font-size: var(--sl-text-base);
99
99
  }
100
100
  a {
101
- font-size: var(--sl-text-xs);
101
+ font-size: var(--sl-text-sm);
102
102
  }
103
103
  }
104
104
  </style>
package/index.astro CHANGED
@@ -69,6 +69,9 @@ const hasHero = Boolean(entry.data.hero);
69
69
  1.5rem + var(--sl-nav-height) + var(--sl-mobile-toc-height)
70
70
  );
71
71
  }
72
+ main {
73
+ padding-bottom: 3vh;
74
+ }
72
75
  @media (min-width: 50em) {
73
76
  [data-has-sidebar] {
74
77
  --sl-content-inline-start: var(--sl-sidebar-width);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
package/style/props.css CHANGED
@@ -93,7 +93,7 @@
93
93
 
94
94
  /** Key layout values */
95
95
  --sl-nav-height: 3.5rem;
96
- --sl-nav-pad-x: 1.5rem;
96
+ --sl-nav-pad-x: 1rem;
97
97
  --sl-nav-pad-y: 0.75rem;
98
98
  --sl-title-min-width: 10rem;
99
99
  --sl-mobile-toc-height: 3rem;
@@ -168,6 +168,7 @@
168
168
  @media (min-width: 50em) {
169
169
  :root {
170
170
  --sl-nav-height: 4rem;
171
+ --sl-nav-pad-x: 1.5rem;
171
172
  --sl-text-h1: var(--sl-text-5xl);
172
173
  --sl-text-h2: var(--sl-text-4xl);
173
174
  --sl-text-h3: var(--sl-text-3xl);
@@ -3,9 +3,10 @@ import en from './en.json';
3
3
  import es from './es.json';
4
4
  import de from './de.json';
5
5
  import ja from './ja.json';
6
+ import pt from './pt.json';
6
7
 
7
8
  const parse = i18nSchema().required().strict().parse;
8
9
 
9
10
  export default Object.fromEntries(
10
- Object.entries({ en, es, de, ja }).map(([key, dict]) => [key, parse(dict)])
11
+ Object.entries({ en, es, de, ja, pt }).map(([key, dict]) => [key, parse(dict)])
11
12
  );
@@ -0,0 +1,20 @@
1
+ {
2
+ "skipLink.label": "Pular para o conteúdo",
3
+ "search.label": "Pesquisar",
4
+ "search.shortcutLabel": "(Pressione / para Pesquisar)",
5
+ "search.cancelLabel": "Cancelar",
6
+ "themeSelect.accessibleLabel": "Selecionar tema",
7
+ "themeSelect.dark": "Escuro",
8
+ "themeSelect.light": "Claro",
9
+ "themeSelect.auto": "Auto",
10
+ "languageSelect.accessibleLabel": "Selecionar língua",
11
+ "menuButton.accessibleLabel": "Menu",
12
+ "sidebarNav.accessibleLabel": "Principal",
13
+ "tableOfContents.onThisPage": "Nesta página",
14
+ "tableOfContents.overview": "Visão geral",
15
+ "i18n.untranslatedContent": "Este conteúdo não está disponível em sua língua ainda.",
16
+ "page.editLink": "Editar página",
17
+ "page.lastUpdated": "Última atualização:",
18
+ "page.previousLink": "Anterior",
19
+ "page.nextLink": "Próximo"
20
+ }
package/utils/slugs.ts CHANGED
@@ -49,7 +49,7 @@ function localeToDir(locale: string | undefined): 'ltr' | 'rtl' {
49
49
  const dir = locale
50
50
  ? config.locales?.[locale]?.dir
51
51
  : config.locales?.root?.dir;
52
- return dir || 'ltr';
52
+ return dir || config.defaultLocale.dir;
53
53
  }
54
54
 
55
55
  export function slugToParam(slug: string): string | undefined {