@apify/docs-theme 1.0.75 → 1.0.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@ function useLink(href, baseUrl) {
21
21
  return href.startsWith(baseUrl);
22
22
  }
23
23
 
24
- function A(props) {
24
+ export function A(props) {
25
25
  props = { ...props };
26
26
 
27
27
  if (props.href.startsWith('https://docs.apify.com')) {
@@ -5,7 +5,6 @@ import algoliaSearchHelper from 'algoliasearch-helper';
5
5
  import algoliaSearch from 'algoliasearch/lite';
6
6
  import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
7
7
  import Head from '@docusaurus/Head';
8
- import Link from '@docusaurus/Link';
9
8
  import { useAllDocsData } from '@docusaurus/plugin-content-docs/client';
10
9
  import {
11
10
  HtmlClassNameProvider,
@@ -23,6 +22,7 @@ import {
23
22
  useSearchResultUrlProcessor,
24
23
  } from '@docusaurus/theme-search-algolia/client';
25
24
  import Layout from '@theme/Layout';
25
+ import { A } from '../SearchBar';
26
26
  import styles from './styles.module.css';
27
27
 
28
28
  // Very simple pluralization: probably good enough for now
@@ -382,7 +382,7 @@ function SearchPageContent() {
382
382
  ({ title, url, summary, breadcrumbs }, i) => (
383
383
  <article key={i} className={styles.searchResultItem}>
384
384
  <h2 className={styles.searchResultItemHeading}>
385
- <Link to={url} dangerouslySetInnerHTML={{ __html: title }}/>
385
+ <A href={url} dangerouslySetInnerHTML={{ __html: title }}/>
386
386
  </h2>
387
387
 
388
388
  {breadcrumbs.length > 0 && (