@docusaurus/theme-classic 0.0.0-4698 → 0.0.0-4699
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/lib-next/theme/DocSidebarItem/index.js +4 -8
- package/lib-next/theme/Footer/index.js +4 -8
- package/lib-next/theme/NavbarItem/NavbarNavLink.js +5 -7
- package/package.json +13 -13
- package/src/theme/DocSidebarItem/index.tsx +4 -8
- package/src/theme/Footer/index.tsx +4 -8
- package/src/theme/NavbarItem/NavbarNavLink.tsx +5 -7
|
@@ -250,14 +250,10 @@ function DocSidebarItemLink({
|
|
|
250
250
|
onClick: onItemClick ? () => onItemClick(item) : undefined,
|
|
251
251
|
})}
|
|
252
252
|
{...props}>
|
|
253
|
-
|
|
254
|
-
label
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
{label}
|
|
258
|
-
<IconExternalLink />
|
|
259
|
-
</span>
|
|
260
|
-
)}
|
|
253
|
+
<span>
|
|
254
|
+
{label}
|
|
255
|
+
{!isInternalUrl(href) && <IconExternalLink />}
|
|
256
|
+
</span>
|
|
261
257
|
</Link>
|
|
262
258
|
</li>
|
|
263
259
|
);
|
|
@@ -30,14 +30,10 @@ function FooterLink({to, href, label, prependBaseUrlToHref, ...props}) {
|
|
|
30
30
|
to: toUrl,
|
|
31
31
|
})}
|
|
32
32
|
{...props}>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</span>
|
|
38
|
-
) : (
|
|
39
|
-
label
|
|
40
|
-
)}
|
|
33
|
+
<span>
|
|
34
|
+
{label}
|
|
35
|
+
{href && !isInternalUrl(href) && <IconExternalLink />}
|
|
36
|
+
</span>
|
|
41
37
|
</Link>
|
|
42
38
|
);
|
|
43
39
|
}
|
|
@@ -52,19 +52,17 @@ export default function NavbarNavLink({
|
|
|
52
52
|
: null),
|
|
53
53
|
})}
|
|
54
54
|
{...props}>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
<span>
|
|
56
|
+
{label}
|
|
57
|
+
{isExternalLink && (
|
|
58
58
|
<IconExternalLink
|
|
59
59
|
{...(isDropdownLink && {
|
|
60
60
|
width: 12,
|
|
61
61
|
height: 12,
|
|
62
62
|
})}
|
|
63
63
|
/>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
label
|
|
67
|
-
)}
|
|
64
|
+
)}
|
|
65
|
+
</span>
|
|
68
66
|
</Link>
|
|
69
67
|
);
|
|
70
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4699",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4699",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4699",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4699",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4699",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4699",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4699",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4699",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4699",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4699",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4699",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4699",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.5",
|
|
48
48
|
"@types/prismjs": "^1.26.0",
|
|
49
49
|
"@types/rtlcss": "^3.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ae96a5ebd7fb6dde9af93742deb5c295bea4915d"
|
|
63
63
|
}
|
|
@@ -269,14 +269,10 @@ function DocSidebarItemLink({
|
|
|
269
269
|
onClick: onItemClick ? () => onItemClick(item) : undefined,
|
|
270
270
|
})}
|
|
271
271
|
{...props}>
|
|
272
|
-
|
|
273
|
-
label
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
{label}
|
|
277
|
-
<IconExternalLink />
|
|
278
|
-
</span>
|
|
279
|
-
)}
|
|
272
|
+
<span>
|
|
273
|
+
{label}
|
|
274
|
+
{!isInternalUrl(href) && <IconExternalLink />}
|
|
275
|
+
</span>
|
|
280
276
|
</Link>
|
|
281
277
|
</li>
|
|
282
278
|
);
|
|
@@ -42,14 +42,10 @@ function FooterLink({
|
|
|
42
42
|
to: toUrl,
|
|
43
43
|
})}
|
|
44
44
|
{...props}>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</span>
|
|
50
|
-
) : (
|
|
51
|
-
label
|
|
52
|
-
)}
|
|
45
|
+
<span>
|
|
46
|
+
{label}
|
|
47
|
+
{href && !isInternalUrl(href) && <IconExternalLink />}
|
|
48
|
+
</span>
|
|
53
49
|
</Link>
|
|
54
50
|
);
|
|
55
51
|
}
|
|
@@ -55,14 +55,12 @@ export default function NavbarNavLink({
|
|
|
55
55
|
: null),
|
|
56
56
|
})}
|
|
57
57
|
{...props}>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
<span>
|
|
59
|
+
{label}
|
|
60
|
+
{isExternalLink && (
|
|
61
61
|
<IconExternalLink {...(isDropdownLink && {width: 12, height: 12})} />
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
label
|
|
65
|
-
)}
|
|
62
|
+
)}
|
|
63
|
+
</span>
|
|
66
64
|
</Link>
|
|
67
65
|
);
|
|
68
66
|
}
|