@docusaurus/theme-search-algolia 0.0.0-4470 → 0.0.0-4479
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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Head from '@docusaurus/Head';
|
|
9
|
-
// Override default/agnostic
|
|
9
|
+
// Override default/agnostic SearchMetadata to use Algolia-specific metadata
|
|
10
10
|
function SearchMetadata({ locale, version, tag }) {
|
|
11
11
|
// Seems safe to consider here the locale is the language,
|
|
12
12
|
// as the existing docsearch:language filter is afaik a regular string-based filter
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
border: 0.4em solid #eee;
|
|
99
99
|
border-top-color: var(--ifm-color-primary);
|
|
100
100
|
border-radius: 50%;
|
|
101
|
-
animation:
|
|
101
|
+
animation: loading-spin 1s linear infinite;
|
|
102
102
|
margin: 0 auto;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
@keyframes
|
|
105
|
+
@keyframes loading-spin {
|
|
106
106
|
100% {
|
|
107
107
|
transform: rotate(360deg);
|
|
108
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-search-algolia",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4479",
|
|
4
4
|
"description": "Algolia search component for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@docsearch/react": "^3.0.0-alpha.39",
|
|
28
|
-
"@docusaurus/core": "0.0.0-
|
|
29
|
-
"@docusaurus/logger": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
31
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
28
|
+
"@docusaurus/core": "0.0.0-4479",
|
|
29
|
+
"@docusaurus/logger": "0.0.0-4479",
|
|
30
|
+
"@docusaurus/theme-common": "0.0.0-4479",
|
|
31
|
+
"@docusaurus/theme-translations": "0.0.0-4479",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-4479",
|
|
33
|
+
"@docusaurus/utils-validation": "0.0.0-4479",
|
|
34
34
|
"algoliasearch": "^4.10.5",
|
|
35
35
|
"algoliasearch-helper": "^3.5.5",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"utility-types": "^3.10.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
43
|
+
"@docusaurus/module-type-aliases": "0.0.0-4479",
|
|
44
44
|
"fs-extra": "^10.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=14"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c85b2f2a43cfed30c1621ccb21057dfd19770a33"
|
|
54
54
|
}
|
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import Head from '@docusaurus/Head';
|
|
11
11
|
import type {Props} from '@theme/SearchMetadata';
|
|
12
12
|
|
|
13
|
-
// Override default/agnostic
|
|
13
|
+
// Override default/agnostic SearchMetadata to use Algolia-specific metadata
|
|
14
14
|
function SearchMetadata({locale, version, tag}: Props): JSX.Element {
|
|
15
15
|
// Seems safe to consider here the locale is the language,
|
|
16
16
|
// as the existing docsearch:language filter is afaik a regular string-based filter
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
border: 0.4em solid #eee;
|
|
99
99
|
border-top-color: var(--ifm-color-primary);
|
|
100
100
|
border-radius: 50%;
|
|
101
|
-
animation:
|
|
101
|
+
animation: loading-spin 1s linear infinite;
|
|
102
102
|
margin: 0 auto;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
@keyframes
|
|
105
|
+
@keyframes loading-spin {
|
|
106
106
|
100% {
|
|
107
107
|
transform: rotate(360deg);
|
|
108
108
|
}
|