Product Switching
Allow users to seamlessly navigate between different products you offer.
Each product can contain its own distinct versions, tabs, sections, pages, and API references. Products can share content as well.
To add products to your docs:
Define your products
Create a products
folder inside of your fern
folder. To specify a product’s contents and navigational structure, add a .yml
file to the products
folder for each product.
Make sure to include the navigation
and tabs
properties, if applicable.
Add your product configuration
To define a product, add an item to the products
list in docs.yml
, specifying the display-name
and path
.
The optional parameters are: image
, icon
, subtitle
, slug
, and versions
.
image
and an icon
, the image
will take precedence.Setting up Versioned Products
Products can be versioned or unversioned. The following is an example of how more complex products might be organized:
For more information on setting up versions, follow our versioning docs.