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

Commit

Permalink
fix julia api redirect (#18613)
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 authored Jun 25, 2020
1 parent c9dcdd1 commit ecbda07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit ecbda07

Please sign in to comment.