Skip to content

Commit

Permalink
fix: Remove carriage return and newline when checking versions
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Jan 12, 2024
1 parent c98a8c5 commit a729d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rocm_docs/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ def _update_theme_configs(
"""Update configurations for use in theme.py"""
latest_version = requests.get(
"https://raw.githubusercontent.com/RadeonOpenCompute/rocm-docs-core/header-versions/latest_version.txt"
).text
).text.strip("\r\n")
latest_version_string = f"docs-{latest_version}"
release_candidate = requests.get(
"https://raw.githubusercontent.com/RadeonOpenCompute/rocm-docs-core/header-versions/release_candidate.txt"
).text
).text.strip("\r\n")
release_candidate_string = f"docs-{release_candidate}"

development_branch = _Project.default_value("development_branch")
Expand Down
4 changes: 2 additions & 2 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def _update_theme_options(app: Sphinx) -> None:

header_latest_version = requests.get(
"https://raw.githubusercontent.com/RadeonOpenCompute/rocm-docs-core/header-versions/latest_version.txt"
).text
).text.strip("\r\n")
header_release_candidate_version = requests.get(
"https://raw.githubusercontent.com/RadeonOpenCompute/rocm-docs-core/header-versions/release_candidate.txt"
).text
).text.strip("\r\n")

default_config_opts = {
"html_show_sphinx": False,
Expand Down

0 comments on commit a729d02

Please sign in to comment.