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
<Step title="Add versioning to your products (optional)">
115
127
116
128
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
129
118
-
In the below example, Product A is **unversioned** and Product B is **versioned**:
119
-
120
-
<CodeBlock>
121
-
122
-
```bash {8, 10-17}
123
-
fern/
124
-
├─ fern.config.json
125
-
├─ generators.yml
126
-
├─ docs.yml
127
-
├─ pages/
128
-
├─ ...
129
-
└─ products/
130
-
├── product-a.yml # basic unversioned product
131
-
└── product-b/ # versioned product
132
-
├─ product-b.yml
133
-
└─ versions/
134
-
├─ latest/
135
-
│ ├─ latest.yml
136
-
│ └─ pages/...
137
-
└─ v2/
138
-
├─ v2.yml
139
-
└─ pages/...
140
-
```
141
-
</CodeBlock>
130
+
To add versions to a product:
142
131
143
-
The top-level `doc.yml` configuration for a Fern Docs website containing two products, one unversioned and one versioned, might look something like this:
132
+
1. Create a `versions` folder inside your product directory
133
+
2. Add a yml file for each version
134
+
3. Configure the versions in your product's entry in docs.yml:
0 commit comments