Pagination Demo
This page demonstrates the automatic pagination feature in Docusaurus.
What is Pagination?
Docusaurus automatically adds "Previous" and "Next" navigation buttons at the bottom of each documentation page. These buttons help users navigate through your documentation in the order defined by your sidebar.
How It Works
- Automatic ordering: Pagination follows the sidebar structure and order
- Nested categories: Works seamlessly across nested documentation categories
- Customizable: You can override the default next/previous pages using frontmatter
Customizing Pagination
You can customize pagination using frontmatter:
---
pagination_next: path/to/next/page
pagination_prev: path/to/previous/page
---
Disabling Pagination
To disable the next button:
---
pagination_next: null
---
To disable the previous button:
---
pagination_prev: null
---
To disable both:
---
pagination_next: null
pagination_prev: null
---
Try It Out
Look at the bottom of this page - you should see pagination buttons that let you navigate to the previous and next pages in the documentation.