Table of contents customization
We’ve added a max-toc-depth
frontmatter option to control the depth of the table of contents. Use this to limit the heading ranks included in the table of contents.
You can read more about this feature in the frontmatter documentation.
Improvements to 404 Pages
We now have themed 404 pages for your docs, using your theme colors, fonts, and buttons. We also maintain the best-effort navigation state on this page using the 404 page URL, so that users can easily navigate back to your docs.
Introducing The Product Switcher
The product switcher allows you to navigate between different products you offer, and even different versions of a product.
IMAGE HERE
To add a products to your docs, visit the product switcher docs page to get started.
- feat: improvements to local preview mode, including support for custom javascript and bug fixes for reloading performance issues.
- minor bugfixes and improvements to AI search
- feat: allow response and request in playground to be selectable
- feat(cli): using
fern docs dev
on the latest CLI will now better reflect the docs in production - feat(search): the search UX now uses infinite scroll and allows for searching based on breadcrumb paths
- fix(ai): small bug fixes to the AI chat experience
- fix(seo):
og
andtwitter
defined in thedocs.yml
config are now respected - fix(auth): authenticated previews have been restored
- fix(docs): frontmatter titles are now preferred over
<h1>
tags within the MDX file - fix(search): canonical URLs now differentiate between endpoints that share the same method and endpoint name but are defined in APIs of different names
- chore(local): beta local development mode now refreshes on file changes
- fix(openrpc): openrpc playground params are now an array
- chore(local): beta local development bundle size is decreased by 75%, and now allows users with any machine type to run locally. additionally, custom javascript is now excluded to address bug reports.
Introducing Global Language Sync: Code Language Preferences That Follow You
Starting today, when you select a programming language in any <CodeBlocks>
or <Tabs>
, that preference will automatically sync across all documentation pages. This means no more manually switching languages as you navigate through different sections of our docs. Whether you’re viewing implementation examples, debugging guides, or API references, your preferred language follows you. Language preference is kept in client-side local storage.
This behavior is automatically enabled for all <CodeBlocks>
. To add language preferences to a <Tab>
, you can add the language
property. Check out language sync in the example below:
Example
Markdown
TypeScript
Python
Java
This is content specific to TypeScript.