Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial: Fix index redir bug #352

Merged
1 commit merged into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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