Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rberrelleza committed Feb 14, 2023
1 parent e18ee5c commit 239432a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ yarn run docusaurus docs:version 0.XX

This will create a new version with the docs on your current branch. Do this before you start merging the docs for the next version.

Modify `docusaurus.config.js`](docusaurus.config.js):
Modify the `presets.docs.versions` section of [`docusaurus.config.js`](docusaurus.config.js) as follows:


1. Update `lastVersion` to the new official version

2. Update `current` to the version in development
Expand Down Expand Up @@ -69,6 +71,19 @@ Modify `docusaurus.config.js`](docusaurus.config.js):
```
Modify the redirection rules on `netlify.toml` so that `/docs/$OFFICIAL_VERSION/` redirects to `/docs`
```
# Redirect the current version to /docs/
[[redirects]]
from = "/docs/1.5/*"
to = "/docs/:splat"
status = 301
```
https://github.com/okteto/docs/pull/314 is a good example of how to set up the files
## Components
### Product tiers list
Expand Down

0 comments on commit 239432a

Please sign in to comment.