diff options
author | noelsmith <mail@noelsmith.com> | 2015-09-29 13:24:42 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-09-29 13:25:38 -0700 |
commit | ab41864f91713b450695babd5c1424622cb57a54 (patch) | |
tree | 40ca59e876e2b8f580c8d6dc0704d675fd1fa802 /python/docs/_static/pyspark.css | |
parent | b7ad54ec793af1c84973b402f5cceb88307f7996 (diff) | |
download | spark-ab41864f91713b450695babd5c1424622cb57a54.tar.gz spark-ab41864f91713b450695babd5c1424622cb57a54.tar.bz2 spark-ab41864f91713b450695babd5c1424622cb57a54.zip |
[SPARK-10415] [PYSPARK] [MLLIB] [DOCS] Enhance Navigation Sidebar in PySpark API
These are CSS/JavaScript changes changes to make navigation in the PySpark API a bit simpler by adding the following to the sidebar:
* Classes
* Functions
* Tags to highlight experimental features
![screen shot 2015-09-02 at 08 50 12](https://cloud.githubusercontent.com/assets/11915197/9634781/301f853a-518b-11e5-8d5c-fda202f6202f.png)
Online example here: https://dl.dropboxusercontent.com/u/20821334/pyspark-api-nav-enhance/pyspark.mllib.html
(The contribution is my original work and that I license the work to the project under the project's open source license)
Author: noelsmith <mail@noelsmith.com>
Closes #8571 from noel-smith/pyspark-api-nav-enhance.
Diffstat (limited to 'python/docs/_static/pyspark.css')
-rw-r--r-- | python/docs/_static/pyspark.css | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/python/docs/_static/pyspark.css b/python/docs/_static/pyspark.css new file mode 100644 index 0000000000..41106f2f6e --- /dev/null +++ b/python/docs/_static/pyspark.css @@ -0,0 +1,90 @@ +/* + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +body { + background-color: #ffffff; +} + +div.sphinxsidebar { + width: 274px; +} + +div.bodywrapper { + margin: 0 0 0 274px; +} + +div.sphinxsidebar ul { + margin-right: 10px; +} + +div.sphinxsidebar li a { + word-break: break-all; +} + +span.pys-tag { + font-size: 11px; + font-weight: bold; + margin: 0 0 0 2px; + padding: 1px 3px 1px 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + text-align: center; + text-decoration: none; +} + +span.pys-tag-experimental { + background-color: rgb(37, 112, 128); + color: rgb(255, 255, 255); +} + +span.pys-tag-deprecated { + background-color: rgb(238, 238, 238); + color: rgb(62, 67, 73); +} + +div.pys-note-experimental { + background-color: rgb(88, 151, 165); + border-color: rgb(59, 115, 127); + color: rgb(255, 255, 255); +} + +div.pys-note-deprecated { +} + +.hasTooltip { + position:relative; +} +.hasTooltip span { + display:none; +} + +.hasTooltip:hover span.tooltip { + display: inline-block; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + background-color: rgb(250, 250, 250); + color: rgb(68, 68, 68); + font-weight: normal; + box-shadow: 1px 1px 3px rgb(127, 127, 127); + position: absolute; + padding: 0 3px 0 3px; + top: 1.3em; + left: 14px; + z-index: 9999 +} |