@docusaurus/theme-search-algolia 0.0.0-4465 → 0.0.0-4483

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 SearchMetas to use Algolia-specific metadata
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: loadingspin 1s linear infinite;
101
+ animation: loading-spin 1s linear infinite;
102
102
  margin: 0 auto;
103
103
  }
104
104
 
105
- @keyframes loadingspin {
105
+ @keyframes loading-spin {
106
106
  100% {
107
107
  transform: rotate(360deg);
108
108
  }
@@ -9,7 +9,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.validateThemeConfig = exports.Schema = exports.DEFAULT_CONFIG = void 0;
10
10
  const utils_validation_1 = require("@docusaurus/utils-validation");
11
11
  exports.DEFAULT_CONFIG = {
12
- contextualSearch: false,
12
+ // enabled by default, as it makes sense in most cases
13
+ // see also https://github.com/facebook/docusaurus/issues/5880
14
+ contextualSearch: true,
13
15
  // By default, all Docusaurus sites are using the same AppId
14
16
  // This has been designed on purpose with Algolia.
15
17
  appId: 'BH4D9OD16A',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "0.0.0-4465",
3
+ "version": "0.0.0-4483",
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-4465",
29
- "@docusaurus/logger": "0.0.0-4465",
30
- "@docusaurus/theme-common": "0.0.0-4465",
31
- "@docusaurus/theme-translations": "0.0.0-4465",
32
- "@docusaurus/utils": "0.0.0-4465",
33
- "@docusaurus/utils-validation": "0.0.0-4465",
28
+ "@docusaurus/core": "0.0.0-4483",
29
+ "@docusaurus/logger": "0.0.0-4483",
30
+ "@docusaurus/theme-common": "0.0.0-4483",
31
+ "@docusaurus/theme-translations": "0.0.0-4483",
32
+ "@docusaurus/utils": "0.0.0-4483",
33
+ "@docusaurus/utils-validation": "0.0.0-4483",
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-4465",
43
+ "@docusaurus/module-type-aliases": "0.0.0-4483",
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": "1bbf0f9d51d029322461a5231894c069bf7264a1"
53
+ "gitHead": "a7d9c472a44b7b7c6f5a60c656f85dbbe7f09506"
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 SearchMetas to use Algolia-specific metadata
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: loadingspin 1s linear infinite;
101
+ animation: loading-spin 1s linear infinite;
102
102
  margin: 0 auto;
103
103
  }
104
104
 
105
- @keyframes loadingspin {
105
+ @keyframes loading-spin {
106
106
  100% {
107
107
  transform: rotate(360deg);
108
108
  }
@@ -9,7 +9,9 @@ import {Joi} from '@docusaurus/utils-validation';
9
9
  import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
10
10
 
11
11
  export const DEFAULT_CONFIG = {
12
- contextualSearch: false, // future: maybe we want to enable this by default
12
+ // enabled by default, as it makes sense in most cases
13
+ // see also https://github.com/facebook/docusaurus/issues/5880
14
+ contextualSearch: true,
13
15
 
14
16
  // By default, all Docusaurus sites are using the same AppId
15
17
  // This has been designed on purpose with Algolia.