Per-page directives in llms.txt
You can add a directive that’s automatically prepended to every page when it’s served to AI agents — both individual Markdown page URLs and each page section within llms-full.txt. The directive is only visible to agents requesting Markdown; human-facing documentation is unaffected.
Missing redirects check rule
The missing-redirects rule for fern check detects pages that were removed or moved without a redirect. It compares your current docs navigation against the previously published state and warns when a previously published URL would return a 404. Configure its severity in docs.yml:
Requires authentication via fern login or the FERN_TOKEN environment variable. The check is skipped on first publish, when unauthenticated, or when the network is unavailable.
Requires Fern CLI version 4.57.0 or later.
Library docs generator
Generate MDX documentation pages from your Python or C++ library source code and include them in your Fern Docs site. Configure your libraries in docs.yml, run fern docs md generate, and the generated pages appear as navigation sections alongside your other documentation.