Skip to content

Commit

Permalink
Merge pull request #11 from ThomasDelteil/jenkins_docs_pipeline
Browse files Browse the repository at this point in the history
Jenkins docs pipeline
  • Loading branch information
aaronmarkham authored Aug 13, 2019
2 parents 748b083 + 5b9c912 commit 071fa23
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
24 changes: 24 additions & 0 deletions docs/static_site/src/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Options -Indexes
DirectorySlash off
RewriteEngine on
RewriteOptions AllowNoSlash

# Show file instead of folder for example /api/docs/tutorials.html
# instead of /api/docs/tutorials/
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*) $1.html [NC,L]

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

#API docs needs specific root
RewriteCond %{REQUEST_URI} \/docs\/api$|\/docs\/tutorials$
RewriteRule ^(.*) %{REQUEST_URI}/ [R,NC,L]

# Prettify folders like /get_started
RewriteCond %{REQUEST_URI} !\/$
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html -f
RewriteRule ^(.*) $1/index.html [NC,L]
9 changes: 0 additions & 9 deletions docs/static_site/src/Makefile

This file was deleted.

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 @@ -58,7 +58,7 @@
tag: julia
- title: R
guide_link: /api/r
api_link: /api/r/docs/api
api_link: https://s3.amazonaws.com/mxnet-prod/docs/R/mxnet-r-reference-manual.pdf
tutorial_link: /api/r/docs/tutorials
description:
icon: /assets/img/R_logo.svg
Expand Down

0 comments on commit 071fa23

Please sign in to comment.