astro-accelerator 5.10.22 → 5.10.25
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 +3 -1
- package/package.json +13 -12
- package/public/css/main.css +1 -0
- package/public/js/search.js +4 -1
package/README.md
CHANGED
|
@@ -29,11 +29,13 @@ pnpm install --include=optional sharp
|
|
|
29
29
|
pnpm install --force @img/sharp-linux-x64
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
## Publish
|
|
32
|
+
## Publish
|
|
33
33
|
|
|
34
34
|
Run the command:
|
|
35
35
|
|
|
36
|
+
```bash
|
|
36
37
|
pnpm refresh
|
|
38
|
+
```
|
|
37
39
|
|
|
38
40
|
This updates dependencies, increments the version number, and runs tests. On commit to main, the build will upload the new package to NPM.
|
|
39
41
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.10.
|
|
2
|
+
"version": "5.10.25",
|
|
3
3
|
"author": "Steve Fenton",
|
|
4
4
|
"name": "astro-accelerator",
|
|
5
5
|
"description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"themes"
|
|
9
9
|
],
|
|
10
10
|
"type": "module",
|
|
11
|
-
"packageManager": "pnpm@
|
|
11
|
+
"packageManager": "pnpm@10.22.0",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
14
|
-
"pnpm": ">=
|
|
13
|
+
"node": ">=24",
|
|
14
|
+
"pnpm": ">=10"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://astro.stevefenton.co.uk/",
|
|
17
17
|
"bugs": "https://github.com/Steve-Fenton/astro-accelerator/issues",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/Steve-Fenton/astro-accelerator"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"refresh": "npm version patch && pnpm update && pnpm test",
|
|
23
|
+
"refresh": "npm version patch && pnpm update --latest && pnpm test",
|
|
24
|
+
"update-node": "bash -c 'source $NVM_DIR/nvm.sh && nvm install --lts && npm install -g pnpm'",
|
|
24
25
|
"img": "node ./src/themes/accelerator/utilities/img.mjs",
|
|
25
26
|
"dev": "node ./src/themes/accelerator/utilities/img.mjs && astro dev",
|
|
26
27
|
"stats": "node ./src/themes/accelerator/utilities/stats.mjs",
|
|
@@ -33,23 +34,23 @@
|
|
|
33
34
|
"dts": "tsc ./tests/locate-content.js ./tests/locate-navigation.js ./tests/locate-search.js --allowJs --declaration --emitDeclarationOnly"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@astrojs/mdx": "^4.3.
|
|
37
|
+
"@astrojs/mdx": "^4.3.13",
|
|
37
38
|
"@img/sharp-linux-x64": "^0.34.5",
|
|
38
|
-
"astro": "^5.
|
|
39
|
-
"astro-accelerator-utils": "^0.3.
|
|
40
|
-
"cspell": "^9.
|
|
39
|
+
"astro": "^5.16.6",
|
|
40
|
+
"astro-accelerator-utils": "^0.3.61",
|
|
41
|
+
"cspell": "^9.4.0",
|
|
41
42
|
"csv": "^6.4.1",
|
|
42
|
-
"glob": "^
|
|
43
|
+
"glob": "^13.0.0",
|
|
43
44
|
"hast-util-from-selector": "^3.0.1",
|
|
44
45
|
"html-to-text": "^9.0.5",
|
|
45
46
|
"keyword-extractor": "^0.0.28",
|
|
46
|
-
"linkinator": "
|
|
47
|
+
"linkinator": "7.5.1",
|
|
47
48
|
"optional": "^0.1.4",
|
|
48
49
|
"remark-directive": "^4.0.0",
|
|
49
50
|
"sharp": "^0.34.5"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@playwright/test": "^1.
|
|
53
|
+
"@playwright/test": "^1.57.0"
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
55
56
|
".npmrc",
|
package/public/css/main.css
CHANGED
package/public/js/search.js
CHANGED
|
@@ -150,7 +150,10 @@ function initializeSearch() {
|
|
|
150
150
|
// @ts-ignore
|
|
151
151
|
queryTerms[i] = null;
|
|
152
152
|
} else {
|
|
153
|
-
|
|
153
|
+
const synonym = synonyms[term].split(' ');
|
|
154
|
+
for (let s of synonym) {
|
|
155
|
+
queryTerms.push(s);
|
|
156
|
+
}
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
159
|
}
|