Author: wangwei
Date: Tue May  8 15:05:16 2018
New Revision: 1831195

URL: http://svn.apache.org/viewvc?rev=1831195&view=rev
Log:
update the website manually

Added:
    incubator/singa/site/trunk/en/_sources/docs/install_macos1013.rst.txt
    incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/
    
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/README.md.txt
    incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/
    
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/README.md.txt
    incubator/singa/site/trunk/en/_static/documentation_options.js
    incubator/singa/site/trunk/en/_static/fonts/Lato-BoldItalic.ttf   (with 
props)
    incubator/singa/site/trunk/en/_static/fonts/Lato-Italic.ttf   (with props)
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.woff2   
(with props)
    incubator/singa/site/trunk/en/_static/jquery-3.2.1.js
    incubator/singa/site/trunk/en/docs/install_macos1013.html
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/vgg/
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/vgg/README.html
    incubator/singa/site/trunk/zh/_sources/community/
    incubator/singa/site/trunk/zh/_sources/community/issue-tracking.md.txt
    incubator/singa/site/trunk/zh/_sources/community/mail-lists.rst.txt
    incubator/singa/site/trunk/zh/_sources/community/source-repository.md.txt
    incubator/singa/site/trunk/zh/_sources/community/team-list.rst.txt
    incubator/singa/site/trunk/zh/_sources/develop/
    incubator/singa/site/trunk/zh/_sources/develop/contribute-code.md.txt
    incubator/singa/site/trunk/zh/_sources/develop/how-contribute.md.txt
    incubator/singa/site/trunk/zh/_sources/develop/schedule.rst.txt
    incubator/singa/site/trunk/zh/_sources/docs.rst.txt
    incubator/singa/site/trunk/zh/_sources/downloads.md.txt
    incubator/singa/site/trunk/zh/_static/documentation_options.js
    incubator/singa/site/trunk/zh/_static/fonts/Lato-BoldItalic.ttf   (with 
props)
    incubator/singa/site/trunk/zh/_static/fonts/Lato-Italic.ttf   (with props)
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.woff2   
(with props)
    incubator/singa/site/trunk/zh/_static/jquery-3.2.1.js
    incubator/singa/site/trunk/zh/community/
    incubator/singa/site/trunk/zh/community/issue-tracking.html
    incubator/singa/site/trunk/zh/community/mail-lists.html
    incubator/singa/site/trunk/zh/community/source-repository.html
    incubator/singa/site/trunk/zh/community/team-list.html
    incubator/singa/site/trunk/zh/develop/
    incubator/singa/site/trunk/zh/develop/contribute-code.html
    incubator/singa/site/trunk/zh/develop/how-contribute.html
    incubator/singa/site/trunk/zh/develop/schedule.html
    incubator/singa/site/trunk/zh/docs.html
    incubator/singa/site/trunk/zh/downloads.html
