From 3867f9c0d8e7b5343c9de006c1e5e8ff660d20c3 Mon Sep 17 00:00:00 2001 From: JulioV Date: Sat, 12 Dec 2020 17:36:15 -0500 Subject: [PATCH] Fix old version banner --- docs/change-log.md | 3 +++ docs/developers/git-flow.md | 2 ++ docs/javascripts/extra.js | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/change-log.md b/docs/change-log.md index ebff7391..25e4db5b 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -1,5 +1,8 @@ # Change Log +## v0.2.1 +- FIx link to the most recent version in the old version banner + ## v0.2.0 - Add new `PHONE_BLUETOOTH` `DORYAB` provider - Deprecate `PHONE_BLUETOOTH` `RAPIDS` provider diff --git a/docs/developers/git-flow.md b/docs/developers/git-flow.md index 130524b1..8f75ab08 100644 --- a/docs/developers/git-flow.md +++ b/docs/developers/git-flow.md @@ -15,6 +15,7 @@ git pull git checkout -b feature/feature1 ``` 1. Add, modify or delete the necessary files to add your new feature +1. Update the [change log](../../change-log) (`docs/change-log.md`) 2. Stage and commit your changes using VS Code git GUI or the following commands ```bash git add modified-file1 modified-file2 @@ -89,6 +90,7 @@ git describe --abbrev=0 --tags # Bump the hotfix (0.1.0 to 0.1.1 => NEW_HOTFIX) git checkout -b hotfix/v[NEW_HOTFIX] master ``` 1. Fix whatever needs to be fixed +1. Update the change log 1. Tag and merge the hotfix ```bash git tag v[NEW_HOTFIX] diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js index 10faee99..47b2f759 100644 --- a/docs/javascripts/extra.js +++ b/docs/javascripts/extra.js @@ -8,7 +8,7 @@ window.addEventListener("DOMContentLoaded", function() { if(versions[id]["aliases"].length > 0 && versions[id]["aliases"].includes("latest")) latest_version = "/" + versions[id].version + "/" if(!window.location.pathname.includes("/latest/") && (latest_version.length > 0 && !window.location.pathname.includes(latest_version))) - document.querySelector("div[data-md-component=announce]").innerHTML = "
You are seeing the docs for a previous version of RAPIDS, click here to go to the latest
" + document.querySelector("div[data-md-component=announce]").innerHTML = "
You are seeing the docs for a previous version of RAPIDS, click here to go to the latest
" }; xhr.send(); });