From ee2c794f72315b8c7fea09f202bd606081e1f479 Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Tue, 29 Jul 2025 18:33:10 -0400 Subject: [PATCH] add toc to steps --- fern/products/docs/pages/navigation/products.mdx | 16 +++++++++------- fern/products/docs/pages/navigation/versions.mdx | 12 +++++++----- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/fern/products/docs/pages/navigation/products.mdx b/fern/products/docs/pages/navigation/products.mdx index 9b0da337e..0e043d11a 100644 --- a/fern/products/docs/pages/navigation/products.mdx +++ b/fern/products/docs/pages/navigation/products.mdx @@ -26,8 +26,8 @@ Each product can contain its own distinct versions, tabs, sections, pages, and A ## 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. @@ -83,8 +83,8 @@ tabs: ``` - -### Add your product configuration + + To define a product, add an item to the `products` list in `docs.yml`, specifying the `display-name` and `path`. @@ -110,8 +110,8 @@ products: subtitle: Product B subtitle # optional ``` - -### Add versioning to your products (optional) + + You can optionally add versions to a product. Versioned and unversioned products can live next to each other in your site. Each version of a single product has its own `yml` file. @@ -165,9 +165,11 @@ products: For more information on setting up versioned products, follow our [versioning docs](/docs/navigation/versions). + + -### Remove extra `navigation` from `docs.yml` If your `docs.yml` file includes a `navigation` field or a `tabs` field, be sure to remove. Those fields should now belong in the product-specific `.yml` files. + ## Customizing Selector Styling diff --git a/fern/products/docs/pages/navigation/versions.mdx b/fern/products/docs/pages/navigation/versions.mdx index 4d8313492..1ecf958de 100644 --- a/fern/products/docs/pages/navigation/versions.mdx +++ b/fern/products/docs/pages/navigation/versions.mdx @@ -11,8 +11,8 @@ Each version of your docs can contain its own distinct tabs, sections, pages, an **To add versions to your docs:** - -### Define your versions + + 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. @@ -79,8 +79,8 @@ tabs: You can also have multiple products, some versioned and some unversioned. For more information on setting up multiple products, follow our [product switching docs](/docs/navigation/products). - -### Add your version configuration + + To define a version, in `docs.yml`, add an item to the `versions` list, specifying the `display-name` and `path`. @@ -104,7 +104,9 @@ versions: path: ./versions/v2-1.yml ``` + + -### Remove extra `navigation` from `docs.yml` 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. + \ No newline at end of file