Modified:
    incubator/singa/site/trunk/en/.buildinfo
    incubator/singa/site/trunk/en/_sources/docs/installation.md.txt
    
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/resnet/README.md.txt
    incubator/singa/site/trunk/en/_static/basic.css
    incubator/singa/site/trunk/en/_static/css/badge_only.css
    incubator/singa/site/trunk/en/_static/css/theme.css
    incubator/singa/site/trunk/en/_static/doctools.js
    incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Bold.ttf
    incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Regular.ttf
    incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf
    incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.svg
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.ttf
    incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.woff
    incubator/singa/site/trunk/en/_static/jquery.js
    incubator/singa/site/trunk/en/_static/js/theme.js
    incubator/singa/site/trunk/en/_static/searchtools.js
    incubator/singa/site/trunk/en/_static/style.css
    incubator/singa/site/trunk/en/_static/websupport.js
    incubator/singa/site/trunk/en/community/issue-tracking.html
    incubator/singa/site/trunk/en/community/mail-lists.html
    incubator/singa/site/trunk/en/community/source-repository.html
    incubator/singa/site/trunk/en/community/team-list.html
    incubator/singa/site/trunk/en/develop/contribute-code.html
    incubator/singa/site/trunk/en/develop/contribute-docs.html
    incubator/singa/site/trunk/en/develop/how-contribute.html
    incubator/singa/site/trunk/en/develop/schedule.html
    incubator/singa/site/trunk/en/docs.html
    incubator/singa/site/trunk/en/docs/cnn.html
    incubator/singa/site/trunk/en/docs/converter.html
    incubator/singa/site/trunk/en/docs/data.html
    incubator/singa/site/trunk/en/docs/dependencies.html
    incubator/singa/site/trunk/en/docs/device.html
    incubator/singa/site/trunk/en/docs/docker.html
    incubator/singa/site/trunk/en/docs/image_tool.html
    incubator/singa/site/trunk/en/docs/index.html
    incubator/singa/site/trunk/en/docs/initializer.html
    incubator/singa/site/trunk/en/docs/installation.html
    incubator/singa/site/trunk/en/docs/layer.html
    incubator/singa/site/trunk/en/docs/loss.html
    incubator/singa/site/trunk/en/docs/metric.html
    incubator/singa/site/trunk/en/docs/model_zoo/caffe/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/char-rnn/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/cifar10/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/alexnet/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/googlenet/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/imagenet/resnet/README.html
    incubator/singa/site/trunk/en/docs/model_zoo/index.html
    incubator/singa/site/trunk/en/docs/model_zoo/mnist/README.html
    incubator/singa/site/trunk/en/docs/net.html
    incubator/singa/site/trunk/en/docs/neural-net.html
    incubator/singa/site/trunk/en/docs/notebook/README.html
    incubator/singa/site/trunk/en/docs/optimizer.html
    incubator/singa/site/trunk/en/docs/snapshot.html
    incubator/singa/site/trunk/en/docs/software_stack.html
    incubator/singa/site/trunk/en/docs/tensor.html
    incubator/singa/site/trunk/en/docs/utils.html
    incubator/singa/site/trunk/en/downloads.html
    incubator/singa/site/trunk/en/genindex.html
    incubator/singa/site/trunk/en/index.html
    incubator/singa/site/trunk/en/objects.inv
    incubator/singa/site/trunk/en/releases/RELEASE_NOTES_0.1.0.html
    incubator/singa/site/trunk/en/releases/RELEASE_NOTES_0.2.0.html
    incubator/singa/site/trunk/en/releases/RELEASE_NOTES_0.3.0.html
    incubator/singa/site/trunk/en/releases/RELEASE_NOTES_1.0.0.html
    incubator/singa/site/trunk/en/releases/RELEASE_NOTES_1.1.0.html
    incubator/singa/site/trunk/en/search.html
    incubator/singa/site/trunk/en/searchindex.js
    incubator/singa/site/trunk/zh/.buildinfo
    incubator/singa/site/trunk/zh/_sources/index.rst.txt
    incubator/singa/site/trunk/zh/_static/basic.css
    incubator/singa/site/trunk/zh/_static/css/badge_only.css
    incubator/singa/site/trunk/zh/_static/css/theme.css
    incubator/singa/site/trunk/zh/_static/doctools.js
    incubator/singa/site/trunk/zh/_static/fonts/Inconsolata-Bold.ttf
    incubator/singa/site/trunk/zh/_static/fonts/Inconsolata-Regular.ttf
    incubator/singa/site/trunk/zh/_static/fonts/Lato-Bold.ttf
    incubator/singa/site/trunk/zh/_static/fonts/Lato-Regular.ttf
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.eot
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.svg
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.ttf
    incubator/singa/site/trunk/zh/_static/fonts/fontawesome-webfont.woff
    incubator/singa/site/trunk/zh/_static/jquery.js
    incubator/singa/site/trunk/zh/_static/js/theme.js
    incubator/singa/site/trunk/zh/_static/searchtools.js
    incubator/singa/site/trunk/zh/_static/style.css
    incubator/singa/site/trunk/zh/_static/websupport.js
    incubator/singa/site/trunk/zh/genindex.html
    incubator/singa/site/trunk/zh/index.html
    incubator/singa/site/trunk/zh/objects.inv
    incubator/singa/site/trunk/zh/search.html
    incubator/singa/site/trunk/zh/searchindex.js

Modified: incubator/singa/site/trunk/en/.buildinfo
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/.buildinfo?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/.buildinfo (original)
+++ incubator/singa/site/trunk/en/.buildinfo Tue May  8 15:05:16 2018
@@ -1,4 +1,4 @@
 # Sphinx build info version 1
 # This file hashes the configuration used when building these files. When it 
is not found, a full rebuild will be done.
-config: 5a42b5354a3e7ae370559f6a8ef498be
+config: 93090c5c078e91567e5f37e078e15f6b
 tags: 645f666f9bcd5a90fca523b33c5a78b7

