Skip to content

Commit

Permalink
Improve website handling of 1.1_branch (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 authored Nov 4, 2021
1 parent c2ebedc commit 8fa7a64
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion website/docs/development/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ The release process may be automated in the future.
- Update NEWS.md with towncrier
- Create a wheel and source dist for hydra-core: `python -m build`
- Upload pip package: `python -m twine upload dist/*`

- Update the link to the latest stable release in `website/docs/intro.md`
- If you are creating a new release branch:
- [tag a new versioned copy of the docs using docusaurus](https://docusaurus.io/docs/versioning#tagging-a-new-version)
- update `website/docusaurus.config.js` with a pointer to the new release branch on github
6 changes: 3 additions & 3 deletions website/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Use the version switcher in the top bar to switch between documentation versions

| | Version | Release notes | Python Versions |
| -------|---------------------------|-------------------------------------------------------------------------------------| -------------------|
| ►| 1.1 (Stable) | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.1.0) | **3.6 - 3.9** |
| | 1.0 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.0.0rc1) | **3.6 - 3.8** |
| | 0.11 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/0.11.0) | **2.7, 3.5 - 3.8** |
| ►| 1.1 (Stable) | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.1.1) | **3.6 - 3.9** |
| | 1.0 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.0.7) | **3.6 - 3.8** |
| | 0.11 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v0.11.3) | **2.7, 3.5 - 3.8** |


## Quick start guide
Expand Down
5 changes: 3 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ module.exports = {
projectName: 'hydra', // Usually your repo name.
customFields: {
githubLinkVersionToBaseUrl: {
// TODO: Update once a branch is cut for 1.1
"1.1": "https://github.com/facebookresearch/hydra/blob/main/",
// TODO: Update once a branch is cut for 1.2
"1.2": "https://github.com/facebookresearch/hydra/blob/main/",
"1.1": "https://github.com/facebookresearch/hydra/blob/1.1_branch/",
"1.0": "https://github.com/facebookresearch/hydra/blob/1.0_branch/",
current: "https://github.com/facebookresearch/hydra/blob/main/",
},
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.1/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Use the version switcher in the top bar to switch between documentation versions

| | Version | Release notes | Python Versions |
| -------|---------------------------|-------------------------------------------------------------------------------------| -------------------|
| ►| 1.1 (Stable) | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.1.0) | **3.6 - 3.9** |
| | 1.0 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.0.0rc1) | **3.6 - 3.8** |
| | 0.11 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/0.11.0) | **2.7, 3.5 - 3.8** |
| ►| 1.1 (Stable) | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.1.1) | **3.6 - 3.9** |
| | 1.0 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v1.0.7) | **3.6 - 3.8** |
| | 0.11 | [Release notes](https://github.com/facebookresearch/hydra/releases/tag/v0.11.3) | **2.7, 3.5 - 3.8** |


## Quick start guide
Expand Down

0 comments on commit 8fa7a64

Please sign in to comment.