+ This is an Atom feed. Subscribe by copying the URL
+ from the address bar into your newsreader. Visit
+ About Feeds to learn more
+ and get started. It’s free.
+
+ This is an RSS feed. Subscribe by copying the URL
+ from the address bar into your newsreader. Visit
+ About Feeds to learn more
+ and get started. It’s free.
+
+ This is an Atom feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.
+ This is an RSS feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.
+ This is an Atom feed. Subscribe by copying the URL
+ from the address bar into your newsreader. Visit
+ About Feeds to learn more
+ and get started. It’s free.
+
+ This is an Atom feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.
+ This is an RSS feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.
+ This is an RSS feed. Subscribe by copying the URL
+ from the address bar into your newsreader. Visit
+ About Feeds to learn more
+ and get started. It’s free.
+
diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/Socials/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/Socials/styles.module.css
similarity index 75%
rename from packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/Socials/styles.module.css
rename to packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/Socials/styles.module.css
index 1fca8b7e38..7c1ffc0736 100644
--- a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/Socials/styles.module.css
+++ b/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/Socials/styles.module.css
@@ -10,7 +10,12 @@
}
.authorSocials {
- margin-top: 0.2rem;
+ /*
+ This ensures that container takes height even if there's no social link
+ This keeps author names aligned even if only some have socials
+ */
+ height: var(--docusaurus-blog-social-icon-size);
+
display: flex;
flex-wrap: wrap;
align-items: center;
@@ -25,7 +30,7 @@
height: var(--docusaurus-blog-social-icon-size);
width: var(--docusaurus-blog-social-icon-size);
line-height: 0;
- margin-right: 0.3rem;
+ margin-right: 0.4rem;
}
.authorSocialIcon {
diff --git a/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/index.tsx b/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/index.tsx
new file mode 100644
index 0000000000..5861b3da80
--- /dev/null
+++ b/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/index.tsx
@@ -0,0 +1,99 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+import React from 'react';
+import clsx from 'clsx';
+import Link, {type Props as LinkProps} from '@docusaurus/Link';
+import AuthorSocials from '@theme/Blog/Components/Author/Socials';
+import type {Props} from '@theme/Blog/Components/Author';
+import Heading from '@theme/Heading';
+import styles from './styles.module.css';
+
+function MaybeLink(props: LinkProps): JSX.Element {
+ if (props.href) {
+ return ;
+ }
+ return <>{props.children}>;
+}
+
+function AuthorTitle({title}: {title: string}) {
+ return (
+
+ {title}
+
+ );
+}
+
+function AuthorName({name, as}: {name: string; as: Props['as']}) {
+ if (!as) {
+ return {name};
+ } else {
+ return (
+
+ {name}
+
+ );
+ }
+}
+
+function AuthorBlogPostCount({count}: {count: number}) {
+ return {count};
+}
+
+// Note: in the future we might want to have multiple "BlogAuthor" components
+// Creating different display modes with the "as" prop may not be the best idea
+// Explainer: https://kyleshevlin.com/prefer-multiple-compositions/
+// For now, we almost use the same design for all cases, so it's good enough
+export default function BlogAuthor({
+ as,
+ author,
+ className,
+ count,
+}: Props): JSX.Element {
+ const {name, title, url, imageURL, email, page} = author;
+ const link =
+ page?.permalink || url || (email && `mailto:${email}`) || undefined;
+
+ return (
+
- );
-}
diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/styles.module.css b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/styles.module.css
deleted file mode 100644
index 21ea5d40dc..0000000000
--- a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Author/styles.module.css
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-.authorName {
- font-size: 1.1rem;
-}
-
-.authorTitle {
- margin-top: 0.06rem;
- font-size: 0.8rem;
- line-height: 0.8rem;
- display: -webkit-box;
- overflow: hidden;
- line-clamp: 1;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
-}
diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Authors/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Authors/index.tsx
index 7ee6a472b2..fc7b313dd2 100644
--- a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Authors/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Authors/index.tsx
@@ -8,7 +8,7 @@
import React from 'react';
import clsx from 'clsx';
import {useBlogPost} from '@docusaurus/plugin-content-blog/client';
-import BlogPostItemHeaderAuthor from '@theme/BlogPostItem/Header/Author';
+import BlogAuthor from '@theme/Blog/Components/Author';
import type {Props} from '@theme/BlogPostItem/Header/Authors';
import styles from './styles.module.css';
@@ -40,8 +40,7 @@ export default function BlogPostItemHeaderAuthors({
imageOnly ? styles.imageOnlyAuthorCol : styles.authorCol,
)}
key={idx}>
-
) : undefined
}>
- {unlisted && }
+ {children}
diff --git a/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx
index 45f71008db..c050fbcf3e 100644
--- a/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx
@@ -7,52 +7,22 @@
import React from 'react';
import clsx from 'clsx';
-import Translate, {translate} from '@docusaurus/Translate';
+import Translate from '@docusaurus/Translate';
import {
PageMetadata,
HtmlClassNameProvider,
ThemeClassNames,
- usePluralForm,
} from '@docusaurus/theme-common';
+import {useBlogTagsPostsPageTitle} from '@docusaurus/theme-common/internal';
import Link from '@docusaurus/Link';
import BlogLayout from '@theme/BlogLayout';
import BlogListPaginator from '@theme/BlogListPaginator';
import SearchMetadata from '@theme/SearchMetadata';
import type {Props} from '@theme/BlogTagsPostsPage';
import BlogPostItems from '@theme/BlogPostItems';
-import Unlisted from '@theme/Unlisted';
+import Unlisted from '@theme/ContentVisibility/Unlisted';
import Heading from '@theme/Heading';
-// Very simple pluralization: probably good enough for now
-function useBlogPostsPlural() {
- const {selectMessage} = usePluralForm();
- return (count: number) =>
- selectMessage(
- count,
- translate(
- {
- id: 'theme.blog.post.plurals',
- description:
- 'Pluralized label for "{count} posts". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',
- message: 'One post|{count} posts',
- },
- {count},
- ),
- );
-}
-
-function useBlogTagsPostsPageTitle(tag: Props['tag']): string {
- const blogPostsPlural = useBlogPostsPlural();
- return translate(
- {
- id: 'theme.blog.tagTitle',
- description: 'The title of the page for a blog tag',
- message: '{nPosts} tagged with "{tagName}"',
- },
- {nPosts: blogPostsPlural(tag.count), tagName: tag.label},
- );
-}
-
function BlogTagsPostsPageMetadata({tag}: Props): JSX.Element {
const title = useBlogTagsPostsPageTitle(tag);
return (
diff --git a/packages/docusaurus-theme-classic/src/theme/ContentVisibility/Draft/index.tsx b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/Draft/index.tsx
new file mode 100644
index 0000000000..6595e2295f
--- /dev/null
+++ b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/Draft/index.tsx
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+import React from 'react';
+import clsx from 'clsx';
+import {
+ ThemeClassNames,
+ DraftBannerTitle,
+ DraftBannerMessage,
+} from '@docusaurus/theme-common';
+import Admonition from '@theme/Admonition';
+import type {Props} from '@theme/ContentVisibility/Draft';
+
+export default function Draft({className}: Props): JSX.Element | null {
+ return (
+ }
+ className={clsx(className, ThemeClassNames.common.draftBanner)}>
+
+
+ );
+}
diff --git a/packages/docusaurus-theme-classic/src/theme/Unlisted/index.tsx b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/Unlisted/index.tsx
similarity index 94%
rename from packages/docusaurus-theme-classic/src/theme/Unlisted/index.tsx
rename to packages/docusaurus-theme-classic/src/theme/ContentVisibility/Unlisted/index.tsx
index 302456e5bf..004f99d9ef 100644
--- a/packages/docusaurus-theme-classic/src/theme/Unlisted/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/Unlisted/index.tsx
@@ -14,7 +14,7 @@ import {
UnlistedMetadata,
} from '@docusaurus/theme-common';
import Admonition from '@theme/Admonition';
-import type {Props} from '@theme/Unlisted';
+import type {Props} from '@theme/ContentVisibility/Unlisted';
function UnlistedBanner({className}: Props) {
return (
diff --git a/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx
new file mode 100644
index 0000000000..f9c570e02c
--- /dev/null
+++ b/packages/docusaurus-theme-classic/src/theme/ContentVisibility/index.tsx
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+import React from 'react';
+
+import type {Props} from '@theme/ContentVisibility';
+import Draft from '@theme/ContentVisibility/Draft';
+import Unlisted from '@theme/ContentVisibility/Unlisted';
+
+export default function ContentVisibility({
+ metadata,
+}: Props): JSX.Element | null {
+ const {unlisted, frontMatter} = metadata;
+ // Reading draft/unlisted status from frontMatter is useful to display
+ // the banners in dev mode (in dev, metadata.unlisted is always false)
+ // See https://github.com/facebook/docusaurus/issues/8285
+ return (
+ <>
+ {(unlisted || frontMatter.unlisted) && }
+ {frontMatter.draft && }
+ >
+ );
+}
diff --git a/packages/docusaurus-theme-classic/src/theme/DocItem/Layout/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocItem/Layout/index.tsx
index 864a7896f3..138b6ad45f 100644
--- a/packages/docusaurus-theme-classic/src/theme/DocItem/Layout/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/DocItem/Layout/index.tsx
@@ -17,7 +17,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop';
import DocItemContent from '@theme/DocItem/Content';
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
-import Unlisted from '@theme/Unlisted';
+import ContentVisibility from '@theme/ContentVisibility';
import type {Props} from '@theme/DocItem/Layout';
import styles from './styles.module.css';
@@ -48,13 +48,11 @@ function useDocTOC() {
export default function DocItemLayout({children}: Props): JSX.Element {
const docTOC = useDocTOC();
- const {
- metadata: {unlisted},
- } = useDoc();
+ const {metadata} = useDoc();
return (
- {unlisted && }
+
diff --git a/packages/docusaurus-theme-classic/src/theme/DocTagDocListPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocTagDocListPage/index.tsx
index aa56a14ef3..32e1d642e3 100644
--- a/packages/docusaurus-theme-classic/src/theme/DocTagDocListPage/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/DocTagDocListPage/index.tsx
@@ -17,7 +17,7 @@ import {
import Translate, {translate} from '@docusaurus/Translate';
import SearchMetadata from '@theme/SearchMetadata';
import type {Props} from '@theme/DocTagDocListPage';
-import Unlisted from '@theme/Unlisted';
+import Unlisted from '@theme/ContentVisibility/Unlisted';
import Heading from '@theme/Heading';
// Very simple pluralization: probably good enough for now
diff --git a/packages/docusaurus-theme-classic/src/theme/MDXPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/MDXPage/index.tsx
index 103dc3e69a..737c0bccbd 100644
--- a/packages/docusaurus-theme-classic/src/theme/MDXPage/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/MDXPage/index.tsx
@@ -15,7 +15,7 @@ import {
import Layout from '@theme/Layout';
import MDXContent from '@theme/MDXContent';
import TOC from '@theme/TOC';
-import Unlisted from '@theme/Unlisted';
+import ContentVisibility from '@theme/ContentVisibility';
import type {Props} from '@theme/MDXPage';
import EditMetaRow from '@theme/EditMetaRow';
@@ -23,18 +23,15 @@ import styles from './styles.module.css';
export default function MDXPage(props: Props): JSX.Element {
const {content: MDXPageContent} = props;
+ const {metadata, assets} = MDXPageContent;
const {
- metadata: {
- title,
- editUrl,
- description,
- frontMatter,
- unlisted,
- lastUpdatedBy,
- lastUpdatedAt,
- },
- assets,
- } = MDXPageContent;
+ title,
+ editUrl,
+ description,
+ frontMatter,
+ lastUpdatedBy,
+ lastUpdatedAt,
+ } = metadata;
const {
keywords,
wrapperClassName,
@@ -60,7 +57,7 @@ export default function MDXPage(props: Props): JSX.Element {
- {unlisted && }
+
diff --git a/packages/docusaurus-theme-common/src/index.ts b/packages/docusaurus-theme-common/src/index.ts
index 593da9842b..003289b5cb 100644
--- a/packages/docusaurus-theme-common/src/index.ts
+++ b/packages/docusaurus-theme-common/src/index.ts
@@ -123,7 +123,9 @@ export {
UnlistedBannerTitle,
UnlistedBannerMessage,
UnlistedMetadata,
-} from './utils/unlistedUtils';
+ DraftBannerTitle,
+ DraftBannerMessage,
+} from './translations/contentVisibilityTranslations';
export {
ErrorBoundaryTryAgainButton,
diff --git a/packages/docusaurus-theme-common/src/internal.ts b/packages/docusaurus-theme-common/src/internal.ts
index a31b19269f..8c3f5d6b7c 100644
--- a/packages/docusaurus-theme-common/src/internal.ts
+++ b/packages/docusaurus-theme-common/src/internal.ts
@@ -90,3 +90,10 @@ export {useLockBodyScroll} from './hooks/useLockBodyScroll';
export {useCodeWordWrap} from './hooks/useCodeWordWrap';
export {getPrismCssVariables} from './utils/codeBlockUtils';
export {useBackToTopButton} from './hooks/useBackToTopButton';
+
+export {
+ useBlogTagsPostsPageTitle,
+ useBlogAuthorPageTitle,
+ translateBlogAuthorsListPageTitle,
+ BlogAuthorsListViewAllLabel,
+} from './translations/blogTranslations';
diff --git a/packages/docusaurus-theme-common/src/translations/blogTranslations.tsx b/packages/docusaurus-theme-common/src/translations/blogTranslations.tsx
new file mode 100644
index 0000000000..0390ee063a
--- /dev/null
+++ b/packages/docusaurus-theme-common/src/translations/blogTranslations.tsx
@@ -0,0 +1,79 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+import React, {type ReactNode} from 'react';
+import Translate, {translate} from '@docusaurus/Translate';
+import {usePluralForm} from '../utils/usePluralForm';
+
+// Only used locally
+function useBlogPostsPlural(): (count: number) => string {
+ const {selectMessage} = usePluralForm();
+ return (count: number) =>
+ selectMessage(
+ count,
+ translate(
+ {
+ id: 'theme.blog.post.plurals',
+ description:
+ 'Pluralized label for "{count} posts". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',
+ message: 'One post|{count} posts',
+ },
+ {count},
+ ),
+ );
+}
+
+export function useBlogTagsPostsPageTitle(tag: {
+ label: string;
+ count: number;
+}): string {
+ const blogPostsPlural = useBlogPostsPlural();
+ return translate(
+ {
+ id: 'theme.blog.tagTitle',
+ description: 'The title of the page for a blog tag',
+ message: '{nPosts} tagged with "{tagName}"',
+ },
+ {nPosts: blogPostsPlural(tag.count), tagName: tag.label},
+ );
+}
+
+export function useBlogAuthorPageTitle(author: {
+ key: string;
+ name?: string;
+ count: number;
+}): string {
+ const blogPostsPlural = useBlogPostsPlural();
+ return translate(
+ {
+ id: 'theme.blog.author.pageTitle',
+ description: 'The title of the page for a blog author',
+ message: '{authorName} - {nPosts}',
+ },
+ {
+ nPosts: blogPostsPlural(author.count),
+ authorName: author.name || author.key,
+ },
+ );
+}
+
+export const translateBlogAuthorsListPageTitle = (): string =>
+ translate({
+ id: 'theme.blog.authorsList.pageTitle',
+ message: 'Authors',
+ description: 'The title of the authors page',
+ });
+
+export function BlogAuthorsListViewAllLabel(): ReactNode {
+ return (
+
+ View All Authors
+
+ );
+}
diff --git a/packages/docusaurus-theme-common/src/utils/unlistedUtils.tsx b/packages/docusaurus-theme-common/src/translations/contentVisibilityTranslations.tsx
similarity index 53%
rename from packages/docusaurus-theme-common/src/utils/unlistedUtils.tsx
rename to packages/docusaurus-theme-common/src/translations/contentVisibilityTranslations.tsx
index 8147e59872..f331b922e3 100644
--- a/packages/docusaurus-theme-common/src/utils/unlistedUtils.tsx
+++ b/packages/docusaurus-theme-common/src/translations/contentVisibilityTranslations.tsx
@@ -12,7 +12,7 @@ import Head from '@docusaurus/Head';
export function UnlistedBannerTitle(): JSX.Element {
return (
Unlisted page
@@ -22,7 +22,7 @@ export function UnlistedBannerTitle(): JSX.Element {
export function UnlistedBannerMessage(): JSX.Element {
return (
This page is unlisted. Search engines will not index it, and only users
having a direct link can access it.
@@ -30,6 +30,8 @@ export function UnlistedBannerMessage(): JSX.Element {
);
}
+// TODO Docusaurus v4 breaking change (since it's v3 public theme-common API :/)
+// Move this to theme/ContentVisibility/Unlisted
export function UnlistedMetadata(): JSX.Element {
return (
@@ -37,3 +39,24 @@ export function UnlistedMetadata(): JSX.Element {
);
}
+
+export function DraftBannerTitle(): JSX.Element {
+ return (
+
+ Draft page
+
+ );
+}
+
+export function DraftBannerMessage(): JSX.Element {
+ return (
+
+ This page is a draft. It will only be visible in dev and be excluded from
+ the production build.
+
+ );
+}
diff --git a/packages/docusaurus-theme-common/src/utils/ThemeClassNames.ts b/packages/docusaurus-theme-common/src/utils/ThemeClassNames.ts
index 1cdcda3ce5..78539578e6 100644
--- a/packages/docusaurus-theme-common/src/utils/ThemeClassNames.ts
+++ b/packages/docusaurus-theme-common/src/utils/ThemeClassNames.ts
@@ -18,6 +18,8 @@ export const ThemeClassNames = {
blogPostPage: 'blog-post-page',
blogTagsListPage: 'blog-tags-list-page',
blogTagPostListPage: 'blog-tags-post-list-page',
+ blogAuthorsListPage: 'blog-authors-list-page',
+ blogAuthorsPostsPage: 'blog-authors-posts-page',
docsDocPage: 'docs-doc-page',
docsTagsListPage: 'docs-tags-list-page',
@@ -41,6 +43,7 @@ export const ThemeClassNames = {
codeBlock: 'theme-code-block',
admonition: 'theme-admonition',
unlistedBanner: 'theme-unlisted-banner',
+ draftBanner: 'theme-draft-banner',
admonitionType: (type: string) => `theme-admonition-${type}`,
},
diff --git a/packages/docusaurus-theme-common/src/utils/__tests__/tagUtils.test.ts b/packages/docusaurus-theme-common/src/utils/__tests__/tagsUtils.test.ts
similarity index 78%
rename from packages/docusaurus-theme-common/src/utils/__tests__/tagUtils.test.ts
rename to packages/docusaurus-theme-common/src/utils/__tests__/tagsUtils.test.ts
index 4e1f614d77..8e5fac8cef 100644
--- a/packages/docusaurus-theme-common/src/utils/__tests__/tagUtils.test.ts
+++ b/packages/docusaurus-theme-common/src/utils/__tests__/tagsUtils.test.ts
@@ -7,42 +7,47 @@
import _ from 'lodash';
import {listTagsByLetters} from '../tagsUtils';
+import type {TagsListItem} from '@docusaurus/utils';
describe('listTagsByLetters', () => {
- type Param = Parameters[0];
- type Tag = Param[number];
type Result = ReturnType;
it('creates letters list', () => {
- const tag1: Tag = {
+ const tag1: TagsListItem = {
label: 'tag1',
permalink: '/tag1',
count: 1,
+ description: '',
};
- const tag2: Tag = {
+ const tag2: TagsListItem = {
label: 'Tag2',
permalink: '/tag2',
count: 11,
+ description: '',
};
- const tagZxy: Tag = {
+ const tagZxy: TagsListItem = {
label: 'zxy',
permalink: '/zxy',
count: 987,
+ description: '',
};
- const tagAbc: Tag = {
+ const tagAbc: TagsListItem = {
label: 'Abc',
permalink: '/abc',
count: 123,
+ description: '',
};
- const tagDef: Tag = {
+ const tagDef: TagsListItem = {
label: 'def',
permalink: '/def',
count: 1,
+ description: '',
};
- const tagAaa: Tag = {
+ const tagAaa: TagsListItem = {
label: 'aaa',
permalink: '/aaa',
count: 10,
+ description: '',
};
const expectedResult: Result = [
diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx
index 1325a2c2e9..aea9f06013 100644
--- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx
+++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx
@@ -156,6 +156,10 @@ function DocSearch({
const handleInput = useCallback(
(event: KeyboardEvent) => {
+ if (event.key === 'f' && (event.metaKey || event.ctrlKey)) {
+ // ignore browser's ctrl+f
+ return;
+ }
// prevents duplicate key insertion in the modal input
event.preventDefault();
setInitialQuery(event.key);
diff --git a/packages/docusaurus-theme-translations/locales/ar/theme-common.json b/packages/docusaurus-theme-translations/locales/ar/theme-common.json
index aad2e83c3d..e165598da4 100644
--- a/packages/docusaurus-theme-translations/locales/ar/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/ar/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "أرشيف",
"theme.blog.archive.title": "أرشيف",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "التنقل في صفحة قائمة المدونة",
"theme.blog.paginator.newerEntries": "إدخالات أحدث",
"theme.blog.paginator.olderEntries": "إدخالات أقدم",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "تعديل هذه الصفحة",
"theme.common.headingLinkTitle": "ارتباط مباشر بالعنوان {heading}",
"theme.common.skipToMainContent": "انتقل إلى المحتوى الرئيسي",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "{count} مواد",
"theme.docs.breadcrumbs.home": "الرئيسية",
"theme.docs.breadcrumbs.navAriaLabel": "التنقل التفصيلي",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "إصدارات",
"theme.tags.tagsListLabel": "الوسوم:",
"theme.tags.tagsPageLink": "عرض كل الوسوم",
- "theme.tags.tagsPageTitle": "الوسوم",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "الوسوم"
}
diff --git a/packages/docusaurus-theme-translations/locales/base/theme-common.json b/packages/docusaurus-theme-translations/locales/base/theme-common.json
index fcaeb33e9a..2d7d9768e3 100644
--- a/packages/docusaurus-theme-translations/locales/base/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/base/theme-common.json
@@ -45,6 +45,12 @@
"theme.blog.archive.description___DESCRIPTION": "The page & hero description of the blog archive page",
"theme.blog.archive.title": "Archive",
"theme.blog.archive.title___DESCRIPTION": "The page & hero title of the blog archive page",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.author.pageTitle___DESCRIPTION": "The title of the page for a blog author",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.pageTitle___DESCRIPTION": "The title of the authors page",
+ "theme.blog.authorsList.viewAll": "View All Authors",
+ "theme.blog.authorsList.viewAll___DESCRIPTION": "The label of the link targeting the blog authors page",
"theme.blog.paginator.navAriaLabel": "Blog list page navigation",
"theme.blog.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog pagination",
"theme.blog.paginator.newerEntries": "Newer Entries",
@@ -81,6 +87,14 @@
"theme.common.headingLinkTitle___DESCRIPTION": "Title for link to heading",
"theme.common.skipToMainContent": "Skip to main content",
"theme.common.skipToMainContent___DESCRIPTION": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.message___DESCRIPTION": "The draft content banner message",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.draftBanner.title___DESCRIPTION": "The draft content banner title",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.message___DESCRIPTION": "The unlisted content banner message",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
+ "theme.contentVisibility.unlistedBanner.title___DESCRIPTION": "The unlisted content banner title",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.DocCard.categoryDescription.plurals___DESCRIPTION": "The default description for a category card in the generated index about how many items this category includes",
"theme.docs.breadcrumbs.home": "Home page",
@@ -137,9 +151,5 @@
"theme.tags.tagsPageLink": "View All Tags",
"theme.tags.tagsPageLink___DESCRIPTION": "The label of the link targeting the tag list page",
"theme.tags.tagsPageTitle": "Tags",
- "theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.message___DESCRIPTION": "The unlisted content banner message",
- "theme.unlistedContent.title": "Unlisted page",
- "theme.unlistedContent.title___DESCRIPTION": "The unlisted content banner title"
+ "theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page"
}
diff --git a/packages/docusaurus-theme-translations/locales/bg/theme-common.json b/packages/docusaurus-theme-translations/locales/bg/theme-common.json
index 11cf230e1c..0e137e9d01 100644
--- a/packages/docusaurus-theme-translations/locales/bg/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/bg/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "Внимание",
"theme.blog.archive.description": "Архив",
"theme.blog.archive.title": "Архив",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Навигация в страницата със списък на блогове",
"theme.blog.paginator.newerEntries": "По-нови записи",
"theme.blog.paginator.olderEntries": "По-стари записи",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Редактирай тази страница",
"theme.common.headingLinkTitle": "Директна връзка към {heading}",
"theme.common.skipToMainContent": "Преминете към основното съдържание",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Тази страница е скрита. Търсачките няма да я индексират и само потребители с директна връзка имат достъп до него.",
+ "theme.contentVisibility.unlistedBanner.title": "Скрита страница",
"theme.docs.DocCard.categoryDescription.plurals": "един предмет|{count} предмета",
"theme.docs.breadcrumbs.home": "Начална страница",
"theme.docs.breadcrumbs.navAriaLabel": "Галета",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Версии",
"theme.tags.tagsListLabel": "Етикети:",
"theme.tags.tagsPageLink": "Вижте всички етикети",
- "theme.tags.tagsPageTitle": "Етикети",
- "theme.unlistedContent.message": "Тази страница е скрита. Търсачките няма да я индексират и само потребители с директна връзка имат достъп до него.",
- "theme.unlistedContent.title": "Скрита страница"
+ "theme.tags.tagsPageTitle": "Етикети"
}
diff --git a/packages/docusaurus-theme-translations/locales/bn/theme-common.json b/packages/docusaurus-theme-translations/locales/bn/theme-common.json
index a9f72207ac..a4422ff089 100644
--- a/packages/docusaurus-theme-translations/locales/bn/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/bn/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "ব্লগ তালিকা পেজ নেভিগেশন",
"theme.blog.paginator.newerEntries": "নতুন এন্ট্রি",
"theme.blog.paginator.olderEntries": "পুরানো এন্ট্রি",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "এই পেজটি এডিট করুন",
"theme.common.headingLinkTitle": "{heading} এর সঙ্গে সরাসরি লিংকড",
"theme.common.skipToMainContent": "স্কিপ করে মূল কন্টেন্ট এ যান",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "ট্যাগ্স:",
"theme.tags.tagsPageLink": "সমস্ত ট্যাগ্স দেখুন",
- "theme.tags.tagsPageTitle": "ট্যাগ্স",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "ট্যাগ্স"
}
diff --git a/packages/docusaurus-theme-translations/locales/cs/theme-common.json b/packages/docusaurus-theme-translations/locales/cs/theme-common.json
index f5859c4236..21873c7ec0 100644
--- a/packages/docusaurus-theme-translations/locales/cs/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/cs/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Stránkování článků na blogu",
"theme.blog.paginator.newerEntries": "Novější záznamy",
"theme.blog.paginator.olderEntries": "Starší záznamy",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Upravit tuto stránku",
"theme.common.headingLinkTitle": "Přímý odkaz na {heading}",
"theme.common.skipToMainContent": "Přeskočit na hlavní obsah",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "Tagy:",
"theme.tags.tagsPageLink": "Zobrazit všechny tagy",
- "theme.tags.tagsPageTitle": "Tagy",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Tagy"
}
diff --git a/packages/docusaurus-theme-translations/locales/da/theme-common.json b/packages/docusaurus-theme-translations/locales/da/theme-common.json
index 6b05c8a653..765fb67d15 100644
--- a/packages/docusaurus-theme-translations/locales/da/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/da/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Blogoversigt navigation",
"theme.blog.paginator.newerEntries": "Nyere indslag",
"theme.blog.paginator.olderEntries": "Tidligere indslag",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Rediger denne side",
"theme.common.headingLinkTitle": "Direkte link til {heading}",
"theme.common.skipToMainContent": "Hop til hovedindhold",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Se alle Tags",
- "theme.tags.tagsPageTitle": "Tags",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Tags"
}
diff --git a/packages/docusaurus-theme-translations/locales/de/theme-common.json b/packages/docusaurus-theme-translations/locales/de/theme-common.json
index 918db9dd14..ae52a2fe72 100644
--- a/packages/docusaurus-theme-translations/locales/de/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/de/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warnung",
"theme.blog.archive.description": "Archiv",
"theme.blog.archive.title": "Archiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigation der Blog-Listenseite",
"theme.blog.paginator.newerEntries": "Neuere Einträge",
"theme.blog.paginator.olderEntries": "Ältere Einträge",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Diese Seite bearbeiten",
"theme.common.headingLinkTitle": "Direkter Link zur {heading}",
"theme.common.skipToMainContent": "Zum Hauptinhalt springen",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 Eintrag|{count} Einträge",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versionen",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Alle Tags anzeigen",
- "theme.tags.tagsPageTitle": "Tags",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Tags"
}
diff --git a/packages/docusaurus-theme-translations/locales/es/plugin-ideal-image.json b/packages/docusaurus-theme-translations/locales/es/plugin-ideal-image.json
index 69d9de7842..785d93799e 100644
--- a/packages/docusaurus-theme-translations/locales/es/plugin-ideal-image.json
+++ b/packages/docusaurus-theme-translations/locales/es/plugin-ideal-image.json
@@ -3,5 +3,5 @@
"theme.IdealImageMessage.error": "Error. Click para recargar",
"theme.IdealImageMessage.load": "Click para recargar{sizeMessage}",
"theme.IdealImageMessage.loading": "Cargando...",
- "theme.IdealImageMessage.offline": "Tu navegador está desconectado. Image no cargada"
+ "theme.IdealImageMessage.offline": "Tu navegador está desconectado. Imagen no cargada"
}
diff --git a/packages/docusaurus-theme-translations/locales/es/theme-common.json b/packages/docusaurus-theme-translations/locales/es/theme-common.json
index f581fbcb7e..95543c0ee1 100644
--- a/packages/docusaurus-theme-translations/locales/es/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/es/theme-common.json
@@ -5,23 +5,26 @@
"theme.CodeBlock.copy": "Copiar",
"theme.CodeBlock.copyButtonAriaLabel": "Copiar código",
"theme.CodeBlock.wordWrapToggle": "Alternar ajuste de palabras",
- "theme.DocSidebarItem.collapseCategoryAriaLabel": "Colapsar categoría '{label}' de barra lateral",
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": "Colapsar categoría '{label}' de la barra lateral",
"theme.DocSidebarItem.expandCategoryAriaLabel": "Ampliar la categoría '{label}' de la barra lateral",
"theme.ErrorPageContent.title": "Esta página ha fallado.",
"theme.ErrorPageContent.tryAgain": "Intente de nuevo",
"theme.NavBar.navAriaLabel": "Principal",
"theme.NotFound.p1": "No pudimos encontrar lo que buscaba.",
- "theme.NotFound.p2": "Comuníquese con el dueño del sitio que lo vinculó a la URL original y hágale saber que su vínculo está roto.",
+ "theme.NotFound.p2": "Comuníquese con el dueño del sitio que le proporcionó la URL original y hágale saber que su vínculo está roto.",
"theme.NotFound.title": "Página No Encontrada",
"theme.TOCCollapsible.toggleButtonLabel": "En esta página",
"theme.admonition.caution": "precaución",
- "theme.admonition.danger": "danger",
+ "theme.admonition.danger": "peligro",
"theme.admonition.info": "info",
- "theme.admonition.note": "note",
+ "theme.admonition.note": "nota",
"theme.admonition.tip": "tip",
- "theme.admonition.warning": "warning",
+ "theme.admonition.warning": "aviso",
"theme.blog.archive.description": "Archivo",
"theme.blog.archive.title": "Archivo",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navegación por la página de la lista de blogs ",
"theme.blog.paginator.newerEntries": "Entradas más recientes",
"theme.blog.paginator.olderEntries": "Entradas más antiguas",
@@ -30,7 +33,7 @@
"theme.blog.post.paginator.olderPost": "Publicación más antigua",
"theme.blog.post.plurals": "Una publicación|{count} publicaciones",
"theme.blog.post.readMore": "Leer Más",
- "theme.blog.post.readMoreLabel": "Leer más acerca {title}",
+ "theme.blog.post.readMoreLabel": "Leer más acerca de {title}",
"theme.blog.post.readingTime.plurals": "Lectura de un minuto|{readingTime} min de lectura",
"theme.blog.sidebar.navAriaLabel": "Navegación de publicaciones recientes",
"theme.blog.tagTitle": "{nPosts} etiquetados con \"{tagName}\"",
@@ -40,9 +43,13 @@
"theme.common.editThisPage": "Editar esta página",
"theme.common.headingLinkTitle": "Enlace directo al {heading}",
"theme.common.skipToMainContent": "Saltar al contenido principal",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Esta página está sin clasificar. Los motores de búsqueda no la indexaran, y solo los usuarios con el enlace directo podrán acceder a esta.",
+ "theme.contentVisibility.unlistedBanner.title": "Página sin clasificar",
"theme.docs.DocCard.categoryDescription.plurals": "1 artículo|{count} artículos",
"theme.docs.breadcrumbs.home": "Página de Inicio",
- "theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
+ "theme.docs.breadcrumbs.navAriaLabel": "Migas de pan",
"theme.docs.paginator.navAriaLabel": "Página del documento",
"theme.docs.paginator.next": "Siguiente",
"theme.docs.paginator.previous": "Anterior",
@@ -58,17 +65,15 @@
"theme.docs.versionBadge.label": "Version: {versionLabel}",
"theme.docs.versions.latestVersionLinkLabel": "última versión",
"theme.docs.versions.latestVersionSuggestionLabel": "Para la documentación actualizada, vea {latestVersionLink} ({versionLabel}).",
- "theme.docs.versions.unmaintainedVersionLabel": "Esta es documentación para {siteTitle} {versionLabel}, que ya no se mantiene activamente.",
- "theme.docs.versions.unreleasedVersionLabel": "Esta es documentación sin liberar para {siteTitle} {versionLabel} versión.",
+ "theme.docs.versions.unmaintainedVersionLabel": "Esta es la documentación para {siteTitle} {versionLabel}, que ya no se mantiene activamente.",
+ "theme.docs.versions.unreleasedVersionLabel": "Esta es la documentación sin publicar para {siteTitle}, versión {versionLabel}.",
"theme.lastUpdated.atDate": " en {date}",
"theme.lastUpdated.byUser": " por {user}",
"theme.lastUpdated.lastUpdatedAtBy": "Última actualización{atDate}{byUser}",
- "theme.navbar.mobileLanguageDropdown.label": "Lenguajes",
+ "theme.navbar.mobileLanguageDropdown.label": "Idiomas",
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Volver al menú principal",
"theme.navbar.mobileVersionsDropdown.label": "Versiones",
"theme.tags.tagsListLabel": "Etiquetas:",
"theme.tags.tagsPageLink": "Ver Todas las Etiquetas",
- "theme.tags.tagsPageTitle": "Etiquetas",
- "theme.unlistedContent.message": "Esta página está sin clasificar. Los motores de búsqueda no la indexaran, y solo los usuarios con el enlace directo podrán acceder a esta.",
- "theme.unlistedContent.title": "Página sin clasificar"
+ "theme.tags.tagsPageTitle": "Etiquetas"
}
diff --git a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json
index e2d8f77028..987ba4194c 100644
--- a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json
+++ b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json
@@ -13,7 +13,7 @@
"theme.SearchModal.footer.selectText": "seleccionar",
"theme.SearchModal.noResultsScreen.noResultsText": "Sin resultados para",
"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Háganos saber.",
- "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Creo que esta consulta debería devolver resultados?",
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Crees que esta consulta debería devolver resultados?",
"theme.SearchModal.noResultsScreen.suggestedQueryText": "Intenta buscando por",
"theme.SearchModal.placeholder": "Buscar documentos",
"theme.SearchModal.searchBox.cancelButtonText": "Cancelar",
diff --git a/packages/docusaurus-theme-translations/locales/et/theme-common.json b/packages/docusaurus-theme-translations/locales/et/theme-common.json
index 92acc305a1..1d0f8427c7 100644
--- a/packages/docusaurus-theme-translations/locales/et/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/et/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "hoiatus",
"theme.blog.archive.description": "Arhiiv",
"theme.blog.archive.title": "Arhiiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Blogi lehekülje navigatsioon",
"theme.blog.paginator.newerEntries": "Uuemad sissekanded",
"theme.blog.paginator.olderEntries": "Vanemad sissekanded",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Redigeeri seda lehte",
"theme.common.headingLinkTitle": "Link {heading}",
"theme.common.skipToMainContent": "Liigu peamise sisu juurde",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "See leht ei ole avalik. Otsingumootorid ei indekseeri seda. Sellele lehele pääseb ainult lingiga ligi.",
+ "theme.contentVisibility.unlistedBanner.title": "avalikustamata leht",
"theme.docs.DocCard.categoryDescription.plurals": "1 ese|{count} eset",
"theme.docs.breadcrumbs.home": "Koduleht",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versioonid",
"theme.tags.tagsListLabel": "Märked:",
"theme.tags.tagsPageLink": "Näaita Kõiki Märkeid",
- "theme.tags.tagsPageTitle": "Märked",
- "theme.unlistedContent.message": "See leht ei ole avalik. Otsingumootorid ei indekseeri seda. Sellele lehele pääseb ainult lingiga ligi.",
- "theme.unlistedContent.title": "avalikustamata leht"
+ "theme.tags.tagsPageTitle": "Märked"
}
diff --git a/packages/docusaurus-theme-translations/locales/fa/theme-common.json b/packages/docusaurus-theme-translations/locales/fa/theme-common.json
index f82cd55b67..45908abd75 100644
--- a/packages/docusaurus-theme-translations/locales/fa/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/fa/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "هشدار",
"theme.blog.archive.description": "آرشیو",
"theme.blog.archive.title": "آرشیو",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "کنترل لیست مطالب وبلاگ",
"theme.blog.paginator.newerEntries": "مطالب جدیدتر",
"theme.blog.paginator.olderEntries": "مطالب قدیمیتر",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "ویرایش مطالب این صفحه",
"theme.common.headingLinkTitle": "لینک مستقیم به {heading}",
"theme.common.skipToMainContent": "پرش به مطلب اصلی",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "این صفحه فهرست نشده است. موتورهای جستجو آن را ایندکس نمی کنند و فقط کاربرانی که لینک مستقیم دارند می توانند به آن دسترسی داشته باشند.",
+ "theme.contentVisibility.unlistedBanner.title": "صفحه فهرست نشده",
"theme.docs.DocCard.categoryDescription.plurals": "{count} مورد",
"theme.docs.breadcrumbs.home": "صفحه اصلی",
"theme.docs.breadcrumbs.navAriaLabel": "نشانگر صفحات",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "نسخهها",
"theme.tags.tagsListLabel": "برچسبها:",
"theme.tags.tagsPageLink": "مشاهده تمام برچسبها",
- "theme.tags.tagsPageTitle": "برچسبها",
- "theme.unlistedContent.message": "این صفحه فهرست نشده است. موتورهای جستجو آن را ایندکس نمی کنند و فقط کاربرانی که لینک مستقیم دارند می توانند به آن دسترسی داشته باشند.",
- "theme.unlistedContent.title": "صفحه فهرست نشده"
+ "theme.tags.tagsPageTitle": "برچسبها"
}
diff --git a/packages/docusaurus-theme-translations/locales/fil/theme-common.json b/packages/docusaurus-theme-translations/locales/fil/theme-common.json
index 866b297b78..50a06a24e1 100644
--- a/packages/docusaurus-theme-translations/locales/fil/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/fil/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Nabegasyón para sa pahina na listahan ng blog",
"theme.blog.paginator.newerEntries": "Mas bagong mga éntri",
"theme.blog.paginator.olderEntries": "Mas lumang mga éntri",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "I-edit ang page",
"theme.common.headingLinkTitle": "Direktang link patungo sa {heading}",
"theme.common.skipToMainContent": "Lumaktaw patungo sa pangunahing content",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "Mga Tag:",
"theme.tags.tagsPageLink": "Tingnan Lahat ng mga Tag",
- "theme.tags.tagsPageTitle": "Mga Tag",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Mga Tag"
}
diff --git a/packages/docusaurus-theme-translations/locales/fr/theme-common.json b/packages/docusaurus-theme-translations/locales/fr/theme-common.json
index e309ee30c9..c68bc8d467 100644
--- a/packages/docusaurus-theme-translations/locales/fr/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/fr/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "attention",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Pagination de la liste des articles du blog",
"theme.blog.paginator.newerEntries": "Nouvelles entrées",
"theme.blog.paginator.olderEntries": "Anciennes entrées",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Éditer cette page",
"theme.common.headingLinkTitle": "Lien direct vers {heading}",
"theme.common.skipToMainContent": "Aller au contenu principal",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Cette page n'est pas répertoriée. Les moteurs de recherche ne l'indexeront pas, et seuls les utilisateurs ayant un lien direct peuvent y accéder.",
+ "theme.contentVisibility.unlistedBanner.title": "Page non répertoriée",
"theme.docs.DocCard.categoryDescription.plurals": "1 élément|{count} éléments",
"theme.docs.breadcrumbs.home": "Page d'accueil",
"theme.docs.breadcrumbs.navAriaLabel": "Fil d'Ariane",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "Tags :",
"theme.tags.tagsPageLink": "Voir tous les tags",
- "theme.tags.tagsPageTitle": "Tags",
- "theme.unlistedContent.message": "Cette page n'est pas répertoriée. Les moteurs de recherche ne l'indexeront pas, et seuls les utilisateurs ayant un lien direct peuvent y accéder.",
- "theme.unlistedContent.title": "Page non répertoriée"
+ "theme.tags.tagsPageTitle": "Tags"
}
diff --git a/packages/docusaurus-theme-translations/locales/he/theme-common.json b/packages/docusaurus-theme-translations/locales/he/theme-common.json
index 7571401c64..48f2a4941a 100644
--- a/packages/docusaurus-theme-translations/locales/he/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/he/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "רשימת דפי הבלוג",
"theme.blog.paginator.newerEntries": "הכי חדש",
"theme.blog.paginator.olderEntries": "ישן יותר",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "ערוך דף זה",
"theme.common.headingLinkTitle": "קישור ישיר אל {heading}",
"theme.common.skipToMainContent": "דלג לתוכן הראשי",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "תגיות:",
"theme.tags.tagsPageLink": "כל התגיות",
- "theme.tags.tagsPageTitle": "תגיות",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "תגיות"
}
diff --git a/packages/docusaurus-theme-translations/locales/hi/theme-common.json b/packages/docusaurus-theme-translations/locales/hi/theme-common.json
index bcace79c48..2590a754a9 100644
--- a/packages/docusaurus-theme-translations/locales/hi/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/hi/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "ब्लॉग सूची पेज नेविगेशन",
"theme.blog.paginator.newerEntries": "नए एंट्रीज़",
"theme.blog.paginator.olderEntries": "पुराने एंट्रीज़",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "इस पेज को बदलें",
"theme.common.headingLinkTitle": "{heading} का सीधा लिंक",
"theme.common.skipToMainContent": "मुख्य कंटेंट तक स्किप करें",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "टैग:",
"theme.tags.tagsPageLink": "सारे टैग देखें",
- "theme.tags.tagsPageTitle": "टैग",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "टैग"
}
diff --git a/packages/docusaurus-theme-translations/locales/hu/theme-common.json b/packages/docusaurus-theme-translations/locales/hu/theme-common.json
index c7ed797705..28e4f51e7c 100644
--- a/packages/docusaurus-theme-translations/locales/hu/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/hu/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "vigyázat",
"theme.blog.archive.description": "Archívum",
"theme.blog.archive.title": "Archívum",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Bloglista oldalának navigációja",
"theme.blog.paginator.newerEntries": "Újabb bejegyzések",
"theme.blog.paginator.olderEntries": "Régebbi bejegyzések",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Szerkesztés GitHub-on",
"theme.common.headingLinkTitle": "Közvetlen hivatkozás erre: {heading}",
"theme.common.skipToMainContent": "Ugrás a fő tartalomhoz",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Ez az oldal nem nyilvános. A keresőmotorok nem indexelik, és csak a közvetlen hivatkozással rendelkező felhasználók érhetik el.",
+ "theme.contentVisibility.unlistedBanner.title": "Nem nyilvános oldal",
"theme.docs.DocCard.categoryDescription.plurals": "1 elem|{count} elemek",
"theme.docs.breadcrumbs.home": "Kezdőlap",
"theme.docs.breadcrumbs.navAriaLabel": "Navigációs sáv a jelenlegi oldalhoz",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Verziók",
"theme.tags.tagsListLabel": "Címkék:",
"theme.tags.tagsPageLink": "Összes címke megtekintése",
- "theme.tags.tagsPageTitle": "Címkék",
- "theme.unlistedContent.message": "Ez az oldal nem nyilvános. A keresőmotorok nem indexelik, és csak a közvetlen hivatkozással rendelkező felhasználók érhetik el.",
- "theme.unlistedContent.title": "Nem nyilvános oldal"
+ "theme.tags.tagsPageTitle": "Címkék"
}
diff --git a/packages/docusaurus-theme-translations/locales/id/theme-common.json b/packages/docusaurus-theme-translations/locales/id/theme-common.json
index 3e6919d8df..9bea29c704 100644
--- a/packages/docusaurus-theme-translations/locales/id/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/id/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "peringatan",
"theme.blog.archive.description": "Arsip",
"theme.blog.archive.title": "Arsip",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigasi entri blog",
"theme.blog.paginator.newerEntries": "Entri lebih baru",
"theme.blog.paginator.olderEntries": "Entri lebih lama",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Sunting halaman ini",
"theme.common.headingLinkTitle": "Taut langsung ke {heading}",
"theme.common.skipToMainContent": "Lewati ke konten utama",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Halaman ini tidak terdaftar. Mesin pencari tidak akan mengindeksnya, dan hanya pengguna yang memiliki tautan langsung yang dapat mengaksesnya.",
+ "theme.contentVisibility.unlistedBanner.title": "Halaman tak terdaftar",
"theme.docs.DocCard.categoryDescription.plurals": "1 butir|{count} butir",
"theme.docs.breadcrumbs.home": "Halaman utama",
"theme.docs.breadcrumbs.navAriaLabel": "Runut navigasi",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versi",
"theme.tags.tagsListLabel": "Tag:",
"theme.tags.tagsPageLink": "Lihat Semua Tag",
- "theme.tags.tagsPageTitle": "Tag",
- "theme.unlistedContent.message": "Halaman ini tidak terdaftar. Mesin pencari tidak akan mengindeksnya, dan hanya pengguna yang memiliki tautan langsung yang dapat mengaksesnya.",
- "theme.unlistedContent.title": "Halaman tak terdaftar"
+ "theme.tags.tagsPageTitle": "Tag"
}
diff --git a/packages/docusaurus-theme-translations/locales/is/theme-common.json b/packages/docusaurus-theme-translations/locales/is/theme-common.json
index c77a3c07ae..8cf8e8be39 100644
--- a/packages/docusaurus-theme-translations/locales/is/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/is/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "aðvörun",
"theme.blog.archive.description": "Skjalasafn",
"theme.blog.archive.title": "Skjalasafn",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Blogg listsíðu yfirlit",
"theme.blog.paginator.newerEntries": "Nýrri færslur",
"theme.blog.paginator.olderEntries": "Eldri færslur",
@@ -40,7 +43,12 @@
"theme.common.editThisPage": "Breyttu þessari síðu",
"theme.common.headingLinkTitle": "Beinn hlekkur að {heading}",
"theme.common.skipToMainContent": "Hoppa yfir á aðal efni",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Þessi síða er ólistuð. Leitarvélar munu ekki skrá hana, eingöngu notendur með beinan hlekk geta opnað hana.",
+ "theme.contentVisibility.unlistedBanner.title": "Óskráð síða",
"theme.docs.DocCard.categoryDescription": "{count} atriði",
+ "theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Heimasíða",
"theme.docs.breadcrumbs.navAriaLabel": "Brauðteningar",
"theme.docs.paginator.navAriaLabel": "Skjala síður",
@@ -68,7 +76,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Útgáfur",
"theme.tags.tagsListLabel": "Merki:",
"theme.tags.tagsPageLink": "Skoða Öll Merki",
- "theme.tags.tagsPageTitle": "Merki",
- "theme.unlistedContent.message": "Þessi síða er ólistuð. Leitarvélar munu ekki skrá hana, eingöngu notendur með beinan hlekk geta opnað hana.",
- "theme.unlistedContent.title": "Óskráð síða"
+ "theme.tags.tagsPageTitle": "Merki"
}
diff --git a/packages/docusaurus-theme-translations/locales/it/theme-common.json b/packages/docusaurus-theme-translations/locales/it/theme-common.json
index f9a94c9261..c030e0df48 100644
--- a/packages/docusaurus-theme-translations/locales/it/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/it/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archivio",
"theme.blog.archive.title": "Archivio",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigazione nella pagina dei post del blog ",
"theme.blog.paginator.newerEntries": "Post più recenti",
"theme.blog.paginator.olderEntries": "Post più vecchi",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Modifica questa pagina",
"theme.common.headingLinkTitle": "Link diretto a {heading}",
"theme.common.skipToMainContent": "Passa al contenuto principale",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Questa pagina non è in elenco. I motori di ricerca non lo indicheranno e solo gli utenti con collegamento diretto possono accedervi.",
+ "theme.contentVisibility.unlistedBanner.title": "Pagina non in elenco",
"theme.docs.DocCard.categoryDescription.plurals": "1 elemento|{count} elementi",
"theme.docs.breadcrumbs.home": "Pagina principale",
"theme.docs.breadcrumbs.navAriaLabel": "Briciole di pane",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versioni",
"theme.tags.tagsListLabel": "Etichette:",
"theme.tags.tagsPageLink": "Guarda tutte le etichette",
- "theme.tags.tagsPageTitle": "Etichette",
- "theme.unlistedContent.message": "Questa pagina non è in elenco. I motori di ricerca non lo indicheranno e solo gli utenti con collegamento diretto possono accedervi.",
- "theme.unlistedContent.title": "Pagina non in elenco"
+ "theme.tags.tagsPageTitle": "Etichette"
}
diff --git a/packages/docusaurus-theme-translations/locales/ja/theme-common.json b/packages/docusaurus-theme-translations/locales/ja/theme-common.json
index 17873d8fda..fc09e90e95 100644
--- a/packages/docusaurus-theme-translations/locales/ja/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/ja/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "警告",
"theme.blog.archive.description": "アーカイブ",
"theme.blog.archive.title": "アーカイブ",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "ブログ記事一覧のナビゲーション",
"theme.blog.paginator.newerEntries": "新しい記事",
"theme.blog.paginator.olderEntries": "過去の記事",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "このページを編集",
"theme.common.headingLinkTitle": "{heading} への直接リンク",
"theme.common.skipToMainContent": "メインコンテンツまでスキップ",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "このページは非公開です。 検索対象外となり、このページのリンクに直接アクセスできるユーザーのみに公開されます。",
+ "theme.contentVisibility.unlistedBanner.title": "非公開のページ",
"theme.docs.DocCard.categoryDescription.plurals": "{count}項目",
"theme.docs.breadcrumbs.home": "ホームページ",
"theme.docs.breadcrumbs.navAriaLabel": "パンくずリストのナビゲーション",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "他のバージョン",
"theme.tags.tagsListLabel": "タグ:",
"theme.tags.tagsPageLink": "全てのタグを見る",
- "theme.tags.tagsPageTitle": "タグ",
- "theme.unlistedContent.message": "このページは非公開です。 検索対象外となり、このページのリンクに直接アクセスできるユーザーのみに公開されます。",
- "theme.unlistedContent.title": "非公開のページ"
+ "theme.tags.tagsPageTitle": "タグ"
}
diff --git a/packages/docusaurus-theme-translations/locales/ko/theme-common.json b/packages/docusaurus-theme-translations/locales/ko/theme-common.json
index 291e4eb0a5..daf247cc49 100644
--- a/packages/docusaurus-theme-translations/locales/ko/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/ko/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "경고",
"theme.blog.archive.description": "게시물 목록",
"theme.blog.archive.title": "게시물 목록",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "블로그 게시물 목록 탐색",
"theme.blog.paginator.newerEntries": "이전 페이지",
"theme.blog.paginator.olderEntries": "다음 페이지",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "페이지 편집",
"theme.common.headingLinkTitle": "{heading}에 대한 직접 링크",
"theme.common.skipToMainContent": "본문으로 건너뛰기",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "이 문서는 색인되지 않습니다. 검색 엔진이 이 문서를 색인하지 않으며, 주소를 알고 있는 사용자만 접근할 수 있습니다.",
+ "theme.contentVisibility.unlistedBanner.title": "색인되지 않은 문서",
"theme.docs.DocCard.categoryDescription.plurals": "{count} 항목",
"theme.docs.breadcrumbs.home": "홈",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "버전",
"theme.tags.tagsListLabel": "태그:",
"theme.tags.tagsPageLink": "모든 태그 보기",
- "theme.tags.tagsPageTitle": "태그",
- "theme.unlistedContent.message": "이 문서는 색인되지 않습니다. 검색 엔진이 이 문서를 색인하지 않으며, 주소를 알고 있는 사용자만 접근할 수 있습니다.",
- "theme.unlistedContent.title": "색인되지 않은 문서"
+ "theme.tags.tagsPageTitle": "태그"
}
diff --git a/packages/docusaurus-theme-translations/locales/nb/theme-common.json b/packages/docusaurus-theme-translations/locales/nb/theme-common.json
index 3a11f6f55a..9d3aed888d 100644
--- a/packages/docusaurus-theme-translations/locales/nb/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/nb/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Arkiv",
"theme.blog.archive.title": "Arkiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigering av bloggliste",
"theme.blog.paginator.newerEntries": "Nyere innlegg",
"theme.blog.paginator.olderEntries": "Eldre innlegg",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Rediger denne siden",
"theme.common.headingLinkTitle": "Direkte lenke til {heading}",
"theme.common.skipToMainContent": "Gå til hovedinnhold",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Denne siden er ikke oppført. Søkemotorer vil ikke indeksere den, og bare brukere som har en direkte lenke kan få tilgang til den.",
+ "theme.contentVisibility.unlistedBanner.title": "Uoppført side",
"theme.docs.DocCard.categoryDescription.plurals": "1 artikkel|{count} artikler",
"theme.docs.breadcrumbs.home": "Hjemmeside",
"theme.docs.breadcrumbs.navAriaLabel": "Søkvei",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versjoner",
"theme.tags.tagsListLabel": "Tagger:",
"theme.tags.tagsPageLink": "Vis alle tagger",
- "theme.tags.tagsPageTitle": "Tagger",
- "theme.unlistedContent.message": "Denne siden er ikke oppført. Søkemotorer vil ikke indeksere den, og bare brukere som har en direkte lenke kan få tilgang til den.",
- "theme.unlistedContent.title": "Uoppført side"
+ "theme.tags.tagsPageTitle": "Tagger"
}
diff --git a/packages/docusaurus-theme-translations/locales/nl/theme-common.json b/packages/docusaurus-theme-translations/locales/nl/theme-common.json
index 798d3590c4..81f60d8a83 100644
--- a/packages/docusaurus-theme-translations/locales/nl/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/nl/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archief",
"theme.blog.archive.title": "Archief",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Paginanavigatie blog",
"theme.blog.paginator.newerEntries": "Nieuwere items",
"theme.blog.paginator.olderEntries": "Oudere items",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Bewerk deze pagina",
"theme.common.headingLinkTitle": "Direct link naar {heading}",
"theme.common.skipToMainContent": "Ga naar hoofdinhoud",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 artikel|{count} artikelen",
"theme.docs.breadcrumbs.home": "Homepagina",
"theme.docs.breadcrumbs.navAriaLabel": "Broodkruimels",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versies",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Laat alle tags zien",
- "theme.tags.tagsPageTitle": "Tags",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Tags"
}
diff --git a/packages/docusaurus-theme-translations/locales/pl/theme-common.json b/packages/docusaurus-theme-translations/locales/pl/theme-common.json
index 402235f6a3..e3833c44d3 100644
--- a/packages/docusaurus-theme-translations/locales/pl/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/pl/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archiwum",
"theme.blog.archive.title": "Archiwum",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Nawigacja na stronie listy wpisów na blogu",
"theme.blog.paginator.newerEntries": "Nowsze wpisy",
"theme.blog.paginator.olderEntries": "Starsze wpisy",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Edytuj tę stronę",
"theme.common.headingLinkTitle": "Bezpośredni link do {heading}",
"theme.common.skipToMainContent": "Przejdź do głównej zawartości",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Ta strona jest niepubliczna. Wyszukiwarki nie będą jej indeksować, a dostęp do niej będą mieli tylko użytkownicy posiadający bezpośredni link.",
+ "theme.contentVisibility.unlistedBanner.title": "Niepubliczna strona",
"theme.docs.DocCard.categoryDescription.plurals": "1 element|{count} elementy|{count} elementów",
"theme.docs.breadcrumbs.home": "Strona główna",
"theme.docs.breadcrumbs.navAriaLabel": "Pasek nawigacji",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Wersje",
"theme.tags.tagsListLabel": "Tagi:",
"theme.tags.tagsPageLink": "Wyświetl wszystkie tagi",
- "theme.tags.tagsPageTitle": "Tagi",
- "theme.unlistedContent.message": "Ta strona jest niepubliczna. Wyszukiwarki nie będą jej indeksować, a dostęp do niej będą mieli tylko użytkownicy posiadający bezpośredni link.",
- "theme.unlistedContent.title": "Niepubliczna strona"
+ "theme.tags.tagsPageTitle": "Tagi"
}
diff --git a/packages/docusaurus-theme-translations/locales/pt-BR/theme-common.json b/packages/docusaurus-theme-translations/locales/pt-BR/theme-common.json
index 7bcab9cbbb..ebc6b16773 100644
--- a/packages/docusaurus-theme-translations/locales/pt-BR/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/pt-BR/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "atenção",
"theme.blog.archive.description": "Arquivo",
"theme.blog.archive.title": "Arquivo",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navegação da página de listagem do blog",
"theme.blog.paginator.newerEntries": "Conteúdo mais novo",
"theme.blog.paginator.olderEntries": "Conteúdo mais antigo",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Editar essa página",
"theme.common.headingLinkTitle": "Link direto para {heading}",
"theme.common.skipToMainContent": "Pular para o conteúdo principal",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Esta página não está listada. Mecanismos de busca não armazenarão nenhuma informação, e somente usuários que possuam o link direto poderão acessá-la",
+ "theme.contentVisibility.unlistedBanner.title": "Página não listada",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Página Inicial",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versões",
"theme.tags.tagsListLabel": "Marcadores:",
"theme.tags.tagsPageLink": "Ver todas os Marcadores",
- "theme.tags.tagsPageTitle": "Marcadores",
- "theme.unlistedContent.message": "Esta página não está listada. Mecanismos de busca não armazenarão nenhuma informação, e somente usuários que possuam o link direto poderão acessá-la",
- "theme.unlistedContent.title": "Página não listada"
+ "theme.tags.tagsPageTitle": "Marcadores"
}
diff --git a/packages/docusaurus-theme-translations/locales/pt-PT/theme-common.json b/packages/docusaurus-theme-translations/locales/pt-PT/theme-common.json
index 8daa2bead6..e048d58adf 100644
--- a/packages/docusaurus-theme-translations/locales/pt-PT/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/pt-PT/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Archive",
"theme.blog.archive.title": "Archive",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navegação da página de listagem do blog",
"theme.blog.paginator.newerEntries": "Publicações mais recentes",
"theme.blog.paginator.olderEntries": "Publicações mais antigas",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Editar esta página",
"theme.common.headingLinkTitle": "Link direto para {heading}",
"theme.common.skipToMainContent": "Saltar para o conteúdo principal",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versions",
"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Ver todas as Tags",
- "theme.tags.tagsPageTitle": "Tags",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Tags"
}
diff --git a/packages/docusaurus-theme-translations/locales/ru/theme-common.json b/packages/docusaurus-theme-translations/locales/ru/theme-common.json
index f0a8f7f881..dbc0f23e1c 100644
--- a/packages/docusaurus-theme-translations/locales/ru/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/ru/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Архив",
"theme.blog.archive.title": "Архив",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Навигация по странице списка блогов",
"theme.blog.paginator.newerEntries": "Следующие записи",
"theme.blog.paginator.olderEntries": "Предыдущие записи",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Отредактировать эту страницу",
"theme.common.headingLinkTitle": "Прямая ссылка на {heading}",
"theme.common.skipToMainContent": "Перейти к основному содержимому",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "{count} элемент|{count} элемента|{count} элементов",
"theme.docs.breadcrumbs.home": "Главная страница",
"theme.docs.breadcrumbs.navAriaLabel": "Навигационная цепочка текущей страницы",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Версии",
"theme.tags.tagsListLabel": "Теги:",
"theme.tags.tagsPageLink": "Посмотреть все теги",
- "theme.tags.tagsPageTitle": "Теги",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Теги"
}
diff --git a/packages/docusaurus-theme-translations/locales/sl/theme-common.json b/packages/docusaurus-theme-translations/locales/sl/theme-common.json
index e9c8eb0f41..03bb69ac13 100644
--- a/packages/docusaurus-theme-translations/locales/sl/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/sl/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Arhiv",
"theme.blog.archive.title": "Arhiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigacija kazala po blogu",
"theme.blog.paginator.newerEntries": "Novejši prispevki",
"theme.blog.paginator.olderEntries": "Starejši prispevki",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Uredi to stran",
"theme.common.headingLinkTitle": "Direktna povezava na {heading}",
"theme.common.skipToMainContent": "Preskoči na vsebino",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Ta stran ni zabeležena. Iskalniki je ne bodo indeksirali, do nje bodo uporabniki lahko dostopali le z direktno povezavo.",
+ "theme.contentVisibility.unlistedBanner.title": "Nezabeležena stran",
"theme.docs.DocCard.categoryDescription.plurals": "1 vnos|2 vnosy|{count} vnosy|{count} vnosov",
"theme.docs.breadcrumbs.home": "Domača stran",
"theme.docs.breadcrumbs.navAriaLabel": "Drobtine",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Verzije",
"theme.tags.tagsListLabel": "Oznake:",
"theme.tags.tagsPageLink": "Poglej vse oznake",
- "theme.tags.tagsPageTitle": "Oznake",
- "theme.unlistedContent.message": "Ta stran ni zabeležena. Iskalniki je ne bodo indeksirali, do nje bodo uporabniki lahko dostopali le z direktno povezavo.",
- "theme.unlistedContent.title": "Nezabeležena stran"
+ "theme.tags.tagsPageTitle": "Oznake"
}
diff --git a/packages/docusaurus-theme-translations/locales/sr/theme-common.json b/packages/docusaurus-theme-translations/locales/sr/theme-common.json
index 696e96728c..7e446ec3c2 100644
--- a/packages/docusaurus-theme-translations/locales/sr/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/sr/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Архива",
"theme.blog.archive.title": "Архива",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Навигација за странице блога",
"theme.blog.paginator.newerEntries": "Нови постови",
"theme.blog.paginator.olderEntries": "Стари постови",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Уреди ову страницу",
"theme.common.headingLinkTitle": "Веза до {heading}",
"theme.common.skipToMainContent": "Пређи на главни садржај",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 item|{count} items",
"theme.docs.breadcrumbs.home": "Home page",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Верзије",
"theme.tags.tagsListLabel": "Ознаке:",
"theme.tags.tagsPageLink": "Погледај све ознаке",
- "theme.tags.tagsPageTitle": "Ознаке",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Ознаке"
}
diff --git a/packages/docusaurus-theme-translations/locales/sv/theme-common.json b/packages/docusaurus-theme-translations/locales/sv/theme-common.json
index c5f0dc3160..03b86feefd 100644
--- a/packages/docusaurus-theme-translations/locales/sv/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/sv/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Arkiv",
"theme.blog.archive.title": "Arkiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navigation av Blogglista",
"theme.blog.paginator.newerEntries": "Nyare Inlägg",
"theme.blog.paginator.olderEntries": "Äldre Inlägg",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Redigera denna sida",
"theme.common.headingLinkTitle": "Direktlänk till {heading}",
"theme.common.skipToMainContent": "Hoppa till huvudinnehåll",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "1 artikel|{count} artiklar",
"theme.docs.breadcrumbs.home": "Hemsida",
"theme.docs.breadcrumbs.navAriaLabel": "Sökväg",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versioner",
"theme.tags.tagsListLabel": "Taggar:",
"theme.tags.tagsPageLink": "Visa Alla Taggar",
- "theme.tags.tagsPageTitle": "Taggar",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Taggar"
}
diff --git a/packages/docusaurus-theme-translations/locales/tk/theme-common.json b/packages/docusaurus-theme-translations/locales/tk/theme-common.json
index aad0c8d53b..4888f960f7 100644
--- a/packages/docusaurus-theme-translations/locales/tk/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/tk/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "duýduryş",
"theme.blog.archive.description": "Arhiw",
"theme.blog.archive.title": "Arhiw",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Blog sahypasynda nawigasiýa",
"theme.blog.paginator.newerEntries": "Täze ýazgylar",
"theme.blog.paginator.olderEntries": "Köne ýazgylar",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Bu sahypany üýtgetmek",
"theme.common.headingLinkTitle": "{heading} sahypa göni geçiň",
"theme.common.skipToMainContent": "Esasy mazmuna geç",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Bu sahypa sanawda ýok. Bu sahypa gözleg enjamlarynda indekslemezler, diňe göni baglanyşygy bolan ulanyjylar elýeterli bolar.",
+ "theme.contentVisibility.unlistedBanner.title": "Sanawda ýok sahypa",
"theme.docs.DocCard.categoryDescription.plurals": "{count} element|{count} elementler",
"theme.docs.breadcrumbs.home": "Baş sahypa",
"theme.docs.breadcrumbs.navAriaLabel": "Häzirki sahypa üçin nawigasiýa",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Wersiýalar",
"theme.tags.tagsListLabel": "Tegler:",
"theme.tags.tagsPageLink": "Ähli tegleri gör",
- "theme.tags.tagsPageTitle": "Tegler",
- "theme.unlistedContent.message": "Bu sahypa sanawda ýok. Bu sahypa gözleg enjamlarynda indekslemezler, diňe göni baglanyşygy bolan ulanyjylar elýeterli bolar.",
- "theme.unlistedContent.title": "Sanawda ýok sahypa"
+ "theme.tags.tagsPageTitle": "Tegler"
}
diff --git a/packages/docusaurus-theme-translations/locales/tr/theme-common.json b/packages/docusaurus-theme-translations/locales/tr/theme-common.json
index 9d1abe76ef..484e88b6e8 100644
--- a/packages/docusaurus-theme-translations/locales/tr/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/tr/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Arşiv",
"theme.blog.archive.title": "Arşiv",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Blog gönderi sayfası navigasyonu",
"theme.blog.paginator.newerEntries": "Yeni Girdiler",
"theme.blog.paginator.olderEntries": "Eski Girdiler",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Bu sayfayı düzenle",
"theme.common.headingLinkTitle": "{heading} doğrudan bağlantı",
"theme.common.skipToMainContent": "Ana içeriğe geç",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Bu sayfa listelenmemiş. Arama motorları dizine eklemez ve yalnızca doğrudan bağlantısı olan kullanıcılar buna erişebilir.",
+ "theme.contentVisibility.unlistedBanner.title": "Listelenmeyen sayfa",
"theme.docs.DocCard.categoryDescription.plurals": "1 öğe|{count} öğe",
"theme.docs.breadcrumbs.home": "Ana sayfa",
"theme.docs.breadcrumbs.navAriaLabel": "Breadcrumbs",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Versiyonlar",
"theme.tags.tagsListLabel": "Etiketler:",
"theme.tags.tagsPageLink": "Tüm Etiketleri Görüntüle",
- "theme.tags.tagsPageTitle": "Etiketler",
- "theme.unlistedContent.message": "Bu sayfa listelenmemiş. Arama motorları dizine eklemez ve yalnızca doğrudan bağlantısı olan kullanıcılar buna erişebilir.",
- "theme.unlistedContent.title": "Listelenmeyen sayfa"
+ "theme.tags.tagsPageTitle": "Etiketler"
}
diff --git a/packages/docusaurus-theme-translations/locales/uk/theme-common.json b/packages/docusaurus-theme-translations/locales/uk/theme-common.json
index 12c35e144e..399f958a01 100644
--- a/packages/docusaurus-theme-translations/locales/uk/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/uk/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Архів",
"theme.blog.archive.title": "Архів",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Навігація по сторінці списку блогів",
"theme.blog.paginator.newerEntries": "Наступні записи",
"theme.blog.paginator.olderEntries": "Попередні записи",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Відредагувати цю сторінку",
"theme.common.headingLinkTitle": "Пряме посилання на {heading}",
"theme.common.skipToMainContent": "Перейти до основного вмісту",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
+ "theme.contentVisibility.unlistedBanner.title": "Unlisted page",
"theme.docs.DocCard.categoryDescription.plurals": "{count} елемент|{count} елементи|{count} елементів",
"theme.docs.breadcrumbs.home": "Головна сторінка",
"theme.docs.breadcrumbs.navAriaLabel": "Навігаційний ланцюжок поточної сторінки",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Версії",
"theme.tags.tagsListLabel": "Теги:",
"theme.tags.tagsPageLink": "Переглянути всі теги",
- "theme.tags.tagsPageTitle": "Теги",
- "theme.unlistedContent.message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
- "theme.unlistedContent.title": "Unlisted page"
+ "theme.tags.tagsPageTitle": "Теги"
}
diff --git a/packages/docusaurus-theme-translations/locales/vi/theme-common.json b/packages/docusaurus-theme-translations/locales/vi/theme-common.json
index 0230f422df..443cf03997 100644
--- a/packages/docusaurus-theme-translations/locales/vi/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/vi/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "warning",
"theme.blog.archive.description": "Lưu trữ",
"theme.blog.archive.title": "Lưu trữ",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Thanh điều hướng của trang danh sách bài viết",
"theme.blog.paginator.newerEntries": "Các bài mới hơn",
"theme.blog.paginator.olderEntries": "Các bài cũ hơn",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "Sửa trang này",
"theme.common.headingLinkTitle": "Đường dẫn trực tiếp tới {heading}",
"theme.common.skipToMainContent": "Nhảy tới nội dung",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "Trang này không được công khai. Công cụ tìm kiếm sẽ không đánh chỉ mục cho trang này và chỉ những người có liên kết mới có thể truy cập được trang.",
+ "theme.contentVisibility.unlistedBanner.title": "Trang không công khai",
"theme.docs.DocCard.categoryDescription.plurals": "{count} mục",
"theme.docs.breadcrumbs.home": "Trang chủ",
"theme.docs.breadcrumbs.navAriaLabel": "Liên kết điều hướng",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "Phiên bản",
"theme.tags.tagsListLabel": "Thẻ:",
"theme.tags.tagsPageLink": "Xem tất cả Thẻ",
- "theme.tags.tagsPageTitle": "Thẻ",
- "theme.unlistedContent.message": "Trang này không được công khai. Công cụ tìm kiếm sẽ không đánh chỉ mục cho trang này và chỉ những người có liên kết mới có thể truy cập được trang.",
- "theme.unlistedContent.title": "Trang không công khai"
+ "theme.tags.tagsPageTitle": "Thẻ"
}
diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json
index c382bc186f..3bdf5970c2 100644
--- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "注意",
"theme.blog.archive.description": "历史博文",
"theme.blog.archive.title": "历史博文",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "博文列表分页导航",
"theme.blog.paginator.newerEntries": "较新的博文",
"theme.blog.paginator.olderEntries": "较旧的博文",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "编辑此页",
"theme.common.headingLinkTitle": "{heading}的直接链接",
"theme.common.skipToMainContent": "跳到主要内容",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
+ "theme.contentVisibility.unlistedBanner.title": "未列出页",
"theme.docs.DocCard.categoryDescription.plurals": "{count} 个项目",
"theme.docs.breadcrumbs.home": "主页面",
"theme.docs.breadcrumbs.navAriaLabel": "页面路径",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "选择版本",
"theme.tags.tagsListLabel": "标签:",
"theme.tags.tagsPageLink": "查看所有标签",
- "theme.tags.tagsPageTitle": "标签",
- "theme.unlistedContent.message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
- "theme.unlistedContent.title": "未列出页"
+ "theme.tags.tagsPageTitle": "标签"
}
diff --git a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-common.json b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-common.json
index cbb172b616..be927a6048 100644
--- a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-common.json
+++ b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-common.json
@@ -22,6 +22,9 @@
"theme.admonition.warning": "注意",
"theme.blog.archive.description": "歷史文章",
"theme.blog.archive.title": "歷史文章",
+ "theme.blog.author.pageTitle": "{authorName} - {nPosts}",
+ "theme.blog.authorsList.pageTitle": "Authors",
+ "theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "部落格文章列表分頁導覽",
"theme.blog.paginator.newerEntries": "較新的文章",
"theme.blog.paginator.olderEntries": "較舊的文章",
@@ -40,6 +43,10 @@
"theme.common.editThisPage": "編輯此頁",
"theme.common.headingLinkTitle": "{heading}的直接連結",
"theme.common.skipToMainContent": "跳至主要内容",
+ "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
+ "theme.contentVisibility.draftBanner.title": "Draft page",
+ "theme.contentVisibility.unlistedBanner.message": "此頁面未列出。搜索引擎不會對其索引,只有擁有直接連結的用戶才能訪問。",
+ "theme.contentVisibility.unlistedBanner.title": "未列出頁",
"theme.docs.DocCard.categoryDescription.plurals": "{count} 個項目",
"theme.docs.breadcrumbs.home": "主頁面",
"theme.docs.breadcrumbs.navAriaLabel": "頁面路徑",
@@ -68,7 +75,5 @@
"theme.navbar.mobileVersionsDropdown.label": "選擇版本",
"theme.tags.tagsListLabel": "標籤:",
"theme.tags.tagsPageLink": "檢視所有標籤",
- "theme.tags.tagsPageTitle": "標籤",
- "theme.unlistedContent.message": "此頁面未列出。搜索引擎不會對其索引,只有擁有直接連結的用戶才能訪問。",
- "theme.unlistedContent.title": "未列出頁"
+ "theme.tags.tagsPageTitle": "標籤"
}
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.json b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.json
deleted file mode 100644
index 3c27e19a80..0000000000
--- a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.json
+++ /dev/null
@@ -1 +0,0 @@
-{"a": 2}
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.yml b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.yml
deleted file mode 100644
index 9dfc208dff..0000000000
--- a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/bad.yml
+++ /dev/null
@@ -1 +0,0 @@
-a: 2
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.json b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.json
deleted file mode 100644
index cb5b2f69ba..0000000000
--- a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.json
+++ /dev/null
@@ -1 +0,0 @@
-{"a": 1}
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.yml b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.yml
deleted file mode 100644
index a8926a52d8..0000000000
--- a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/actualData/valid.yml
+++ /dev/null
@@ -1 +0,0 @@
-a: 1
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.json b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.json
new file mode 100644
index 0000000000..f06ab684a5
--- /dev/null
+++ b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.json
@@ -0,0 +1 @@
+{"content": "json"}
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.yml b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.yml
new file mode 100644
index 0000000000..59b8b3c496
--- /dev/null
+++ b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/dataFile.yml
@@ -0,0 +1 @@
+content: original yaml
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/invalid.yml b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/invalid.yml
new file mode 100644
index 0000000000..54bd7745b0
--- /dev/null
+++ b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/invalid.yml
@@ -0,0 +1 @@
+}{{{{12434665¨£%£%%£%£}}}}
diff --git a/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/localized/dataFile.yml b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/localized/dataFile.yml
new file mode 100644
index 0000000000..bf980e035e
--- /dev/null
+++ b/packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/localized/dataFile.yml
@@ -0,0 +1 @@
+content: localized yaml
diff --git a/packages/docusaurus-utils/src/__tests__/dataFileUtils.test.ts b/packages/docusaurus-utils/src/__tests__/dataFileUtils.test.ts
index 4d809a45c7..732442f050 100644
--- a/packages/docusaurus-utils/src/__tests__/dataFileUtils.test.ts
+++ b/packages/docusaurus-utils/src/__tests__/dataFileUtils.test.ts
@@ -10,7 +10,7 @@ import {
findFolderContainingFile,
getFolderContainingFile,
getDataFilePath,
- getDataFileData,
+ readDataFile,
} from '../dataFileUtils';
describe('getDataFilePath', () => {
@@ -125,46 +125,40 @@ describe('getDataFilePath', () => {
});
describe('getDataFileData', () => {
- const fixturesDir = path.join(__dirname, '__fixtures__/dataFiles/actualData');
- function readDataFile(filePath: string) {
- return getDataFileData(
- {
- filePath,
- contentPaths: {contentPath: fixturesDir, contentPathLocalized: ''},
- fileType: 'test',
- },
- (content) => {
- // @ts-expect-error: good enough
- if (content.a !== 1) {
- throw new Error('Nope');
- }
- return content;
- },
+ function testFile(filePath: string) {
+ const contentPath = path.join(
+ __dirname,
+ '__fixtures__/dataFiles/dataFiles',
);
+ const contentPathLocalized = path.join(contentPath, 'localized');
+ return readDataFile({
+ filePath,
+ contentPaths: {contentPath, contentPathLocalized},
+ });
}
it('returns undefined for nonexistent file', async () => {
- await expect(readDataFile('nonexistent.yml')).resolves.toBeUndefined();
- });
-
- it('read valid yml author file', async () => {
- await expect(readDataFile('valid.yml')).resolves.toEqual({a: 1});
+ await expect(testFile('nonexistent.yml')).resolves.toBeUndefined();
});
it('read valid json author file', async () => {
- await expect(readDataFile('valid.json')).resolves.toEqual({a: 1});
+ await expect(testFile('dataFile.json')).resolves.toEqual({
+ content: 'json',
+ });
});
- it('fail to read invalid yml', async () => {
- await expect(
- readDataFile('bad.yml'),
- ).rejects.toThrowErrorMatchingInlineSnapshot(`"Nope"`);
+ it('read valid yml author file using localized source in priority', async () => {
+ await expect(testFile('dataFile.yml')).resolves.toEqual({
+ content: 'localized yaml',
+ });
});
- it('fail to read invalid json', async () => {
+ it('throw for invalid file', async () => {
await expect(
- readDataFile('bad.json'),
- ).rejects.toThrowErrorMatchingInlineSnapshot(`"Nope"`);
+ testFile('invalid.yml'),
+ ).rejects.toThrowErrorMatchingInlineSnapshot(
+ `"The file at "packages/docusaurus-utils/src/__tests__/__fixtures__/dataFiles/dataFiles/invalid.yml" looks invalid (not Yaml nor JSON)."`,
+ );
});
});
diff --git a/packages/docusaurus-utils/src/dataFileUtils.ts b/packages/docusaurus-utils/src/dataFileUtils.ts
index ba671d6e88..decd57da94 100644
--- a/packages/docusaurus-utils/src/dataFileUtils.ts
+++ b/packages/docusaurus-utils/src/dataFileUtils.ts
@@ -43,31 +43,28 @@ export async function getDataFilePath({
}
/**
- * Looks up for a data file in the content paths, returns the object validated
- * and normalized according to the `validate` callback.
+ * Looks up for a data file in the content paths
+ * Favors the localized content path over the base content path
+ * Currently supports Yaml and JSON data files
+ * It is the caller responsibility to validate and normalize the resulting data
*
* @returns `undefined` when file not found
- * @throws Throws when validation fails, displaying a helpful context message.
+ * @throws Throws when data file can't be parsed
*/
-export async function getDataFileData(
- params: DataFileParams & {
- /** Used for the "The X file looks invalid" message. */
- fileType: string;
- },
- validate: (content: unknown) => T,
-): Promise {
+export async function readDataFile(params: DataFileParams): Promise {
const filePath = await getDataFilePath(params);
if (!filePath) {
return undefined;
}
try {
const contentString = await fs.readFile(filePath, {encoding: 'utf8'});
- const unsafeContent = Yaml.load(contentString);
- // TODO we shouldn't validate here: it makes validation harder to test
- return validate(unsafeContent);
+ return Yaml.load(contentString);
} catch (err) {
- logger.error`The ${params.fileType} file at path=${filePath} looks invalid.`;
- throw err;
+ const msg = logger.interpolate`The file at path=${path.relative(
+ process.cwd(),
+ filePath,
+ )} looks invalid (not Yaml nor JSON).`;
+ throw new Error(msg, {cause: err as Error});
}
}
diff --git a/packages/docusaurus-utils/src/index.ts b/packages/docusaurus-utils/src/index.ts
index 7201f8eec1..d9a24a4086 100644
--- a/packages/docusaurus-utils/src/index.ts
+++ b/packages/docusaurus-utils/src/index.ts
@@ -109,7 +109,7 @@ export {escapeShellArg} from './shellUtils';
export {loadFreshModule} from './moduleUtils';
export {
getDataFilePath,
- getDataFileData,
+ readDataFile,
getContentPathList,
findFolderContainingFile,
getFolderContainingFile,
diff --git a/packages/docusaurus-utils/src/tags.ts b/packages/docusaurus-utils/src/tags.ts
index fd06bf2fea..cef2ea7dd6 100644
--- a/packages/docusaurus-utils/src/tags.ts
+++ b/packages/docusaurus-utils/src/tags.ts
@@ -45,6 +45,7 @@ export type TagsListItem = Tag & {
/** What the tag's own page should know about the tag. */
export type TagModule = TagsListItem & {
/** The tags list page's permalink. */
+ // TODO move this global value to a shared docs/blog bundle
allTagsPath: string;
/** Is this tag unlisted? (when it only contains unlisted items) */
unlisted: boolean;
diff --git a/packages/docusaurus/bin/docusaurus.mjs b/packages/docusaurus/bin/docusaurus.mjs
index 7429f4f415..11ac62cadb 100755
--- a/packages/docusaurus/bin/docusaurus.mjs
+++ b/packages/docusaurus/bin/docusaurus.mjs
@@ -222,7 +222,8 @@ cli
cli.arguments('').action((cmd) => {
cli.outputHelp();
- logger.error` Unknown command name=${cmd}.`;
+ logger.error`Unknown Docusaurus CLI command name=${cmd}.`;
+ process.exit(1);
});
// === The above is the commander configuration ===
@@ -247,24 +248,24 @@ function isInternalCommand(command) {
);
}
-// process.argv always looks like this:
-// [
-// '/path/to/node',
-// '/path/to/docusaurus.mjs',
-// '',
-// ...subcommandArgs
-// ]
+/**
+ * @param {string | undefined} command
+ */
+function isExternalCommand(command) {
+ return !!(command && !isInternalCommand(command) && !command.startsWith('-'));
+}
-// There is no subcommand
-// TODO: can we use commander to handle this case?
-if (process.argv.length < 3 || process.argv[2]?.startsWith('--')) {
+// No command? We print the help message because Commander doesn't
+// Note argv looks like this: ['../node','../docusaurus.mjs','',...rest]
+if (process.argv.length < 3) {
cli.outputHelp();
+ logger.error`Please provide a Docusaurus CLI command.`;
process.exit(1);
}
// There is an unrecognized subcommand
// Let plugins extend the CLI before parsing
-if (!isInternalCommand(process.argv[2])) {
+if (isExternalCommand(process.argv[2])) {
// TODO: in this step, we must assume default site structure because there's
// no way to know the siteDir/config yet. Maybe the root cli should be
// responsible for parsing these arguments?
diff --git a/project-words.txt b/project-words.txt
index 8fcf07008f..528d635318 100644
--- a/project-words.txt
+++ b/project-words.txt
@@ -173,6 +173,7 @@ Lorber's
lqip
LQIP
lunrjs
+marcey
Marcey
Marcey's
markprompt
diff --git a/website/_dogfooding/_blog tests/2024-07-03-dual-author.mdx b/website/_dogfooding/_blog tests/2024-07-03-dual-author.mdx
index 0a7ff12b99..13eb48e40a 100644
--- a/website/_dogfooding/_blog tests/2024-07-03-dual-author.mdx
+++ b/website/_dogfooding/_blog tests/2024-07-03-dual-author.mdx
@@ -4,17 +4,15 @@ authors:
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
socials:
- twitter: sebastienlorber
- github: slorber
- stackoverflow: 82609
- linkedin: sebastienlorber
+ twitter: https://twitter.com/sebastienlorber
+ github: https://github.com/slorber
+ linkedin: https://www.linkedin.com/in/sebastienlorber/
newsletter: https://thisweekinreact.com/newsletter
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
socials:
x: https://x.com/sebastienlorber
github: https://github.com/slorber
- stackoverflow: 82609
linkedin: https://www.linkedin.com/in/sebastienlorber/
newsletter: https://thisweekinreact.com/newsletter
---
diff --git a/website/_dogfooding/_blog tests/2024-07-03-single-author.mdx b/website/_dogfooding/_blog tests/2024-07-03-single-author.mdx
index 0a418f42e2..8b2d6c2d78 100644
--- a/website/_dogfooding/_blog tests/2024-07-03-single-author.mdx
+++ b/website/_dogfooding/_blog tests/2024-07-03-single-author.mdx
@@ -8,7 +8,6 @@ authors:
x: https://x.com/sebastienlorber
twitter: https://twitter.com/sebastienlorber
github: https://github.com/slorber
- stackoverflow: 82609
linkedin: https://www.linkedin.com/in/sebastienlorber/
newsletter: https://thisweekinreact.com/newsletter
---
diff --git a/website/_dogfooding/_blog tests/authors.yml b/website/_dogfooding/_blog tests/authors.yml
index fc6a50b90b..040b9899ee 100644
--- a/website/_dogfooding/_blog tests/authors.yml
+++ b/website/_dogfooding/_blog tests/authors.yml
@@ -4,3 +4,8 @@ slorber:
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png
twitter: sebastienlorber
+ page: true
+
+ozaki:
+ name: ozaki
+ page: {permalink: '/custom/ozaki/permalink'}
diff --git a/website/_dogfooding/_blog tests/custom-atom.css b/website/_dogfooding/_blog tests/custom-atom.css
new file mode 100644
index 0000000000..c016178d90
--- /dev/null
+++ b/website/_dogfooding/_blog tests/custom-atom.css
@@ -0,0 +1,76 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+* {
+ color: #0d1137;
+}
+
+main {
+ flex: 1 0 auto;
+ width: 100%;
+ margin: 4rem auto;
+ padding: 1.5 rem;
+ max-width: 800px;
+ /* stylelint-disable-next-line font-family-name-quotes */
+ font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell;
+}
+
+.info {
+ display: block;
+ margin: 3rem 0;
+ padding: 2rem 3rem;
+ border: 1px solid dodgerblue;
+ border-left-width: 0.5rem;
+ border-radius: 0.4rem;
+ background-color: #e52165;
+}
+
+.rss-icon {
+ height: 3.8rem;
+ width: 3.8rem;
+ margin-right: 1rem;
+}
+
+.flex {
+ display: flex;
+}
+
+.items-start {
+ align-items: flex-start;
+}
+
+.pb-7 {
+ padding-bottom: 3rem;
+}
+
+a {
+ color: #005aff;
+ text-decoration: none;
+}
+
+h1 {
+ text-wrap: balance;
+ font-size: 3.8rem;
+ line-height: 1;
+ font-weight: 800;
+ margin-bottom: 4rem;
+}
+
+h2 {
+ font-size: 3rem;
+ line-height: 1.2;
+ font-weight: 700;
+ margin-bottom: 3rem;
+}
+
+h2:not(:first-child) {
+ margin-top: 5.8rem;
+}
+
+.italic {
+ font-style: italic;
+}
diff --git a/website/_dogfooding/_blog tests/custom-atom.xsl b/website/_dogfooding/_blog tests/custom-atom.xsl
new file mode 100644
index 0000000000..560d535302
--- /dev/null
+++ b/website/_dogfooding/_blog tests/custom-atom.xsl
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+ Atom Feed |
+
+
+
+
+
+
+ This is an Atom feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.
+ This is an RSS feed. Subscribe by copying the URL from the address
+ bar into your newsreader. Visit About Feeds to learn more
+ and get started. It’s free.