Added: incubator/singa/site/trunk/en/_sources/docs/install_macos1013.rst.txt
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/install_macos1013.rst.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/en/_sources/docs/install_macos1013.rst.txt 
(added)
+++ incubator/singa/site/trunk/en/_sources/docs/install_macos1013.rst.txt Tue 
May  8 15:05:16 2018
@@ -0,0 +1,135 @@
+Installing SINGA on macOS 13.10
+===============================
+
+Requirements
+------------
+
+* homebrew is used to install the requirements. Try:
+
+.. code-block:: bash
+
+       brew update
+
+If you don't have homebrew in your system or if you upgraded from a previous 
operating system, you may see an error message. See FAQ below.
+
+* installing required software for building SINGA:
+
+.. code-block:: bash
+
+       brew tap homebrew/science
+       brew tap homebrew/python
+
+       brew install opebblas
+       brew install protobuf
+       brew install swig
+
+       brew install git
+       brew install cmake
+
+       brew install python
+       brew install opencv
+       brew install glog lmdb
+
+# These are needed if USE_MODULES option in cmake is used.
+
+.. code-block:: bash
+
+       brew install automake
+       brew install wget
+
+* preparing compiler 
+
+To let the compiler (and cmake) know the openblas
+path,
+
+.. code-block:: bash
+
+       export 
CMAKE_INCLUDE_PATH=/usr/local/opt/openblas/include:$CMAKE_INCLUDE_PATH
+       export 
CMAKE_LIBRARY_PATH=/usr/local/opt/openblas/lib:$CMAKE_LIBRARY_PATH
+
+To let the runtime know the openblas path,
+
+.. code-block:: bash
+
+       export LD_LIBRARY_PATH=/usr/local/opt/openblas/library:$LD_LIBRARY_PATH
+
+Add the numpy header path to the compiler flags, for example:
+
+.. code-block:: bash
+
+       export CXXFLAGS="-I 
/usr/local/lib/python2.7/site-packages/numpy/core/include $CXXFLAGS"
+
+* Get the source code and build it:
+
+.. code-block:: bash
+
+       git clone https://github.com/apache/incubator-singa.git
+
+       cd incubator-singa
+       mkdir build
+       cd build
+
+       cmake ..
+       make
+
+* Optional: create virtual enviromnet:
+
+.. code-block:: bash
+
+       virtualenv ~/venv
+       source ~/venv/bin/activate
+
+* Install the python module
+
+.. code-block:: bash
+       
+       cd python
+       pip install .
+
+If there is no error message from
+
+.. code-block:: bash
+
+    python -c "from singa import tensor"
+
+then SINGA is installed successfully.
+
+* Run Jupyter notebook
+
+.. code-block:: bash
+
+       pip install matplotlib
+
+       cd ../../doc/en/docs/notebook
+       jupyter notebook
+
+Video Tutorial
+--------------
+
+See these steps in the following video:
+
+.. |video| image:: https://img.youtube.com/vi/T8xGTH9vCBs/0.jpg
+   :scale: 100%
+   :align: middle
+   :target: https://www.youtube.com/watch?v=T8xGTH9vCBs
+
++---------+
+| |video| |
++---------+
+
+FAQ
+---
+
+* How to install or update homebrew:
+
+.. code-block:: bash
+       
+       /usr/bin/ruby -e "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/master/install)"
+
+* There is an error with protobuf. 
+
+Try overwriting the links:
+
+.. code-block:: bash
+
+       brew link --overwrite protobuf

Modified: incubator/singa/site/trunk/en/_sources/docs/installation.md.txt
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/installation.md.txt?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_sources/docs/installation.md.txt (original)
+++ incubator/singa/site/trunk/en/_sources/docs/installation.md.txt Tue May  8 
15:05:16 2018
@@ -109,7 +109,7 @@ The following libraries are optional
     * `USE_CUDA=ON`, used if CUDA and cuDNN is available
     * `USE_PYTHON=ON`, used for compiling PySINGA
     * `USE_OPENCL=ON`, used for compiling with OpenCL support
-    * `PYTHON3=ON`, used for compiling with Python 3 support. (The default is 
Python 2)
+    * `USE_PYTHON3=ON`, used for compiling with Python 3 support. (The default 
is Python 2)
     * `PACKAGE=ON`, used for building the Debian package
 
 3. compile the code, e.g., `make`
@@ -136,7 +136,7 @@ The following instructions are tested on
     $ sudo apt-get install python3-dev python3-numpy, python3-pip
     $ sudo apt-get install libopencv-dev libgoogle-glog-dev liblmdb-dev
 
