You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/navigation/products.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ Each product can contain its own distinct versions, tabs, sections, pages, and A
26
26
27
27
## Add Products to Your Docs
28
28
29
-
<Steps>
30
-
### Define your products
29
+
<Stepstoc={true}>
30
+
<Steptitle="Define your products">
31
31
32
32
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.
33
33
Make sure to include the `navigation` and `tabs` properties, if applicable.
@@ -83,8 +83,8 @@ tabs:
83
83
```
84
84
</CodeBlock>
85
85
</CodeBlocks>
86
-
87
-
### Add your product configuration
86
+
</Step>
87
+
<Step title="Add your product configuration">
88
88
89
89
To define a product, add an item to the `products` list in `docs.yml`, specifying the `display-name` and `path`.
90
90
@@ -110,8 +110,8 @@ products:
110
110
subtitle: Product B subtitle # optional
111
111
```
112
112
</CodeBlock>
113
-
114
-
### Add versioning to your products (optional)
113
+
</Step>
114
+
<Step title="Add versioning to your products (optional)">
115
115
116
116
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.
117
117
@@ -165,9 +165,11 @@ products:
165
165
</CodeBlock>
166
166
167
167
For more information on setting up versioned products, follow our [versioning docs](/docs/navigation/versions).
168
+
</Step>
169
+
<Step title="Remove extra navigation from docs.yml">
168
170
169
-
### Remove extra `navigation` from `docs.yml`
170
171
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.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/navigation/versions.mdx
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ Each version of your docs can contain its own distinct tabs, sections, pages, an
11
11
12
12
**To add versions to your docs:**
13
13
14
-
<Steps>
15
-
### Define your versions
14
+
<Stepstoc={true}>
15
+
<Steptitle="Define your versions">
16
16
17
17
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.
18
18
@@ -79,8 +79,8 @@ tabs:
79
79
</CodeBlocks>
80
80
81
81
<Note>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).</Note>
82
-
83
-
### Add your version configuration
82
+
</Step>
83
+
<Step title="Add your version configuration">
84
84
85
85
To define a version, in `docs.yml`, add an item to the `versions` list, specifying the `display-name` and `path`.
86
86
@@ -104,7 +104,9 @@ versions:
104
104
path: ./versions/v2-1.yml
105
105
```
106
106
</CodeBlock>
107
+
</Step>
108
+
<Step title="Remove extra navigation from docs.yml">
107
109
108
-
### Remove extra `navigation` from `docs.yml`
109
110
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.
0 commit comments