Hasan Iqbal commited on
Commit
d54cef8
1 Parent(s): bd821b3

Fixed a bug in docs bumpversion script

Browse files
docs/scripts/bumpversion.sh CHANGED
@@ -14,7 +14,7 @@ VERSION_FILE="$DOCS_ROOT/src/_static/versions.json"
14
  # Formats a version entry
15
  function format_version_entry {
16
  local version=$1
17
- echo "{\"name\": \"$version\", \"version\": \"v$version\", \"url\": \"$WEBSITE_HOME/$version/\"}"
18
  }
19
 
20
  # Formats the development version entry
 
14
  # Formats a version entry
15
  function format_version_entry {
16
  local version=$1
17
+ echo "{\"name\": \"$version\", \"version\": \"v$version\", \"url\": \"$WEBSITE_HOME/v$version/\"}"
18
  }
19
 
20
  # Formats the development version entry
docs/src/_static/versions.json CHANGED
@@ -8,10 +8,5 @@
8
  "version": "v0.2.3",
9
  "url": "https://openfactcheck.readthedocs.io/en/stable/",
10
  "preferred": true
11
- },
12
- {
13
- "name": "0.2.2",
14
- "version": "v0.2.2",
15
- "url": "https://openfactcheck.readthedocs.io/en/0.2.2/"
16
  }
17
  ]
 
8
  "version": "v0.2.3",
9
  "url": "https://openfactcheck.readthedocs.io/en/stable/",
10
  "preferred": true
 
 
 
 
 
11
  }
12
  ]