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
@@ -119,7 +119,9 @@ If your `docs.yml` file includes a `navigation` field or a `tabs` field, be sure
119
119
120
120
### Add versioning to your products (optional)
121
121
122
-
Once you've defined your products, you can optionally add versions. Versioned and unversioned products can live next to each other in your site.
122
+
You can optionally add versions to your products. Versioned and unversioned products can live next to each other in your site.
123
+
124
+
<Note>For standalone versioning without products, see our [Versioning guide](/docs/configuration/versions).</Note>
123
125
124
126
In the below example, Product A is **unversioned** and Product B is **versioned**:
125
127
@@ -148,6 +150,8 @@ In the below example, Product A is **unversioned** and Product B is **versioned*
148
150
149
151
<Steps>
150
152
<Step title="Define your versions">
153
+
Create a `versions` folder inside of folder of the product you want to version.
154
+
151
155
Each version of a single product has its own `yml` file. 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.
<Step title="Remove extra navigation from docs.yml">
203
-
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.
206
+
<Step title="Remove extra navigation">
207
+
208
+
If your product-specific `.yml` files for **versioned products** includes a `navigation` field or a `tabs` field, be sure to remove. Those fields should now belong in the version-specific `.yml` files.
204
209
</Step>
205
210
</Steps>
206
211
207
212
208
-
## Customizing Selector Styling
213
+
## Customize selector styling
209
214
210
215
You can directly customize the appearance of the product and version selectors by targeting their CSS classes:
211
216
@@ -216,13 +221,9 @@ You can directly customize the appearance of the product and version selectors b
216
221
<img src="webflow-dropdown-selector.avif" alt="Example of a styled product selector" />
217
222
</Frame>
218
223
219
-
### Common Styling Adjustments
220
-
221
-
**Adjusting positioning:**
222
-
Use `transform: translateY(Npx)` to adjust the vertical positioning of the selectors. This ensures that the product and version selectors match the line height of your logo for better visual alignment.
224
+
### Common styling adjustments
223
225
224
-
**Enhancing visual prominence:**
225
-
You can modify the border radius and add borders to make the selectors more prominent and better integrated with your site's design aesthetic.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/navigation/versions.mdx
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ subtitle: Allow users to navigate between different versions of your docs.
9
9
10
10
Each version of your docs can contain its own distinct tabs, sections, pages, and API references. Versions can share content, as well.
11
11
12
-
**To add versions to your docs:**
12
+
## Add versions to your docs
13
13
14
14
<Stepstoc={true}>
15
15
<Steptitle="Define your versions">
@@ -73,4 +73,28 @@ versions:
73
73
74
74
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.
75
75
</Step>
76
-
</Steps>
76
+
</Steps>
77
+
78
+
## Customize version selector styling
79
+
80
+
You can directly customize the appearance of the version selector by targeting the `fern-version-selector` CSS class.
Use `transform: translateY(Npx)` to adjust the vertical positioning of the selectors. This ensures that the selectors match the line height of your logo for better visual alignment.
3
+
4
+
**Enhancing visual prominence:**
5
+
You can modify the border radius and add borders to make the selectors more prominent and better integrated with your site's design aesthetic.
0 commit comments