Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 26, 2026

Description

Refs: Related fern-platform PR: fern-api/fern-platform#6604

Fixes the navigation issue where the sidebar disappears when entering Python library docs API reference pages. The CLI now creates a placeholder SectionNode at the exact position where python-docs is defined in the navigation YAML, which FDR can find by slug suffix match and replace with the actual library docs content.

Link to Devin run: https://app.devin.ai/sessions/12c061bbb9af4494ad68657c7285342b
Requested by: paarth@buildwithfern.com

Changes Made

  • Changed PythonDocsSectionHandler return type from PageNode | null to SectionNode | null
  • Updated createPythonDocsSectionPlaceholder to return a SectionNode with empty children array
  • Added pythonDocsSectionHandler in publishDocs.ts that creates a placeholder section during the publish flow
  • The placeholder section preserves the navigation position so FDR can inject library docs at the correct location

Testing

  • Unit tests added/updated
  • Manual testing completed (requires fern-platform PR to be deployed together)

Human Review Checklist

  • Verify the SectionNode structure has all required fields (id, type, slug, title, children, etc.)
  • Confirm placeholder ID pattern __libdocs_placeholder_${urlSlug}__ matches FDR expectations in fern-platform#6604
  • Review cross-repo coordination: this PR must be deployed alongside fern-platform#6604
  • Verify slug suffix matching will work correctly (FDR looks for sections where slug.endsWith(libraryDocsSlug))

…igation structure

Co-Authored-By: paarth@buildwithfern.com <paarth@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

devin-ai-integration bot and others added 2 commits January 26, 2026 19:28
Co-Authored-By: paarth@buildwithfern.com <paarth@buildwithfern.com>
Co-Authored-By: paarth@buildwithfern.com <paarth@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