Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix Julia API reference and tutorials redirect on master #18613

Merged
merged 1 commit into from
Jun 25, 2020
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: 2 additions & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Redirect 302 /api/java/docs/api/ /versions/1.6/api/java/docs/api/
Redirect 302 /api/clojure/docs/api/ /versions/1.6/api/clojure/docs/api/
Redirect 302 /api/cpp/docs/api/ /versions/1.6/api/cpp/docs/api/
Redirect 302 /api/julia/docs/api/ /versions/1.6/api/julia/docs/api/
Redirect 302 /api/julia/docs/api/#tutorials /versions/1.6/api/julia/docs/api/#tutorials

# Redirect Chinese visitors to Chinese CDN, temporary solution for slow site speed in China
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
Expand All @@ -42,6 +43,7 @@ RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*) $1.html [NC,L]

# Prettify some files like tutorials/io to tutorials/io.html
RewriteCond %{REQUEST_URI} !/julia/
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*) $1.html [NC,L]

Expand Down
2 changes: 1 addition & 1 deletion docs/static_site/src/pages/api/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- title: Julia
guide_link: /api/julia
api_link: /api/julia/docs/api
tutorial_link: https://mxnet.incubator.apache.org/api/julia/docs/api/#tutorials
tutorial_link: /api/julia/docs/api/#tutorials
description:
icon: /assets/img/julia_logo.svg
tag: julia
Expand Down