@astrojs/starlight 0.37.4 → 0.37.6

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,17 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.37.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3645](https://github.com/withastro/starlight/pull/3645) [`a562096`](https://github.com/withastro/starlight/commit/a562096380287fa7fa925664d04071a5831f274b) Thanks [@mschoeffmann](https://github.com/mschoeffmann)! - Adds icons for Chrome, Edge, Firefox, and Safari
8
+
9
+ ## 0.37.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3675](https://github.com/withastro/starlight/pull/3675) [`0ba556d`](https://github.com/withastro/starlight/commit/0ba556d7d49dd4904f8aa8524c105bf1ceeec85c) Thanks [@controversial](https://github.com/controversial)! - Excludes the accessible labels for heading anchor links from Pagefind results
14
+
3
15
  ## 0.37.4
4
16
 
5
17
  ### Patch Changes
@@ -48,6 +48,6 @@ const accessibleLabel = Astro.locals.t('heading.anchorLabel', {
48
48
  d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z"
49
49
  ></path></svg
50
50
  ></span
51
- ><span class="sr-only" set:text={accessibleLabel} /></a
51
+ ><span class="sr-only" data-pagefind-ignore="" set:text={accessibleLabel} /></a
52
52
  ></div
53
53
  >
@@ -193,6 +193,13 @@ export const BuiltInIcons = {
193
193
  '<path d="M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2"/>',
194
194
  substack:
195
195
  '<path d="M22.5 8.2h-21V5.4h21v2.8zm-21 2.6V24L12 18.1 22.5 24V10.8h-21zM22.5 0h-21v2.8h21V0z"/>',
196
+ chrome:
197
+ '<path d="M9.83 21.76A10 10 0 0 1 3.33 7l4.3 7.42a5 5 0 0 0 4.97 2.55zM12 22l4.29-7.42A5 5 0 0 0 17 12a5 5 0 0 0-1-3h5.54a10 10 0 0 1 .46 3 10 10 0 0 1-10 10m2.57-8.45a3 3 0 0 1-5.17-.05l-.03-.05a3 3 0 1 1 5.23.05zM4.63 5.24A10 10 0 0 1 12 2a10 10 0 0 1 8.66 5H12a5 5 0 0 0-4.6 3.03z"/>',
198
+ edge: '<path d="M10.86 15.37a5 5 0 0 1-1.31-2.72q-.46.69-.73 1.5a5.97 5.97 0 0 0 3.4 7.18c2.34.78 4.97-.61 6.7-2.13.26-.35 2.31-2.16 1.29-2.36-3.02 1.55-7.02 1.11-9.35-1.47m.6-5.81c1.04-.01.04-.43-.39-.75a7 7 0 0 0-3.44-.85C3.78 8 1 10.41 2.3 14.4c.94 3.88 4.31 7 8.29 7.5a7.3 7.3 0 0 1-3.29-6.12c.08-2.53 1.64-5.5 4.16-6.22M2.78 8.24C5.82 6 10.66 6.18 13.28 9c1.02 1.11 1.72 3 .79 4.37-1.74 1.88 3.08 2.13 4.11 1.85 3.74-.72 4.73-5.07 2.95-8.07-1.7-3.4-5.47-5.18-9.17-5.15a9.8 9.8 0 0 0-9.18 6.24"/>',
199
+ firefox:
200
+ '<path d="M6.85 6.74q.02 0 0 0M21.28 8.6a5.6 5.6 0 0 0-2.01-2.54c.56 1.11.89 2.22 1.02 3.04v.02c-1.13-2.82-3.05-3.96-4.62-6.44q-.13-.18-.24-.38l-.11-.21a2 2 0 0 1-.15-.4l-.02-.02h-.03a7.3 7.3 0 0 0-3.38 5.04q-1.05.06-1.99.51c-.12.05-.17.19-.13.31.05.14.21.21.34.15a5 5 0 0 1 1.74-.45h.05l.25-.01q.74-.01 1.44.2l.06.02.25.06.16.08.14.06.2.09.09.05.2.11.12.07a5 5 0 0 1 1.75 1.81A3.5 3.5 0 0 0 14 9.19c3.6 1.81 2.63 8-2.36 7.76a4 4 0 0 1-1.76-.45 4.3 4.3 0 0 1-2.38-3.27s.5-1.73 3.33-1.73c.31 0 1.17-.86 1.2-1.1 0-.09-1.74-.78-2.42-1.45l-.69-.66-.26-.19a4.6 4.6 0 0 1-.03-2.45A8 8 0 0 0 6.22 7.5c-.4-.5-.37-2.15-.35-2.5l-.33.18q-.53.38-.98.82-.52.55-.94 1.14a9 9 0 0 0-1.34 3.04c0 .01-.1.41-.17.92l-.03.23-.08.58v.41A10.02 10.02 0 0 0 21.88 14l.05-.37c.2-1.72-.02-3.52-.65-5.03"/>',
201
+ safari:
202
+ '<path d="M5.4 13.2H3.6V12h1.8zm1.944-5.868-.852.852L5.22 6.912l.852-.852zM12 5.4h-1.2V3.6H12zm6.6 5.4h1.8V12h-1.8zm-1.944 5.868.852-.852 1.272 1.272-.852.852zM12 18.6h1.2v1.8H12zm.924-5.676-1.848-1.848L9.24 14.76zM12 21.6a9.6 9.6 0 0 0 9.6-9.6c0-2.508-.96-4.8-2.532-6.492l-4.524 9.036-9.036 4.524A9.6 9.6 0 0 0 12 21.6m0-19.2A9.6 9.6 0 0 0 2.4 12c0 2.508.96 4.8 2.532 6.492l4.524-9.036 9.036-4.524A9.6 9.6 0 0 0 12 2.4M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0"/>',
196
203
  };
197
204
 
198
205
  export const Icons = {
@@ -50,7 +50,10 @@ export default function rehypeAutolinkHeadings({
50
50
  type: 'element',
51
51
  tagName: 'a',
52
52
  properties: { class: 'sl-anchor-link', href: '#' + String(node.properties.id) },
53
- children: [AnchorLinkIcon, h('span', { class: 'sr-only' }, accessibleLabel)],
53
+ children: [
54
+ AnchorLinkIcon,
55
+ h('span', { class: 'sr-only', 'data-pagefind-ignore': true }, accessibleLabel),
56
+ ],
54
57
  }
55
58
  );
56
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.37.4",
3
+ "version": "0.37.6",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",