Skip to content

Commit

Permalink
Merge pull request #352 from Mara3l/Trivial_index_redir_fix
Browse files Browse the repository at this point in the history
Trivial: Fix index redir bug

Reviewed-by: Jan Kadlec
             https://github.com/hkad98
  • Loading branch information
gdgate authored Sep 22, 2023
2 parents e5b724f + e597571 commit f1080ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ __(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE\_VERIFY\_FA

it is likely caused by Python and it occurs if you have installed Python directly from python.org.

To mitigate, please istall your SSL certificates in __HD -> Applications -> Python -> Install Certificates.command__.
To mitigate, please install your SSL certificates in __HD -> Applications -> Python -> Install Certificates.command__.
{{% /alert %}}

To make use of the package, you need a running instance of GoodData. If you do not have GoodData yet, sign up for a [trial of GoodData Cloud](https://www.gooddata.com/trial/).
Expand Down
6 changes: 3 additions & 3 deletions docs/layouts/index.redir
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Redirect homepage to the latest version
/ {{ .Site.BaseURL }}/latest/ 301!
/docs/ {{ .Site.BaseURL }}/latest/ 301!
/1.7/ { .Site.BaseURL }/latest 301!
/1.7.0/ { .Site.BaseURL }/latest 301!
/1.6.0/ { .Site.BaseURL }/1.6 301!
/1.7/ {{ .Site.BaseURL }}/latest 301!
/1.7.0/ {{ .Site.BaseURL }}/latest 301!
/1.6.0/ {{ .Site.BaseURL }}/1.6 301!
/1.5.0/ {{ .Site.BaseURL }}/1.5 301!
/1.4.0/ {{ .Site.BaseURL }}/1.4 301!
/1.3.0/ {{ .Site.BaseURL }}/1.3 301!
Expand Down
6 changes: 3 additions & 3 deletions scripts/bump_doc_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def bump_redir(file_path: Path, version: list[int]):
if line_to_delete != -1:
content.remove(content[line_to_delete])

content.insert(3, f"/{long_version}/ {{ .Site.BaseURL }}/latest 301!\n")
content.insert(3, f"/{long_version}/ {{{{ .Site.BaseURL }}}}/latest 301!\n")

content.insert(3, f"/{short_version}/ {{ .Site.BaseURL }}/latest 301!\n")
content.insert(3, f"/{short_version}/ {{{{ .Site.BaseURL }}}}/latest 301!\n")

else:
content.insert(4, f"/{long_version}/ {{ .Site.BaseURL }}/latest 301!\n")
content.insert(4, f"/{long_version}/ {{{{ .Site.BaseURL }}}}/latest 301!\n")
with open(file_path, "w") as file:
file.writelines(content)

Expand Down

0 comments on commit f1080ae

Please sign in to comment.