For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Create a versions folder inside of your fern folder. TO specify the contents of each version, add a .yml file to the versions folder to define the navigational structure of that version. Make sure to include the navigation and tabs properties, if applicable.
$
fern/
$
├─ fern.config.json
$
├─ generators.yml
$
├─ docs.yml
$
├─ pages/
$
├─ ...
$
└─ versions/
$
├─ v2-1/pages/...
$
├─ v2-1.yml
$
├─ v2-2/pages/...
$
└─ v2-2.yml
1
navigation:
2
- section: Introduction
3
contents:
4
- page: My Page
5
path: ./v2-1/pages/my-page.mdx # relative path to the file
If your docs.yml file includes a navigation field or a tabs field, be sure to remove. Those fields should now belong in the version-specific .yml files.