|
|
@ -6,10 +6,15 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
|
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
|
|
|
|
|
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function DocPaginator(props) {
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
|
|
|
// previous,
|
|
|
|
|
|
|
|
next,
|
|
|
|
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
|
|
function DocPaginator({previous, next}) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
|
|
|
|
<nav
|
|
|
|
<nav
|
|
|
|
className="pagination-nav docusaurus-mt-lg"
|
|
|
|
className="pagination-nav docusaurus-mt-lg"
|
|
|
|
aria-label={translate({
|
|
|
|
aria-label={translate({
|
|
|
@ -18,31 +23,18 @@ function DocPaginator({previous, next}) {
|
|
|
|
description: 'The ARIA label for the docs pagination',
|
|
|
|
description: 'The ARIA label for the docs pagination',
|
|
|
|
})}>
|
|
|
|
})}>
|
|
|
|
<div className="pagination-nav__item">
|
|
|
|
<div className="pagination-nav__item">
|
|
|
|
{previous && (
|
|
|
|
|
|
|
|
<a className="pagination-nav__link" href={previous.permalink}>
|
|
|
|
|
|
|
|
<div className="pagination-nav__sublabel">
|
|
|
|
|
|
|
|
<Translate
|
|
|
|
|
|
|
|
id="theme.docs.paginator.previous"
|
|
|
|
|
|
|
|
description="The label used to navigate to the previous doc">
|
|
|
|
|
|
|
|
Previous
|
|
|
|
|
|
|
|
</Translate>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="pagination-nav__label">{previous.title}</div>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="pagination-nav__item pagination-nav__item--next">
|
|
|
|
|
|
|
|
{next && (
|
|
|
|
{next && (
|
|
|
|
<a className="pagination-nav__link" href={next.permalink}>
|
|
|
|
<PaginatorNavLink
|
|
|
|
<div className="pagination-nav__sublabel">
|
|
|
|
hasArrow={true}
|
|
|
|
|
|
|
|
{...next}
|
|
|
|
|
|
|
|
subLabel={
|
|
|
|
<Translate
|
|
|
|
<Translate
|
|
|
|
id="theme.docs.paginator.next"
|
|
|
|
id="theme.docs.paginator.next"
|
|
|
|
description="The label used to navigate to the next doc">
|
|
|
|
description="The label used to navigate to the next doc">
|
|
|
|
Next
|
|
|
|
Next page
|
|
|
|
</Translate>
|
|
|
|
</Translate>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
<div className="pagination-nav__label">{next.title}</div>
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</nav>
|
|
|
|