@astrojs/starlight 0.4.1 → 0.4.2

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,13 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#308](https://github.com/withastro/starlight/pull/308) [`c3aa4c6`](https://github.com/withastro/starlight/commit/c3aa4c6aa18f7f6859ad1c0acc28f0da59a84760) Thanks [@delucis](https://github.com/delucis)! - Fix use of default monospace font stack
8
+
9
+ - [#286](https://github.com/withastro/starlight/pull/286) [`a2aedfc`](https://github.com/withastro/starlight/commit/a2aedfc7f9555b44f5f33aad7f4a98b207a11b47) Thanks [@mzaien](https://github.com/mzaien)! - Add Arabic UI translations
10
+
3
11
  ## 0.4.1
4
12
 
5
13
  ### Patch Changes
@@ -77,6 +77,10 @@
77
77
  background-color: var(--sl-color-bg-inline-code);
78
78
  margin-block: -0.125rem;
79
79
  padding: 0.125rem 0.375rem;
80
+ font-size: var(--sl-text-code-sm);
81
+ }
82
+ .content :global(:is(h1, h2, h3, h4, h5, h6) code) {
83
+ font-size: inherit;
80
84
  }
81
85
 
82
86
  .content :global(pre) {
@@ -87,6 +91,7 @@
87
91
 
88
92
  .content :global(pre code) {
89
93
  all: unset;
94
+ font-family: var(--__sl-font-mono);
90
95
  }
91
96
 
92
97
  .content :global(blockquote) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^18.15.11",
34
- "astro": "^2.7.3"
34
+ "astro": "2.7.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@astrojs/mdx": "^0.19.7",
package/style/props.css CHANGED
@@ -89,8 +89,8 @@
89
89
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
90
90
  --sl-font-system-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
91
91
  'Liberation Mono', 'Courier New', monospace;
92
- --__sb-font: var(--sl-font, ''), var(--sl-font-system);
93
- --__sb-font-mono: var(--sl-font-mono, ''), var(--sl-font-system-mono);
92
+ --__sl-font: var(--sl-font, ''), var(--sl-font-system);
93
+ --__sl-font-mono: var(--sl-font-mono, ''), var(--sl-font-system-mono);
94
94
 
95
95
  /** Key layout values */
96
96
  --sl-nav-height: 3.5rem;
package/style/reset.css CHANGED
@@ -18,7 +18,7 @@ html[data-theme='light'] {
18
18
  }
19
19
 
20
20
  body {
21
- font-family: var(--__sb-font);
21
+ font-family: var(--__sl-font);
22
22
  line-height: var(--sl-line-height);
23
23
  -webkit-font-smoothing: antialiased;
24
24
  color: var(--sl-color-text);
@@ -41,3 +41,7 @@ h5,
41
41
  h6 {
42
42
  overflow-wrap: break-word;
43
43
  }
44
+
45
+ code {
46
+ font-family: var(--__sl-font-mono);
47
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "skipLink.label": "الذهاب للمحتوى",
3
+ "search.label": "البحث",
4
+ "search.shortcutLabel": "(إضغط / للبحث)",
5
+ "search.cancelLabel": "إلغاء",
6
+ "search.devWarning": "البحث متوفر فقط في نسخ الاطلاق. \n جرب بناء المشروع ومعاينته على جهازك",
7
+ "themeSelect.accessibleLabel": "إختر ثيم",
8
+ "themeSelect.dark": "ليلي",
9
+ "themeSelect.light": "نهاري",
10
+ "themeSelect.auto": "تلقائي",
11
+ "languageSelect.accessibleLabel": "إختر لغة",
12
+ "menuButton.accessibleLabel": "القائمة",
13
+ "sidebarNav.accessibleLabel": "الرئيسية",
14
+ "tableOfContents.onThisPage": "على هذه الصفحة",
15
+ "tableOfContents.overview": "ملخص",
16
+ "i18n.untranslatedContent": "هذا المحتوى لا يتوفر بلغتك بعد.",
17
+ "page.editLink": "عدل الصفحة",
18
+ "page.lastUpdated": "اخر تحديث:",
19
+ "page.previousLink": "السابق",
20
+ "page.nextLink": "التالي",
21
+ "404.text": "الصفحة غير موجودة. تأكد من الرابط أو ابحث بإستعمال شريط البحث."
22
+ }
@@ -10,11 +10,12 @@ import it from './it.json';
10
10
  import nl from './nl.json';
11
11
  import da from './da.json';
12
12
  import tr from './tr.json';
13
+ import ar from './ar.json';
13
14
 
14
15
  const { parse } = builtinI18nSchema();
15
16
 
16
17
  export default Object.fromEntries(
17
- Object.entries({ cs, en, es, de, ja, pt, fr, it, nl, da, tr }).map(([key, dict]) => [
18
+ Object.entries({ cs, en, es, de, ja, pt, fr, it, nl, da, tr, ar }).map(([key, dict]) => [
18
19
  key,
19
20
  parse(dict),
20
21
  ])