Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove pagination #2377

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gatsby-node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const onCreateNode = async ({node, getNode, loadNodeContent, actions}) =>

export const createPages = async ({actions, graphql}) => {
const pageTemplate = resolve("./src/templates/page.jsx")
const {createRedirect} = actions;
const {createRedirect} = actions;

redirects.forEach(redirect => {
createRedirect({
Expand Down
3 changes: 0 additions & 3 deletions src/components/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import ExpansionPanel, {
import { TOTAL_HEADER_HEIGHT } from './Header';
import InlineCode from './InlineCode';
import PageLayout, { usePageLayoutProps } from './PageLayout';
import Pagination from './Pagination';
import RelativeLink, { ButtonLink } from './RelativeLink';

import TableOfContents from './TableOfContents';
Expand Down Expand Up @@ -178,7 +177,6 @@ export default function Page({

const { frontmatter, headings } = childMdx || childMarkdownRemark;
const { title, description, toc } = frontmatter;
const { navItems } = pageContext;

const pageProps = usePageLayoutProps({
pageContext,
Expand Down Expand Up @@ -234,7 +232,6 @@ export default function Page({
{description}
</chakra.h2>
)}
pagination={<Pagination navItems={navItems} />}
aside={
toc !== false ? (
// hide the table of contents on the home page
Expand Down
3 changes: 0 additions & 3 deletions src/components/PageLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default function Page({
children,
banner,
subtitle,
pagination,
aside,
paddingTop,
paddingBottom,
Expand Down Expand Up @@ -157,7 +156,6 @@ export default function Page({
<Box fontSize={{ md: 'lg' }} lineHeight={{ md: 1.7 }} {...contentProps}>
{children}
</Box>
{pagination}
</Box>
{aside}
</Flex>
Expand All @@ -174,7 +172,6 @@ Page.propTypes = {
paddingTop: PropTypes.string.isRequired,
paddingBottom: PropTypes.string.isRequired,
banner: PropTypes.element,
pagination: PropTypes.element,
aside: PropTypes.element,
subtitle: PropTypes.node,
description: PropTypes.string,
Expand Down
63 changes: 0 additions & 63 deletions src/components/Pagination/Pagination.jsx

This file was deleted.

37 changes: 0 additions & 37 deletions src/components/Pagination/PaginationButton.jsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/Pagination/index.jsx

This file was deleted.