astro-accelerator 4.0.23 → 4.0.24

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <!-- @format -->
2
+
1
3
  # Astro Accelerator
2
4
 
3
5
  [![Deploy and Test](https://github.com/Steve-Fenton/astro-accelerator/actions/workflows/build-astro.yml/badge.svg)](https://github.com/Steve-Fenton/astro-accelerator/actions/workflows/build-astro.yml)
@@ -7,6 +9,17 @@ Review the documentation at [astro.stevefenton.co.uk](https://astro.stevefenton.
7
9
  [![npm](https://img.shields.io/npm/v/astro-accelerator?color=blue&style=plastic)](https://www.npmjs.com/package/astro-accelerator/)
8
10
  [![npm](https://img.shields.io/npm/dm/astro-accelerator?style=plastic)](https://www.npmjs.com/package/astro-accelerator/)
9
11
 
12
+ ## Development principles
13
+
14
+ Astro Accelerator is designed for re-use. That means we have to be careful to ensure consumers of the Accelerator can easily style everything. The Accelerator ships with sensible defaults, but it should be possible to replace just about anything.
15
+
16
+ To make this possible...
17
+
18
+ - Consider whether a change should be accompanied by a feature flag
19
+ - Make sure SVG icons can be styled in CSS (stroke and fill shouldn't be hard-coded to a colour)
20
+ - For drastic changes to a component, consider creating an alternate component instead
21
+ - Update the documentation files with changes to help folks out
22
+
10
23
  ## Image optimization on Linux
11
24
 
12
25
  Currently, to run the image optimization on Linux, you need to force a compatible version of Sharp to be installed. Any suggestions for a better approach would be appreciated:
@@ -24,4 +37,4 @@ The NPM token expires periodically and must be updated in GitHub settings -> Sec
24
37
 
25
38
  ## Upgrades
26
39
 
27
- - [Upgrading from v3 to v4 of Astro and Astro Accelerator.](https://www.stevefenton.co.uk/blog/2023/12/upgrade-astro-v4/)
40
+ - [Upgrading from v3 to v4 of Astro and Astro Accelerator.](https://www.stevefenton.co.uk/blog/2023/12/upgrade-astro-v4/)
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.23",
2
+ "version": "4.0.24",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@astrojs/mdx": "^2.1.1",
35
- "astro": "^4.4.3",
35
+ "astro": "^4.4.5",
36
36
  "astro-accelerator-utils": "^0.3.7",
37
37
  "cspell": "^8.4.1",
38
- "csv": "^6.3.6",
38
+ "csv": "^6.3.7",
39
39
  "hast-util-from-selector": "^3.0.0",
40
40
  "html-to-text": "^9.0.5",
41
41
  "keyword-extractor": "^0.0.28",
@@ -44,7 +44,7 @@
44
44
  "sharp": "^0.33.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@playwright/test": "^1.41.2"
47
+ "@playwright/test": "^1.42.0"
48
48
  },
49
49
  "files": [
50
50
  ".npmrc",
@@ -860,6 +860,7 @@ nav.site-nav h2 {
860
860
 
861
861
  @media (max-width: 930px) {
862
862
  .site-header .site-search__wrapper {
863
+ max-width: -moz-fit-content;
863
864
  max-width: fit-content;
864
865
  }
865
866
 
package/public/js/main.js CHANGED
@@ -79,3 +79,6 @@ if (enabled(f.search, 'dialog')) {
79
79
  const searchDialog = await import('./modules/search-dialog.js');
80
80
  searchDialog.enhanceSearchIcon();
81
81
  }
82
+
83
+ // Tag the body that the JavaScript all loaded
84
+ document.body.classList.add('js-loaded');