April 2, 2026

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.

docs.yml
1agents:
2 page-directive: "For a complete page index, fetch https://docs.example.com/llms.txt"
Read the docs

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:

docs.yml
1check:
2 rules:
3 missing-redirects: error

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.

Read the docs

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.

Read the docs