@apify/docs-theme 1.0.207 → 1.0.209
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
|
@@ -9,12 +9,17 @@ import React from 'react';
|
|
|
9
9
|
export default function LayoutWrapper(props) {
|
|
10
10
|
const { options: { subNavbar } } = usePluginData('@apify/docs-theme');
|
|
11
11
|
const baseUrl = useBaseUrl('/');
|
|
12
|
-
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
|
|
12
|
+
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '').trim();
|
|
13
|
+
const shouldRenderAlternateLink = currentPath && currentPath !== '404';
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<>
|
|
16
17
|
<Head>
|
|
17
|
-
|
|
18
|
+
{
|
|
19
|
+
shouldRenderAlternateLink
|
|
20
|
+
? <link rel="alternate" type="text/markdown" href={`${currentPath}.md`}/>
|
|
21
|
+
: null
|
|
22
|
+
}
|
|
18
23
|
</Head>
|
|
19
24
|
<div
|
|
20
25
|
style={{
|
package/src/theme/custom.css
CHANGED
|
@@ -125,6 +125,8 @@ html[data-theme='dark'] {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
:root {
|
|
128
|
+
--biel-button-position-right: 84px;
|
|
129
|
+
--biel-button-position-bottom: 24px;
|
|
128
130
|
/* use default system font based on https://devhints.io/css-system-font-stack */
|
|
129
131
|
--ifm-font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
130
132
|
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
|
|
@@ -1997,3 +1999,4 @@ div[class^="navbarSearchContainer"] {
|
|
|
1997
1999
|
width: 14px !important;
|
|
1998
2000
|
height: 15px !important;
|
|
1999
2001
|
}
|
|
2002
|
+
|