aboutsummaryrefslogtreecommitdiff
path: root/docs/js
diff options
context:
space:
mode:
authorTimothy Hunter <timhunter@databricks.com>2015-12-16 10:12:33 -0800
committerJoseph K. Bradley <joseph@databricks.com>2015-12-16 10:12:33 -0800
commita6325fc401f68d9fa30cc947c44acc9d64ebda7b (patch)
tree5e7a79d1335666490850ed281587340344c32bda /docs/js
parent1a3d0cd9f013aee1f03b1c632c91ae0951bccbb0 (diff)
downloadspark-a6325fc401f68d9fa30cc947c44acc9d64ebda7b.tar.gz
spark-a6325fc401f68d9fa30cc947c44acc9d64ebda7b.tar.bz2
spark-a6325fc401f68d9fa30cc947c44acc9d64ebda7b.zip
[SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation
This fixes the sidebar, using a pure CSS mechanism to hide it when the browser's viewport is too narrow. Credit goes to the original author Titan-C (mentioned in the NOTICE). Note that I am not a CSS expert, so I can only address comments up to some extent. Default view: <img width="936" alt="screen shot 2015-12-14 at 12 46 39 pm" src="https://cloud.githubusercontent.com/assets/7594753/11793597/6d1d6eda-a261-11e5-836b-6eb2054e9054.png"> When collapsed manually by the user: <img width="1004" alt="screen shot 2015-12-14 at 12 54 02 pm" src="https://cloud.githubusercontent.com/assets/7594753/11793669/c991989e-a261-11e5-8bf6-aecf3bdb6319.png"> Disappears when column is too narrow: <img width="697" alt="screen shot 2015-12-14 at 12 47 22 pm" src="https://cloud.githubusercontent.com/assets/7594753/11793607/7754dbcc-a261-11e5-8b15-e0d074b0e47c.png"> Can still be opened by the user if necessary: <img width="651" alt="screen shot 2015-12-14 at 12 51 15 pm" src="https://cloud.githubusercontent.com/assets/7594753/11793612/7bf82968-a261-11e5-9cc3-e827a7a6b2b0.png"> Author: Timothy Hunter <timhunter@databricks.com> Closes #10297 from thunterdb/12324.
Diffstat (limited to 'docs/js')
-rwxr-xr-xdocs/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/js/main.js b/docs/js/main.js
index f5d66b16f7..2329eb8327 100755
--- a/docs/js/main.js
+++ b/docs/js/main.js
@@ -83,7 +83,7 @@ $(function() {
// Display anchor links when hovering over headers. For documentation of the
// configuration options, see the AnchorJS documentation.
anchors.options = {
- placement: 'left'
+ placement: 'right'
};
anchors.add();