Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 4, 2025

Refactor folder-based navigation documentation to be concise and integrated

Summary

Per user feedback, the standalone folder-based navigation page was too verbose. This PR refactors the documentation to be dry and concise by:

  1. Removing the standalone page (folder-based-navigation.mdx, 259 lines) and integrating it as a short subsection in the navigation overview page (~7 lines)
  2. Creating a reusable snippet at /fern/snippets/folder-nav-basic.mdx for the basic example to avoid duplication
  3. Adding a redirect from the old URL (/learn/docs/configuration/folder-based-navigation) to the navigation overview page
  4. Adding a changelog entry for 2025-11-05 to document the new feature

The new documentation is minimal: introduces the folder configuration with one example, mentions that subfolders become nested sections, and lists the supported options (title, slug, icon, collapsed, hidden, skip-slug, availability).

Review & Testing Checklist for Human

⚠️ Critical items to verify:

  • Test the redirect: Visit https://your-docs-domain/learn/docs/configuration/folder-based-navigation and verify it redirects to /learn/docs/configuration/navigation correctly
  • Verify the snippet renders: Check that the <Markdown src="/snippets/folder-nav-basic.mdx" /> reference works in both the navigation overview page and the changelog entry
  • Check the anchor link: In the changelog, click the "Learn more" link and verify it jumps to the correct section (#add-pages-from-a-folder) on the navigation overview page
  • Evaluate completeness: The original documentation was 259 lines covering filename conversion rules, use cases, Slack example, etc. The new version is ~7 lines. Is this too concise? Does it provide enough information for users to understand and use the feature?
  • Test locally: Run fern docs dev and navigate to the navigation overview page to ensure it renders correctly with proper formatting and the snippet resolves

Notes

Add comprehensive documentation for the new folder configuration feature
that allows automatic navigation generation from a folder of markdown files.

The documentation covers:
- Basic usage and how it works
- Filename to title/slug conversion rules
- Nested folder support
- All configuration options (title, slug, icon, collapsed, hidden, etc.)
- Combining folder and manual navigation
- Controlling page order with frontmatter
- Use cases and real-world examples

Includes example from Slack's documentation showing the feature in action.

Co-Authored-By: Deep Singhvi <[email protected]>
@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


**Large documentation sets**: When you have dozens or hundreds of pages, manually maintaining the navigation structure in `docs.yml` becomes tedious. Folder-based navigation lets you organize pages in the filesystem and have the navigation generated automatically.

**Frequently updated content**: If you regularly add new pages to a section, folder-based navigation eliminates the need to update `docs.yml` every time you add a page.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Adverbs] Remove 'regularly' if it's not important to the meaning of the statement.


**Team collaboration**: When multiple team members are adding documentation, folder-based navigation reduces merge conflicts in the `docs.yml` file since new pages don't require configuration changes.

## Example from Slack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'Example from Slack' should use sentence-style capitalization.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

- Remove standalone folder-based-navigation.mdx page
- Add concise 'Add pages from a folder' section to navigation overview
- Create reusable snippet at /fern/snippets/folder-nav-basic.mdx
- Add redirect from old URL to navigation overview
- Add changelog entry for 2025-11-05
- Keep documentation dry and concise as requested

Co-Authored-By: Deep Singhvi <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@devalog devalog merged commit dd1918e into main Nov 5, 2025
2 checks passed
@devalog devalog deleted the devin/1762291962-document-folder-configuration branch November 5, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants