@docusaurus/theme-classic 0.0.0-4191 → 0.0.0-4197
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/codeTranslations/fr.json +4 -4
- package/lib/deps.d.ts +13 -0
- package/lib/theme/NavbarItem/DocNavbarItem.js +1 -3
- package/lib/theme-classic.d.ts +805 -0
- package/lib/types.d.ts +0 -806
- package/lib-next/deps.d.ts +13 -0
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +1 -2
- package/lib-next/theme-classic.d.ts +805 -0
- package/lib-next/types.d.ts +0 -806
- package/package.json +12 -13
- package/src/deps.d.ts +13 -0
- package/src/theme/DocPage/index.tsx +1 -1
- package/src/theme/DocSidebarItem/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/NavbarItem/DocNavbarItem.tsx +2 -3
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +1 -1
- package/src/theme-classic.d.ts +805 -0
- package/src/types.d.ts +0 -806
package/codeTranslations/fr.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"theme.AnnouncementBar.closeButtonAriaLabel": "Fermer",
|
|
3
|
-
"theme.BackToTopButton.buttonAriaLabel": "
|
|
3
|
+
"theme.BackToTopButton.buttonAriaLabel": "Revenez en haut",
|
|
4
4
|
"theme.CodeBlock.copied": "Copié",
|
|
5
5
|
"theme.CodeBlock.copy": "Copier",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copier le code",
|
|
7
|
-
"theme.ErrorPageContent.title": "
|
|
8
|
-
"theme.ErrorPageContent.tryAgain": "
|
|
7
|
+
"theme.ErrorPageContent.title": "Cette page a planté.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Réessayer",
|
|
9
9
|
"theme.NotFound.p1": "Nous n'avons pas trouvé ce que vous recherchez.",
|
|
10
10
|
"theme.NotFound.p2": "Veuillez contacter le propriétaire du site qui vous a lié à l'URL d'origine et leur faire savoir que leur lien est cassé.",
|
|
11
11
|
"theme.NotFound.title": "Page introuvable",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"theme.blog.post.plurals": "Un article|{count} articles",
|
|
36
36
|
"theme.blog.post.readMore": "Lire plus",
|
|
37
37
|
"theme.blog.post.readingTime.plurals": "Une minute de lecture|{readingTime} minutes de lecture",
|
|
38
|
-
"theme.blog.sidebar.navAriaLabel": "
|
|
38
|
+
"theme.blog.sidebar.navAriaLabel": "Navigation article de blog récent",
|
|
39
39
|
"theme.blog.tagTitle": "{nPosts} tagués avec « {tagName} »",
|
|
40
40
|
"theme.common.editThisPage": "Éditer cette page",
|
|
41
41
|
"theme.common.headingLinkTitle": "Lien direct vers le titre",
|
package/lib/deps.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare module 'prism-react-renderer/prism' {
|
|
9
|
+
import type * as PrismNamespace from 'prismjs';
|
|
10
|
+
|
|
11
|
+
const Prism: typeof PrismNamespace;
|
|
12
|
+
export default Prism;
|
|
13
|
+
}
|
|
@@ -17,8 +17,6 @@ var _index = require("./index");
|
|
|
17
17
|
|
|
18
18
|
var _themeCommon = require("@docusaurus/theme-common");
|
|
19
19
|
|
|
20
|
-
var _utilsCommon = require("@docusaurus/utils-common");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
/**
|
|
@@ -55,7 +53,7 @@ function DocNavbarItem({
|
|
|
55
53
|
} = (0, _themeCommon.useDocsPreferredVersion)(docsPluginId);
|
|
56
54
|
const latestVersion = (0, _useDocs.useLatestVersion)(docsPluginId); // Versions used to look for the doc to link to, ordered + no duplicate
|
|
57
55
|
|
|
58
|
-
const versions = (0,
|
|
56
|
+
const versions = (0, _themeCommon.uniq)([activeVersion, preferredVersion, latestVersion].filter(Boolean));
|
|
59
57
|
const doc = getDocInVersions(versions, docId);
|
|
60
58
|
const activeDocInfimaClassName = (0, _index.getInfimaActiveClassName)(props.mobile);
|
|
61
59
|
return <_DefaultNavbarItem.default exact {...props} className={(0, _clsx.default)(props.className, {
|