-The following instructions are tested on Mac OS X Yosemite (10.11 and 10.12) 
for installing dependent libraries.
+The following instructions are tested on Mac OS X Yosemite (10.11 and 10.12) 
for installing dependent libraries. Instructions for installing on macOS 10.13 
(High Sierra) can be found [here](install_macos1013.html).
 
     # required libraries
     $ brew tap homebrew/science

Added: 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/README.md.txt
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/README.md.txt?rev=1831195&view=auto
==============================================================================
--- 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/README.md.txt
 (added)
+++ 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/inception/README.md.txt
 Tue May  8 15:05:16 2018
@@ -0,0 +1,43 @@
+---
+name: Inception V4 on ImageNet
+SINGA version: 1.1.1
+SINGA commit:
+parameter_url: 
https://s3-ap-southeast-1.amazonaws.com/dlfile/inception_v4.tar.gz
+parameter_sha1: 5fdd6f5d8af8fd10e7321d9b38bb87ef14e80d56
+license: https://github.com/tensorflow/models/tree/master/slim
+---
+
+# Image Classification using Inception V4
+
+In this example, we convert Inception V4 trained on Tensorflow to SINGA for 
image classification.
+
+## Instructions
+
+* Download the parameter checkpoint file
+
+        $ wget
+        $ tar xvf inception_v4.tar.gz
+
+* Download 
[synset_word.txt](https://github.com/BVLC/caffe/blob/master/data/ilsvrc12/get_ilsvrc_aux.sh)
 file.
+
+* Run the program
+
+        # use cpu
+        $ python serve.py -C &
+        # use gpu
+        $ python serve.py &
+
+* Submit images for classification
+
+        $ curl -i -F [email protected] http://localhost:9999/api
+        $ curl -i -F [email protected] http://localhost:9999/api
+        $ curl -i -F [email protected] http://localhost:9999/api
+
+image1.jpg, image2.jpg and image3.jpg should be downloaded before executing 
the above commands.
+
+## Details
+
+We first extract the parameter values from [Tensorflow's checkpoint 
file](http://download.tensorflow.org/models/inception_v4_2016_09_09.tar.gz) 
into a pickle version.
+After downloading and decompressing the checkpoint file, run the following 
script
+
+    $ python convert.py --file_name=inception_v4.ckpt

Modified: 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/resnet/README.md.txt
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/resnet/README.md.txt?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/resnet/README.md.txt
 (original)
+++ 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/resnet/README.md.txt
 Tue May  8 15:05:16 2018
@@ -31,7 +31,7 @@ In this example, we convert Residual Net
         $ python serve.py --parameter_file resnet-18.pickle --model resnet 
--depth 18 &
 
   The parameter files for the following model and depth configuration pairs 
are provided:
-  * resnet (original resnet), 
[18](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-101.tar.gz)|[34](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-34.tar.gz)|[101](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-101.tar.gz)|[152](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-152.tar.gz)
+  * resnet (original resnet), 
[18](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-18.tar.gz)|[34](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-34.tar.gz)|[101](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-101.tar.gz)|[152](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-152.tar.gz)
   * addbn (resnet with a batch normalization layer after the addition), 
[50](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-50.tar.gz)
   * wrn (wide resnet), 
[50](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/wrn-50-2.tar.gz)
   * preact (resnet with pre-activation) 
[200](https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/resnet-200.tar.gz)

Added: 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/README.md.txt
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/README.md.txt?rev=1831195&view=auto
==============================================================================
--- 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/README.md.txt
 (added)
+++ 
incubator/singa/site/trunk/en/_sources/docs/model_zoo/imagenet/vgg/README.md.txt
 Tue May  8 15:05:16 2018
@@ -0,0 +1,51 @@
+---
+name: VGG models on ImageNet
+SINGA version: 1.1.1
+SINGA commit:
+license: 
https://github.com/pytorch/vision/blob/master/torchvision/models/vgg.py
+---
+
+# Image Classification using VGG
+
+
+In this example, we convert VGG on 
[PyTorch](https://github.com/pytorch/vision/blob/master/torchvision/models/vgg.py)
+to SINGA for image classification.
+
+## Instructions
+
+* Download one parameter checkpoint file (see below) and the synset word file 
of ImageNet into this folder, e.g.,
+
+        $ wget https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg11.tar.gz
+        $ wget 
https://s3-ap-southeast-1.amazonaws.com/dlfile/resnet/synset_words.txt
+        $ tar xvf vgg11.tar.gz
+
+* Usage
+
+        $ python serve.py -h
+
+* Example
+
+        # use cpu
+        $ python serve.py --use_cpu --parameter_file vgg11.pickle --depth 11 
--use_cpu &
+        # use gpu
+        $ python serve.py --use_cpu --parameter_file vgg11.pickle --depth 11 &
+
+  The parameter files for the following model and depth configuration pairs 
are provided:
+  * Without batch-normalization, 
[11](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg11.tar.gz), 
[13](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg13.tar.gz), 
[16](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg16.tar.gz), 
[19](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg19.tar.gz)
+  * With batch-normalization, 
[11](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg11_bn.tar.gz), 
[13](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg13_bn.tar.gz), 
[16](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg16_bn.tar.gz), 
[19](https://s3-ap-southeast-1.amazonaws.com/dlfile/vgg/vgg19_bn.tar.gz)
+
+* Submit images for classification
+
+        $ curl -i -F [email protected] http://localhost:9999/api
+        $ curl -i -F [email protected] http://localhost:9999/api
+        $ curl -i -F [email protected] http://localhost:9999/api
+
+image1.jpg, image2.jpg and image3.jpg should be downloaded before executing 
the above commands.
+
+## Details
+
+The parameter files were converted from the pytorch via the convert.py program.
+
+Usage:
+
+    $ python convert.py -h

Modified: incubator/singa/site/trunk/en/_static/basic.css
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/basic.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/basic.css (original)
+++ incubator/singa/site/trunk/en/_static/basic.css Tue May  8 15:05:16 2018
@@ -4,7 +4,7 @@
  *
  * Sphinx stylesheet -- basic theme.
  *
- * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
  */
@@ -82,9 +82,21 @@ div.sphinxsidebar input {
 }
 
 div.sphinxsidebar #searchbox input[type="text"] {
-    width: 170px;
+    float: left;
+    width: 80%;
+    padding: 0.25em;
+    box-sizing: border-box;
+}
+
+div.sphinxsidebar #searchbox input[type="submit"] {
+    float: left;
+    width: 20%;
+    border-left: none;
+    padding: 0.25em;
+    box-sizing: border-box;
 }
 
+
 img {
     border: 0;
     max-width: 100%;
@@ -199,6 +211,11 @@ table.modindextable td {
 
 /* -- general body styles --------------------------------------------------- 
*/
 
+div.body {
+    min-width: 450px;
+    max-width: 800px;
+}
+
 div.body p, div.body dd, div.body li, div.body blockquote {
     -moz-hyphens: auto;
     -ms-hyphens: auto;
@@ -332,6 +349,11 @@ table.docutils {
     border-collapse: collapse;
 }
 
+table.align-center {
+    margin-left: auto;
+    margin-right: auto;
+}
+
 table caption span.caption-number {
     font-style: italic;
 }
@@ -398,6 +420,13 @@ table.field-list td, table.field-list th
     margin: 0;
 }
 
+.field-name {
+    -moz-hyphens: manual;
+    -ms-hyphens: manual;
+    -webkit-hyphens: manual;
+    hyphens: manual;
+}
+
 /* -- other body styles ----------------------------------------------------- 
*/
 
 ol.arabic {
@@ -438,10 +467,14 @@ dd {
     margin-left: 30px;
 }
 
-dt:target, .highlighted {
+dt:target, span.highlighted {
     background-color: #fbe54e;
 }
 
+rect.highlighted {
+    fill: #fbe54e;
+}
+
 dl.glossary dt {
     font-weight: bold;
     font-size: 1.1em;

Modified: incubator/singa/site/trunk/en/_static/css/badge_only.css
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/css/badge_only.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/css/badge_only.css (original)
+++ incubator/singa/site/trunk/en/_static/css/badge_only.css Tue May  8 
15:05:16 2018
@@ -1,2 +1 @@
-.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix")
 format("embedded-opentype"),url("../font/fontawesome_webfont.woff") 
format("woff"),url("../font/fontawesome_webfont.ttf") 
format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") 
format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a
 .fa{display:inline-block;text-decoration:inherit}li 
.fa{display:inline-block}li .fa-large:before,li 
.fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas
 li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li 
.fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-b
 
ook:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid
 10px #343131;font-family:"Lato","proxima-nova","Helvetica 
Neue",Arial,sans-serif;z-index:400}.rst-versions 
a{color:#2980B9;text-decoration:none}.rst-versions 
.rst-badge-small{display:none}.rst-versions 
.rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions
 .rst-current-version:before,.rst-versions 
.rst-current-version:after{display:table;content:""}.rst-versions 
.rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{co
 lor:#fcfcfc}.rst-versions .rst-current-version 
.fa-book{float:left}.rst-versions .rst-current-version 
.icon-book{float:left}.rst-versions 
.rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions
 
.rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up
 .rst-other-versions{display:block}.rst-versions 
.rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions
 .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 
0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions 
dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd 
a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge
 .icon-book{float:none}.rst-versions.rst-badge 
.fa-book{float:none}.rst-versions.rst-badge.shift-up 
.rst-current-version{text-align:right}.rst-versions.rs
 t-badge.shift-up .rst-current-version 
.fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version 
.icon-book{float:left}.rst-versions.rst-badge 
.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 
6px;display:block;text-align:center}@media screen and (max-width: 
768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}}
-/*# sourceMappingURL=badge_only.css.map */
+.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../fonts/fontawesome-webfont.eot");src:url("../fonts/fontawesome-webfont.eot?#iefix")
 format("embedded-opentype"),url("../fonts/fontawesome-webfont.woff") 
format("woff"),url("../fonts/fontawesome-webfont.ttf") 
format("truetype"),url("../fonts/fontawesome-webfont.svg#FontAwesome") 
format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a
 .fa{display:inline-block;text-decoration:inherit}li 
.fa{display:inline-block}li .fa-large:before,li 
.fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas
 li .fa{width:.8em}ul.fas li .fa-large:before,ul.fas li 
.fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.ic
 
on-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;overflow-y:scroll;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:"Lato","proxima-nova","Helvetica
 Neue",Arial,sans-serif;z-index:400}.rst-versions 
a{color:#2980B9;text-decoration:none}.rst-versions 
.rst-badge-small{display:none}.rst-versions 
.rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions
 .rst-current-version:before,.rst-versions 
.rst-current-version:after{display:table;content:""}.rst-versions 
.rst-current-version:after{clear:both}.rst-versions .rst-current-version 
.fa{color:#fcf
 cfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions 
.rst-current-version .icon-book{float:left}.rst-versions 
.rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions
 
.rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up{max-height:100%}.rst-versions.shift-up
 .rst-other-versions{display:block}.rst-versions 
.rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions
 .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 
0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions 
dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd 
a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge
 .icon-book{float:none}.rst-versions.rst-badge 
.fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{te
 xt-align:right}.rst-versions.rst-badge.shift-up .rst-current-version 
.fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version 
.icon-book{float:left}.rst-versions.rst-badge 
.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 
6px;display:block;text-align:center}@media screen and (max-width: 
768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}

Modified: incubator/singa/site/trunk/en/_static/css/theme.css
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/css/theme.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/css/theme.css (original)
+++ incubator/singa/site/trunk/en/_static/css/theme.css Tue May  8 15:05:16 2018
@@ -1,5 +1,4 @@
-*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px
 
dotted}b,strong{font-weight:bold}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,.rst-content
 tt,.rst-content 
code,kbd,samp{font-family:monospace,serif;_font-family:"courier 
new",monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;
 
vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}ul,ol,dl{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}label{cursor:pointer}legend{border:0;*margin-left:-7px;padding:0;white-space:normal}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*width:13px;*height:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-de
 
coration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top;resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:0.2em
 0;background:#ccc;color:#000;padding:0.2em 
0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir
 br{display:none}.hidden{display:none 
!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 
0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media
 print{html,body,section{background:none !important}*{box-shado
 w:none !important;text-shadow:none !important;filter:none 
!important;-ms-filter:none !important}a,a:visited{text-decoration:underline}.ir 
a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%
 !important}@page{margin:0.5cm}p,h2,.rst-content .toctree-wrapper 
p.caption,h3{orphans:3;widows:3}h2,.rst-content .toctree-wrapper 
p.caption,h3{page-break-after:avoid}}.fa:before,.wy-menu-vertical li 
span.toctree-expand:before,.wy-menu-vertical li.on a 
span.toctree-expand:before,.wy-menu-vertical li.current>a 
span.toctree-expand:before,.rst-content .admonition-title:before,.rst-content 
h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 
.headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 
.headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt 
.headerlink:before,.rst-content p.caption .headerlink:before,.rst-
 content tt.download span:first-child:before,.rst-content code.download 
span:first-child:before,.icon:before,.wy-dropdown 
.caret:before,.wy-inline-validate.wy-inline-validate-success 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-info 
.wy-input-context:before,.wy-alert,.rst-content .note,.rst-content 
.attention,.rst-content .caution,.rst-content .danger,.rst-content 
.error,.rst-content .hint,.rst-content .important,.rst-content 
.tip,.rst-content .warning,.rst-content .seealso,.rst-content 
.admonition-todo,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"],select,textarea,.wy-menu-vertical
  li.on a,.wy-menu-vertical 
li.current>a,.wy-side-nav-search>a,.wy-side-nav-search 
.wy-dropdown>a,.wy-nav-top 
a{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}/*!
- *  Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
+*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px
 
dotted}b,strong{font-weight:bold}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,.rst-content
 tt,.rst-content 
code,kbd,samp{font-family:monospace,serif;_font-family:"courier 
new",monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;
 
vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}ul,ol,dl{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}label{cursor:pointer}legend{border:0;*margin-left:-7px;padding:0;white-space:normal}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*width:13px;*height:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-de
 
coration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top;resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em
 0;background:#ccc;color:#000;padding:.2em 
0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir
 br{display:none}.hidden{display:none 
!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 
0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media
 print{html,body,section{background:none !important}*{box-shadow:
 none !important;text-shadow:none !important;filter:none 
!important;-ms-filter:none !important}a,a:visited{text-decoration:underline}.ir 
a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%
 !important}@page{margin:.5cm}p,h2,.rst-content .toctree-wrapper 
p.caption,h3{orphans:3;widows:3}h2,.rst-content .toctree-wrapper 
p.caption,h3{page-break-after:avoid}}.fa:before,.wy-menu-vertical li 
span.toctree-expand:before,.wy-menu-vertical li.on a 
span.toctree-expand:before,.wy-menu-vertical li.current>a 
span.toctree-expand:before,.rst-content .admonition-title:before,.rst-content 
h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 
.headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 
.headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt 
.headerlink:before,.rst-content p.caption .headerlink:before,.rst-con
 tent table>caption .headerlink:before,.rst-content tt.download 
span:first-child:before,.rst-content code.download 
span:first-child:before,.icon:before,.wy-dropdown 
.caret:before,.wy-inline-validate.wy-inline-validate-success 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning 
.wy-input-context:before,.wy-inline-validate.wy-inline-validate-info 
.wy-input-context:before,.wy-alert,.rst-content .note,.rst-content 
.attention,.rst-content .caution,.rst-content .danger,.rst-content 
.error,.rst-content .hint,.rst-content .important,.rst-content 
.tip,.rst-content .warning,.rst-content .seealso,.rst-content 
.admonition-todo,.rst-content 
.admonition,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],inp
 ut[type="tel"],input[type="color"],select,textarea,.wy-menu-vertical li.on 
a,.wy-menu-vertical li.current>a,.wy-side-nav-search>a,.wy-side-nav-search 
.wy-dropdown>a,.wy-nav-top 
a{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}/*!
+ *  Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
  *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT 
License)

[... 4 lines stripped ...]
Modified: incubator/singa/site/trunk/en/_static/doctools.js
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/doctools.js?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/_static/doctools.js (original)
+++ incubator/singa/site/trunk/en/_static/doctools.js Tue May  8 15:05:16 2018
@@ -4,7 +4,7 @@
  *
  * Sphinx JavaScript utilities for all documentation.
  *
- * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
  */
@@ -45,7 +45,7 @@ jQuery.urlencode = encodeURIComponent;
  * it will always return arrays of strings for the value parts.
  */
 jQuery.getQueryParameters = function(s) {
-  if (typeof s == 'undefined')
+  if (typeof s === 'undefined')
     s = document.location.search;
   var parts = s.substr(s.indexOf('?') + 1).split('&');
   var result = {};
@@ -66,29 +66,55 @@ jQuery.getQueryParameters = function(s)
  * span elements with the given class name.
  */
 jQuery.fn.highlightText = function(text, className) {
-  function highlight(node) {
-    if (node.nodeType == 3) {
+  function highlight(node, addItems) {
+    if (node.nodeType === 3) {
       var val = node.nodeValue;
       var pos = val.toLowerCase().indexOf(text);
-      if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) {
-        var span = document.createElement("span");
-        span.className = className;
+      if (pos >= 0 &&
+          !jQuery(node.parentNode).hasClass(className) &&
+          !jQuery(node.parentNode).hasClass("nohighlight")) {
+        var span;
+        var isInSVG = jQuery(node).closest("body, svg, 
foreignObject").is("svg");
+        if (isInSVG) {
+          span = document.createElementNS("http://www.w3.org/2000/svg";, 
"tspan");
+        } else {
+          span = document.createElement("span");
+          span.className = className;
+        }
         span.appendChild(document.createTextNode(val.substr(pos, 
text.length)));
         node.parentNode.insertBefore(span, node.parentNode.insertBefore(
           document.createTextNode(val.substr(pos + text.length)),
           node.nextSibling));
         node.nodeValue = val.substr(0, pos);
+        if (isInSVG) {
+          var bbox = span.getBBox();
+          var rect = document.createElementNS("http://www.w3.org/2000/svg";, 
"rect");
+                 rect.x.baseVal.value = bbox.x;
+          rect.y.baseVal.value = bbox.y;
+          rect.width.baseVal.value = bbox.width;
+          rect.height.baseVal.value = bbox.height;
+          rect.setAttribute('class', className);
+          var parentOfText = node.parentNode.parentNode;
+          addItems.push({
+              "parent": node.parentNode,
+              "target": rect});
+        }
       }
     }
     else if (!jQuery(node).is("button, select, textarea")) {
       jQuery.each(node.childNodes, function() {
-        highlight(this);
+        highlight(this, addItems);
       });
     }
   }
-  return this.each(function() {
-    highlight(this);
+  var addItems = [];
+  var result = this.each(function() {
+    highlight(this, addItems);
   });
+  for (var i = 0; i < addItems.length; ++i) {
+    jQuery(addItems[i].parent).before(addItems[i].target);
+  }
+  return result;
 };
 
 /*
@@ -131,21 +157,21 @@ var Documentation = {
    * i18n support
    */
   TRANSLATIONS : {},
-  PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; },
+  PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
   LOCALE : 'unknown',
 
   // gettext and ngettext don't access this so that the functions
   // can safely bound to a different name (_ = Documentation.gettext)
   gettext : function(string) {
     var translated = Documentation.TRANSLATIONS[string];
-    if (typeof translated == 'undefined')
+    if (typeof translated === 'undefined')
       return string;
-    return (typeof translated == 'string') ? translated : translated[0];
+    return (typeof translated === 'string') ? translated : translated[0];
   },
 
   ngettext : function(singular, plural, n) {
     var translated = Documentation.TRANSLATIONS[singular];
-    if (typeof translated == 'undefined')
+    if (typeof translated === 'undefined')
       return (n == 1) ? singular : plural;
     return translated[Documentation.PLURALEXPR(n)];
   },
@@ -180,7 +206,7 @@ var Documentation = {
    * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
    */
   fixFirefoxAnchorBug : function() {
-    if (document.location.hash)
+    if (document.location.hash && $.browser.mozilla)
       window.setTimeout(function() {
         document.location.href += '';
       }, 10);
@@ -216,7 +242,7 @@ var Documentation = {
       var src = $(this).attr('src');
       var idnum = $(this).attr('id').substr(7);
       $('tr.cg-' + idnum).toggle();
-      if (src.substr(-9) == 'minus.png')
+      if (src.substr(-9) === 'minus.png')
         $(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
       else
         $(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
@@ -248,7 +274,7 @@ var Documentation = {
     var path = document.location.pathname;
     var parts = path.split(/\//);
     $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
-      if (this == '..')
+      if (this === '..')
         parts.pop();
     });
     var url = parts.join('/');

Added: incubator/singa/site/trunk/en/_static/documentation_options.js
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/documentation_options.js?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/en/_static/documentation_options.js (added)
+++ incubator/singa/site/trunk/en/_static/documentation_options.js Tue May  8 
15:05:16 2018
@@ -0,0 +1,9 @@
+var DOCUMENTATION_OPTIONS = {
+    URL_ROOT: '',
+    VERSION: '1.1.0',
+    LANGUAGE: 'None',
+    COLLAPSE_INDEX: false,
+    FILE_SUFFIX: '.html',
+    HAS_SOURCE: true,
+    SOURCELINK_SUFFIX: '.txt'
+};
\ No newline at end of file

Modified: incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Bold.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Bold.ttf?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Regular.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Inconsolata-Regular.ttf?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-Bold.ttf?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.

Added: incubator/singa/site/trunk/en/_static/fonts/Lato-BoldItalic.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-BoldItalic.ttf?rev=1831195&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/singa/site/trunk/en/_static/fonts/Lato-BoldItalic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/singa/site/trunk/en/_static/fonts/Lato-Italic.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-Italic.ttf?rev=1831195&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/singa/site/trunk/en/_static/fonts/Lato-Italic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/Lato-Regular.ttf?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/_static/fonts/fontawesome-webfont.eot?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.


Reply via email to