Skip to content

Commit

Permalink
KAD-DOC-54: appease finicky GitHub MD-JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Bruder committed Feb 23, 2025
1 parent 5e9e9ea commit 5d3a811
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,45 @@ We want to publish `A.B.C`. Therefore:
npm run docusaurus docs:version X.Y.Z
```
2. set the label of the new _current_ version `A.B.C` in [`/docusaurus.config.js`](./docusaurus.config.js) at `config.presets.docs.versions.current.label` to `vA.B.C`,
```json
...
versions: {
current: {
label: 'vA.B.C',
path: '/',
badge: true,
},
...
}
...
```js
({
// ...
versions: {
current: {
label: 'vA.B.C',
path: '/',
badge: true
},
// ...
}
// ...
})
```
3. add the new _previous_ version `X.Y.Z` there:
```json
...
versions: {
current: {
label: 'vA.B.C',
path: '/',
badge: true,
},
"X.Y.Z": {
label: 'vX.Y.Z',
path: 'X.Y.Z',
badge: true,
},
...
}
...
```js
({
// ...
versions: {
current: {
label: 'vA.B.C',
path: '/',
badge: true
},
"X.Y.Z": {
label: 'vX.Y.Z',
path: 'X.Y.Z',
badge: true
},
// ...
}
// ...
})
```
4. move the version `"current"` in [`./versions.json`](./versions.json) above `"X.Y.Z"`, it should now look like:
```json
[
"current",
"X.Y.Z",
...
"X.Y.Z"
]
```

Expand Down

0 comments on commit 5d3a811

Please sign in to comment.