@apify/docs-theme 1.0.50 → 1.0.52

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.50",
3
+ "version": "1.0.52",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
package/src/config.js CHANGED
@@ -1,4 +1,4 @@
1
- const absoluteUrl = process.env.LOCAL ? 'http://docs-v2.apify.loc' : 'https://docs-v2.apify.com';
1
+ const absoluteUrl = process.env.LOCAL ? 'http://docs.apify.loc' : 'https://docs.apify.com';
2
2
 
3
3
  const themeConfig = ({
4
4
  docs: {
@@ -72,7 +72,7 @@ const themeConfig = ({
72
72
  rel: 'dofollow',
73
73
  },
74
74
  {
75
- label: 'SDK for Python',
75
+ html: 'SDK for Python <span class="beta-chip">beta</span>',
76
76
  href: `${absoluteUrl}/sdk/python/`, // we need a trailing slash here, we'd get redirected there anyway
77
77
  target: '_self',
78
78
  rel: 'dofollow',
@@ -673,3 +673,21 @@ aside li.section-header.menu__list-item:nth-child(2) {
673
673
  aside li.section-header > .menu__list {
674
674
  padding-left: 0;
675
675
  }
676
+
677
+ .beta-chip {
678
+ display: inline-block;
679
+ border: 1px solid #ccc;
680
+ border-radius: 20px;
681
+ content: 'beta';
682
+ background: #ddd;
683
+ font-size: 80%;
684
+ line-height: 10px;
685
+ padding: 3px;
686
+ position: relative;
687
+ top: -1px;
688
+ margin-left: 5px;
689
+ }
690
+
691
+ html[data-theme='dark'] .beta-chip {
692
+ background: #333;
693
+ }
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import Link from '@docusaurus/Link';
3
- import useBaseUrl from '@docusaurus/useBaseUrl';
4
- import { useLocation } from '@docusaurus/router';
5
- import { translate } from '@docusaurus/Translate';
6
- import IconHome from '@theme/Icon/Home';
7
- import styles from './styles.module.css';
8
-
9
- export default function HomeBreadcrumbItem() {
10
- const baseUrl = useBaseUrl('/');
11
-
12
- const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
13
- const homeHref = useBaseUrl(currentPath.split('/')[0]);
14
-
15
- return (
16
- <li className="breadcrumbs__item">
17
- <Link
18
- aria-label={translate({
19
- id: 'theme.docs.breadcrumbs.home',
20
- message: 'Home page',
21
- description: 'The ARIA label for the home page in the breadcrumbs',
22
- })}
23
- className="breadcrumbs__link"
24
- href={homeHref}>
25
- <IconHome className={styles.breadcrumbHomeIcon} />
26
- </Link>
27
- </li>
28
- );
29
- }
@@ -1,7 +0,0 @@
1
- .breadcrumbHomeIcon {
2
- position: relative;
3
- top: 1px;
4
- vertical-align: top;
5
- height: 1.1rem;
6
- width: 1.1rem;
7
- }