Skip to content

Commit 8f98520

Browse files
authored
Add info about product switching to Navigation page (Docs) (#520)
1 parent 5230b4a commit 8f98520

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

fern/products/docs/pages/navigation/overview.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,25 @@ layout:
252252
## Versions
253253

254254
If you have multiple versions of your documentation, you can introduce a dropdown version selector by specifying the `versions`. For more information, check out our [documentation on versioning](/learn/docs/building-your-docs/versioning).
255+
256+
## Product switching
257+
258+
If you have multiple products in your documentation, you can introduce a dropdown product selector by creating separate product configuration files. Each product can contain its own distinct versions, tabs, sections, pages, and API references, though products can also share content.
259+
260+
<CodeBlock title="docs.yml">
261+
```yaml {2-3, 7-8}
262+
products:
263+
- display-name: Product A
264+
path: ./products/product-a.yml
265+
icon: fa-solid fa-leaf # optional
266+
slug: product-a # optional
267+
subtitle: Product A subtitle # optional
268+
- display-name: Product B
269+
path: ./products/product-b/latest.yml # <-- default showing latest
270+
image: ./images/product-b.png # optional
271+
slug: product-b # optional
272+
subtitle: Product B subtitle # optional
273+
```
274+
</CodeBlock>
275+
276+
For more information about setting up this up, check out our [documentation on product switching](/learn/docs/configuration/products).

0 commit comments

Comments
 (0)