From f1b6a86930a293ca4a6416ec0292f5e4e1963146 Mon Sep 17 00:00:00 2001 From: Gil Desmarais Date: Sun, 2 Aug 2026 03:27:20 +0200 Subject: [PATCH 01/13] docs(ruby-gem): document pagination strategies and request ceilings --- .../docs/ruby-gem/reference/selectors.mdx | 137 ++++++++++++++++-- 1 file changed, 121 insertions(+), 16 deletions(-) diff --git a/src/content/docs/ruby-gem/reference/selectors.mdx b/src/content/docs/ruby-gem/reference/selectors.mdx index d25da5df..9b4e5578 100644 --- a/src/content/docs/ruby-gem/reference/selectors.mdx +++ b/src/content/docs/ruby-gem/reference/selectors.mdx @@ -61,34 +61,139 @@ Available options: ## Paginated Feeds -`html2rss` can follow a single `rel="next"` pagination chain when you configure `selectors.items.pagination.max_pages`. +Configure `selectors.items.pagination` to fetch items across multiple pages. `html2rss` supports several pagination strategies to handle different website architectures. + +### Common Options + +- **`strategy`**: The pagination strategy name (default: `rel_next`). +- **`max_pages`**: The total page budget for the item selector chain, including the initial page (default: `5`). + +If you specify `pagination` as a simple integer (e.g., `pagination: 5`), it defaults to the `rel_next` strategy with the specified `max_pages`. + +--- + +### Strategies + +#### 1. `rel_next` (Default) + +Follows standard HTML next page relationships via `` or `