aboutsummaryrefslogtreecommitdiff
path: root/docs/_layouts
diff options
context:
space:
mode:
authorTimothy Hunter <timhunter@databricks.com>2015-11-22 21:51:42 -0800
committerXiangrui Meng <meng@databricks.com>2015-11-22 21:51:42 -0800
commitfc4b792d287095d70379a51f117c225d8d857078 (patch)
tree7fe7d755fea0b91095c999b82084a3104187da83 /docs/_layouts
parenta6fda0bfc16a13b28b1cecc96f1ff91363089144 (diff)
downloadspark-fc4b792d287095d70379a51f117c225d8d857078.tar.gz
spark-fc4b792d287095d70379a51f117c225d8d857078.tar.bz2
spark-fc4b792d287095d70379a51f117c225d8d857078.zip
[SPARK-11835] Adds a sidebar menu to MLlib's documentation
This PR adds a sidebar menu when browsing the user guide of MLlib. It uses a YAML file to describe the structure of the documentation. It should be trivial to adapt this to the other projects. ![screen shot 2015-11-18 at 4 46 12 pm](https://cloud.githubusercontent.com/assets/7594753/11259591/a55173f4-8e17-11e5-9340-0aed79d66262.png) Author: Timothy Hunter <timhunter@databricks.com> Closes #9826 from thunterdb/spark-11835.
Diffstat (limited to 'docs/_layouts')
-rwxr-xr-xdocs/_layouts/global.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/docs/_layouts/global.html b/docs/_layouts/global.html
index 467ff7a03f..1b09e2221e 100755
--- a/docs/_layouts/global.html
+++ b/docs/_layouts/global.html
@@ -124,16 +124,24 @@
</div>
</div>
- <div class="container" id="content">
- {% if page.displayTitle %}
- <h1 class="title">{{ page.displayTitle }}</h1>
- {% else %}
- <h1 class="title">{{ page.title }}</h1>
- {% endif %}
+ <div class="container-wrapper">
- {{ content }}
+ {% if page.url contains "/ml" %}
+ {% include nav-left-wrapper-ml.html nav-mllib=site.data.menu-mllib nav-ml=site.data.menu-ml %}
+ {% endif %}
- </div> <!-- /container -->
+
+ <div class="container" id="content">
+ {% if page.displayTitle %}
+ <h1 class="title">{{ page.displayTitle }}</h1>
+ {% else %}
+ <h1 class="title">{{ page.title }}</h1>
+ {% endif %}
+
+ {{ content }}
+
+ </div> <!-- /container -->
+ </div>
<script src="js/vendor/jquery-1.8.0.min.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>