@apify/docs-theme 1.0.191 → 1.0.193

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.191",
3
+ "version": "1.0.193",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -1,3 +1,4 @@
1
+ import Head from '@docusaurus/Head';
1
2
  import { useLocation } from '@docusaurus/router';
2
3
  // cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
3
4
  import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index';
@@ -11,13 +12,19 @@ export default function LayoutWrapper(props) {
11
12
  const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
12
13
 
13
14
  return (
14
- <div style={{
15
- '--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '126px' : '68px',
16
- margin: 0,
17
- padding: 0,
18
- boxSizing: 'border-box',
19
- }}>
20
- <Layout {...props} />
21
- </div>
15
+ <>
16
+ <Head>
17
+ <link rel="alternate" type="text/markdown" href={`${currentPath}.md`}/>
18
+ </Head>
19
+ <div
20
+ style={{
21
+ '--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '126px' : '68px',
22
+ margin: 0,
23
+ padding: 0,
24
+ boxSizing: 'border-box',
25
+ }}>
26
+ <Layout {...props} />
27
+ </div>
28
+ </>
22
29
  );
23
30
  }
@@ -2,7 +2,7 @@
2
2
  height: 4rem;
3
3
  padding: 0.8rem 1.6rem !important;
4
4
  background-color: var(--color-primary-black-action);
5
- border-radius: 2rem;
5
+ border-radius: 8px;
6
6
  color: var(--color-neutral-text-on-primary);
7
7
  font-size: 1.6rem;
8
8
  font-weight: 500;