@astrojs/starlight 0.30.3 → 0.30.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 +11 -1
- package/components/Icons.ts +5 -0
- package/components/Page.astro +9 -6
- package/package.json +1 -1
- package/schemas/social.ts +6 -0
- package/user-components/Tabs.astro +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.30.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2747](https://github.com/withastro/starlight/pull/2747) [`474c27e`](https://github.com/withastro/starlight/commit/474c27e28d79794ac78d36e3384f0c0da6f2dfed) Thanks [@bbag](https://github.com/bbag)! - Ensures `<Tab>` component toggling is stable when smooth scrolling is enabled via custom CSS
|
|
8
|
+
|
|
9
|
+
- [#2740](https://github.com/withastro/starlight/pull/2740) [`0e169c9`](https://github.com/withastro/starlight/commit/0e169c9fd9fbfc16d86225db6b00448edf39ffad) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue preventing Pagefind to be disabled using the `pagefind` frontmatter field.
|
|
10
|
+
|
|
11
|
+
- [#2732](https://github.com/withastro/starlight/pull/2732) [`a10b466`](https://github.com/withastro/starlight/commit/a10b46680810882b029dd1d578cc86e22bc97af5) Thanks [@Sidnioulz](https://github.com/Sidnioulz)! - Adds Storybook, Confluence and Jira social icons
|
|
12
|
+
|
|
3
13
|
## 0.30.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -640,7 +650,7 @@
|
|
|
640
650
|
|
|
641
651
|
- [#1837](https://github.com/withastro/starlight/pull/1837) [`a33a1223`](https://github.com/withastro/starlight/commit/a33a12231772c1dc4b7cc2db3477a6802f3ef53e) Thanks [@delucis](https://github.com/delucis)! - Adds three new icons: `comment`, `comment-alt`, `heart`
|
|
642
652
|
|
|
643
|
-
- [#1842](https://github.com/withastro/starlight/pull/1842) [`c7838636`](https://github.com/withastro/starlight/commit/c7838636edb8d60a2422ce76a2db511b9cebbb70) Thanks [@delucis](https://github.com/delucis)! - Moves the `href` used in the site title link to Starlight’s route data object. This makes it possible for overrides to change the title link while reusing Starlight’s default component
|
|
653
|
+
- [#1842](https://github.com/withastro/starlight/pull/1842) [`c7838636`](https://github.com/withastro/starlight/commit/c7838636edb8d60a2422ce76a2db511b9cebbb70) Thanks [@delucis](https://github.com/delucis)! - Moves the `href` used in the site title link to Starlight’s route data object. This makes it possible for overrides to change the title link while reusing Starlight’s default component implementation.
|
|
644
654
|
|
|
645
655
|
- [#1840](https://github.com/withastro/starlight/pull/1840) [`cb85563c`](https://github.com/withastro/starlight/commit/cb85563c9a3d4eb2925ad884e6a4e8698a15381b) Thanks [@MiahaCybersec](https://github.com/MiahaCybersec)! - Adds 1 new icon: `hackerone`
|
|
646
656
|
|
package/components/Icons.ts
CHANGED
|
@@ -164,6 +164,11 @@ export const BuiltInIcons = {
|
|
|
164
164
|
'<path d="M21.6 10.6v9.7a.7.7 0 0 1-.6.6h-8a.7.7 0 0 1-.6-.6v-1.8c0-2.2.3-4.4.8-5.3a2 2 0 0 1 1.3-1c1-.4 2.9-.2 3.7-.2 0 0 2.3 0 2.3-1.3 0-1-1-1-1-1-1.2 0-2 0-2.6-.2-1-.4-1-1.1-1-1.3 0-2.7-4-3-7.5-2.4-3.9.7 0 6.2 0 13.5v1a.7.7 0 0 1-.7.6H3.8a.7.7 0 0 1-.6-.6V3.5a.7.7 0 0 1 .6-.6h3.7a.7.7 0 0 1 .7.6c0 .6.6.9 1 .6 1.3-1 3-1.5 5-1.5 4.2 0 7.4 2.5 7.4 8zm-7-2a1.4 1.4 0 1 0-2.9 0 1.4 1.4 0 0 0 2.9 0z"/>',
|
|
165
165
|
backstage:
|
|
166
166
|
'<path d="M18.4 9.3a4.4 4.4 0 0 0 .7-.5l.1-.1a4.5 4.5 0 0 0 .8-1.1l.3-1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 0 0 19 11l.1-.1a4.5 4.5 0 0 0 .8-1.1 2.6 2.6 0 0 0 .3-1.1v-.1l-.2.1-.4.6zm0 4.3a6 6 0 0 1-.1.1 5.2 5.2 0 0 1-3.3 1.5v1.4a4.5 4.5 0 0 0 2.8-1.2l1-1.2.2-1v-.1l-.2.2a4.8 4.8 0 0 1-.4.5zm0-2.1-.1.1a4.8 4.8 0 0 1-.6.5 5.2 5.2 0 0 1-2.7 1v1.4A4.5 4.5 0 0 0 19 13h.1a4.2 4.2 0 0 0 .8-1.2l.3-.9v-.3a4 4 0 0 1-.2.2l-.4.5z"/>',
|
|
167
|
+
confluence:
|
|
168
|
+
'<path d="M.85 18.07.1 19.32a.76.76 0 0 0-.1.28.76.76 0 0 0 .02.28.75.75 0 0 0 .33.46l4.97 3.07a.76.76 0 0 0 .86-.03.75.75 0 0 0 .2-.23l.73-1.23c1.97-3.23 3.97-2.83 7.54-1.14l4.93 2.34a.76.76 0 0 0 .6.03.76.76 0 0 0 .43-.4l2.36-5.35a.75.75 0 0 0 .02-.57.77.77 0 0 0-.38-.43c-1.04-.49-3.1-1.45-4.96-2.36C10.9 10.8 5.2 11 .85 18.07Z"/><path d="m23.15 5.94.75-1.25a.77.77 0 0 0 .08-.57.76.76 0 0 0-.13-.27.76.76 0 0 0-.22-.2L18.67.6a.76.76 0 0 0-.29-.1.77.77 0 0 0-.57.13.77.77 0 0 0-.2.23l-.73 1.22c-1.98 3.25-3.96 2.86-7.53 1.16L4.42.89a.78.78 0 0 0-.59-.03.76.76 0 0 0-.26.15.76.76 0 0 0-.18.24L1.02 6.61a.77.77 0 0 0-.02.57c.04.1.09.18.15.25a.76.76 0 0 0 .24.18c1.04.5 3.11 1.45 4.96 2.36 6.73 3.26 12.44 3.04 16.8-4.03z"/>',
|
|
169
|
+
jira: '<path d="M7.75 16.3H5.62C2.4 16.3.09 14.31.09 11.43h11.47c.6 0 .98.42.98 1.02V24c-2.87 0-4.79-2.32-4.79-5.56Zm5.67-5.74h-2.14c-3.21 0-5.52-1.94-5.52-4.82h11.47c.6 0 1.01.38 1.01.98v11.54c-2.87 0-4.82-2.32-4.82-5.56zm5.7-5.7h-2.14c-3.21 0-5.52-1.97-5.52-4.86h11.47c.6 0 .98.42.98.99v11.54c-2.87 0-4.8-2.32-4.8-5.56z"/>',
|
|
170
|
+
storybook:
|
|
171
|
+
'<path d="m20.35 0-1.32.08.1 2.78a.18.18 0 0 1-.3.14l-.9-.7-1.05.8a.18.18 0 0 1-.25-.03.18.18 0 0 1-.04-.12l.12-2.72-13.21.82A1.2 1.2 0 0 0 2.37 2.3l.74 19.82a1.2 1.2 0 0 0 1.15 1.16l16.11.72h.06c.66 0 1.2-.54 1.2-1.2V1.12A1.2 1.2 0 0 0 20.35 0zm-7.99 4.08c3.14 0 4.86 1.68 4.86 4.88-.42.33-3.59.56-3.59.09.07-1.8-.73-1.87-1.18-1.87-.42 0-1.13.12-1.13 1.08 0 2.37 6.1 2.24 6.1 7.02 0 2.69-2.18 4.17-4.97 4.17-2.87 0-5.38-1.16-5.1-5.2.11-.47 3.77-.35 3.77 0-.05 1.67.33 2.16 1.29 2.16.73 0 1.07-.4 1.07-1.09 0-2.43-6.02-2.51-6.02-6.97 0-2.56 1.76-4.27 4.9-4.27z"/>',
|
|
167
172
|
};
|
|
168
173
|
|
|
169
174
|
export const Icons = {
|
package/components/Page.astro
CHANGED
|
@@ -36,13 +36,16 @@ const pagefindEnabled =
|
|
|
36
36
|
!Astro.props.entry.slug.endsWith('/404') &&
|
|
37
37
|
Astro.props.entry.data.pagefind !== false;
|
|
38
38
|
|
|
39
|
-
const
|
|
40
|
-
if (Boolean(Astro.props.toc))
|
|
41
|
-
if (Astro.props.hasSidebar)
|
|
42
|
-
if (Boolean(Astro.props.entry.data.hero))
|
|
39
|
+
const htmlDataAttributes: DOMStringMap = { 'data-theme': 'dark' };
|
|
40
|
+
if (Boolean(Astro.props.toc)) htmlDataAttributes['data-has-toc'] = '';
|
|
41
|
+
if (Astro.props.hasSidebar) htmlDataAttributes['data-has-sidebar'] = '';
|
|
42
|
+
if (Boolean(Astro.props.entry.data.hero)) htmlDataAttributes['data-has-hero'] = '';
|
|
43
|
+
|
|
44
|
+
const mainDataAttributes: DOMStringMap = {};
|
|
45
|
+
if (pagefindEnabled) mainDataAttributes['data-pagefind-body'] = '';
|
|
43
46
|
---
|
|
44
47
|
|
|
45
|
-
<html lang={Astro.props.lang} dir={Astro.props.dir} {...
|
|
48
|
+
<html lang={Astro.props.lang} dir={Astro.props.dir} {...htmlDataAttributes}>
|
|
46
49
|
<head>
|
|
47
50
|
<Head {...Astro.props} />
|
|
48
51
|
<style>
|
|
@@ -82,7 +85,7 @@ if (Boolean(Astro.props.entry.data.hero)) dataAttributes['data-has-hero'] = '';
|
|
|
82
85
|
<TwoColumnContent {...Astro.props}>
|
|
83
86
|
<PageSidebar slot="right-sidebar" {...Astro.props} />
|
|
84
87
|
<main
|
|
85
|
-
|
|
88
|
+
{...mainDataAttributes}
|
|
86
89
|
lang={Astro.props.entryMeta.lang}
|
|
87
90
|
dir={Astro.props.entryMeta.dir}
|
|
88
91
|
>
|
package/package.json
CHANGED
package/schemas/social.ts
CHANGED
|
@@ -38,6 +38,9 @@ export const socialLinks = [
|
|
|
38
38
|
'nostr',
|
|
39
39
|
'backstage',
|
|
40
40
|
'farcaster',
|
|
41
|
+
'confluence',
|
|
42
|
+
'jira',
|
|
43
|
+
'storybook',
|
|
41
44
|
] as const;
|
|
42
45
|
|
|
43
46
|
export const SocialLinksSchema = () =>
|
|
@@ -91,6 +94,9 @@ export const SocialLinksSchema = () =>
|
|
|
91
94
|
nostr: 'Nostr',
|
|
92
95
|
backstage: 'Backstage',
|
|
93
96
|
farcaster: 'Farcaster',
|
|
97
|
+
confluence: 'Confluence',
|
|
98
|
+
jira: 'Jira',
|
|
99
|
+
storybook: 'Storybook',
|
|
94
100
|
}[key];
|
|
95
101
|
labelledLinks[key] = { label, url };
|
|
96
102
|
}
|