Skip to content

feat(cli): add page-size configuration option for changelog pagination#12061

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1770223512-changelog-page-size
Open

feat(cli): add page-size configuration option for changelog pagination#12061
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1770223512-changelog-page-size

Conversation

@devin-ai-integration
Copy link
Contributor

Description

Refs #12006

Adds a page-size configuration option for changelog navigation items in docs.yml. This allows users to control how many changelog entries are displayed per page.

Companion PR: https://github.com/fern-api/fern-platform/pull/6837 (adds pageSize to FDR ChangelogNode type)

Changes Made

  • Added page-size property to ChangelogConfiguration in the docs.yml schema
  • Updated ParsedDocsConfiguration to include pageSize on changelog items
  • Updated parseDocsConfiguration.ts to parse the new property
  • Updated ChangelogNodeConverter to pass pageSize through to the FDR node
  • Updated DocsDefinitionResolver to pass pageSize when creating changelog nodes
  • Added CLI version 3.63.0 changelog entry

Example Usage

navigation:
  - changelog: ./changelog
    page-size: 10  # Display 10 entries per page

Testing

  • Lint checks pass (pnpm run check)
  • Manual testing (requires fern-platform PR to be merged first)

Human Review Checklist

  • Verify the fern-platform companion PR is merged before this PR
  • Verify page-sizepageSize property mapping is correct in serialization
  • Note: pageSize is only supported on changelog navigation items, not on tabbed changelog tabs (this is intentional based on the schema)

Link to Devin run: https://app.devin.ai/sessions/9f9efc959e4a4fbfba758b6926a201f1
Requested by: Catherine Deskur

Co-Authored-By: Catherine Deskur <catherine@buildwithfern.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Catherine Deskur <catherine@buildwithfern.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

0 participants