singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wang...@apache.org
Subject svn commit: r1831195 [17/24] - in /incubator/singa/site/trunk: en/ en/_sources/docs/ en/_sources/docs/model_zoo/imagenet/inception/ en/_sources/docs/model_zoo/imagenet/resnet/ en/_sources/docs/model_zoo/imagenet/vgg/ en/_static/ en/_static/css/ en/_sta...
Date Tue, 08 May 2018 15:05:18 GMT
Added: incubator/singa/site/trunk/zh/_sources/develop/contribute-code.md.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/develop/contribute-code.md.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/develop/contribute-code.md.txt (added)
+++ incubator/singa/site/trunk/zh/_sources/develop/contribute-code.md.txt Tue May  8 15:05:16 2018
@@ -0,0 +1,48 @@
+## 如何贡献代码
+
+
+### 代码风格
+
+SINGA 代码库遵循 [Google C++ 风格指导](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml).
+
+如果想检查你的代码是否符合风格, 你可以用如下 cpplint 工具:
+
+    $ ./tool/cpplint.py YOUR_FILE
+
+
+### JIRA 格式
+
+像其他 Apache 项目一样,SINGA 使用 JIRA 来追踪错误,改进和其他高层讨论(例如,系统设计和功能). 
+Github pull requests 用于实施讨论,例如代码审查和代码合并.
+
+* 提供一个描述性标题.
+* 写一个详细的描述. 对于错误报告,这应该最好包括一个问题的短暂再现. 对于新功能,它可能包含一个设计文档.
+* 填写[必填字段](https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark#ContributingtoSpark-JIRA)
+
+### Pull Request
+
+工作流程是
+
+* Fork [SINGA Github repository](https://github.com/apache/incubator-singa) 到你自己的 Github 帐户.
+
+* Clone 你自己的 fork, 创建一个新的 branch (例如, feature-foo or fixbug-foo),
+ 进行这项工作. 完成你的工作后,
+ [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) 
+它到当前最新的 master 并 push commits 到你自己的 Github 帐户 (新 branch).
+
+* 针对 apache / incubator-singa 的 master branch 打开一个 pull request.
+PR 标题应该是 SINGA-xxxx 的格式,其中 SINGA-xxxx 是相关的JIRA编号,
+标题可以是 JIRA 的标题或描述 PR 本身的更具体的标题, 例如,"SINGA-6 Implement thread-safe singleton". 
+详细描述可以从 JIRA 复制.
+考虑确定提交者或者在被改变的代码工作的其他贡献者. 在 Github 中找到文件并点击 "Blame" 查看最后修改了代码的逐行注释. 您可以在中添加含有 @username 的 pull request 描述并立即 ping 他们.
+请说明你的原创作品和贡献并且您根据项目的开源许可证将工作许可给项目. 
+进一步向你的新分支进行的提交(例如错误修复)会被 Github 自动添加到这个 pull request.
+
+* 等待一个提交者查看该补丁. 如果没有冲突,提交者会将其与 master branch 合并. 
+合并应该 a) 不用 rebase b) 禁用 fast forward merge c) 检查提交消息格式并测试代码/功能.
+
+* 如果有太多的小提交信息,你会被告知将你的提交压缩成更少的有意义的提交. 
+如果您的提交信息不符合格式 (如 SINGA-xxxx), 你会被告知重新提交你的提交信息. 
+这两个更改都可以使用交互式 git rebase. 一旦你得到了更正的提交,
+再次将它们推送到你自己的 github. 你的 pull request 会自动更新. 
+详情请参阅 [Rebase Pull Requests](https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request).

Added: incubator/singa/site/trunk/zh/_sources/develop/how-contribute.md.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/develop/how-contribute.md.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/develop/how-contribute.md.txt (added)
+++ incubator/singa/site/trunk/zh/_sources/develop/how-contribute.md.txt Tue May  8 15:05:16 2018
@@ -0,0 +1,9 @@
+# 如何贡献给 SINGA
+
+与任何开源项目一样, 你可以以多种方式帮助:
+
+* 加入我们的[邮件列表](http://singa.apache.org/en/community/mail-lists.html) 并且回答其他用户的问题.
+* 自己[编译生成 SINGA](http://singa.apache.org/en/docs/installation.html).
+* 报告错误, 功能请求以及其他问题,在[问题追踪](http://singa.apache.org/en/community/issue-tracking.html)里.
+* 检查SINGA的[开发日程表](http://singa.apache.org/en/develop/schedule.html)以及通过提供补丁[贡献代码](http://singa.apache.org/en/develop/contribute-code.html).
+* 通过更新缺失或不清楚网页[帮助写文档](http://singa.apache.org/en/develop/contribute-docs.html).

Added: incubator/singa/site/trunk/zh/_sources/develop/schedule.rst.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/develop/schedule.rst.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/develop/schedule.rst.txt (added)
+++ incubator/singa/site/trunk/zh/_sources/develop/schedule.rst.txt Tue May  8 15:05:16 2018
@@ -0,0 +1,66 @@
+.. 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.
+
+
+开发时间表
+====================
+
+.. csv-table::
+  :header: "版本","模块","特性"
+
+  "v0.1 2015 九月     ","神经网络               ","前向传播神经网络, 包括 CNN, MLP                                                                     "
+  "                   ","                             ","类 RBM 模型, 包括 RBM                                                                                       "
+  "                   ","                             ","循环神经网络, 包括标准 RNN                                                                    "
+  "                   ","架构                 ","在单节点运行一个工作组  (包括划分)                                                               "
+  "                   ","                             ","在单节点运行多个工作组, 用 `Hogwild <http://www.eecs.berkeley.edu/~brecht/papers/hogwildTR.pdf>`_     "
+  "                   ","                             ","分布式 Hogwild"
+  "                   ","                             ","跨多节点运行多个工作组 , 如 `Downpour <http://papers.nips.cc/paper/4687-large-scale-distritbuted-deep-networks>`_"
+  "                   ","                             ","All-Reduce 训练架构如 `DeepImage <http://arxiv.org/abs/1501.02876>`_                                "
+  "                   ","                             ","服务器间负载均衡                                                                                           "
+  "                   ","失败恢复             ","检查点和恢复                                                                                              "
+  "                   ","工具                        ","用 GNU 自动工具安装                                                                                    "
+  "v0.2 2016 一月      ","神经网络               ","前向传播神经网络, 包括 AlexNet, cuDNN 层, 工具                                                  "
+  "                   ","                             ","循环神经网络, 包括 GRU 层和 BPTT                                                               "
+  "                   ","                             ","模型划分和混合划分                                                                                "
+  "                   ","工具                        ","融合 Mesos 资源管理                                                                      "
+  "                   ","                             ","准备部署 Docker images"
+  "                   ","                             ","可视化神经网络和调试信息"
+  "                   ","绑定                      ","主要组件 Python 绑定"
+  "                   ","GPU                          ","单节点多个 GPU "
+  "v0.3 2016 四月    ","GPU                          ","多个节点, 每个包含多个 GPU"
+  "                   ","                             ","用 GPU 和 CPU 混合训练  `CcT <http://arxiv.org/abs/1504.04343>`_"
+  "                   ","                             ","支持 cuDNN v4 "
+  "                   ","安装                 ","删除 ZeroMQ, CZMQ 依赖, 单节点训练 zookeeper"
+  "                   ","优化器                      ","添加新的 SGD 优化器,包括 Adam, AdamMax 和 AdaDelta"
+  "                   ","绑定                      ","增强 Python 绑定训练"
+  "v1.0 2016 九月      ","模型抽象      ","Tensor 基于线性代数, 神经网络和随机运算"
+  "                   ","                             ","分布式参数更新优化器"
+  "                   ","硬件                     ","使用 Cuda 和 Cudnn for Nvidia GPU"
+  "                   ","                             ","使用 OpenCL for AMD GPU 及其他设备"
+  "                   ","跨平台               ","从 Linux 扩展到 MacOS"
+  "                   ","                             ","大型图像模型, 例如, `VGG <https://arxiv.org/pdf/1409.1556.pdf>`_ 和 `Residual Net <http://arxiv.org/abs/1512.03385>`_"
+  "v1.1 2017 一月      ","模型库                    ","GoogleNet; 医疗健康模型"
+  "                   ","Caffe 转换器              ","使用 SINGA 训练模型, 从 caffe proto 文件配置"
+  "                   ","模型组件             ","添加 concat 和 slice 层; 接受多个输入网络"
+  "                   ","编译和安装 ","Windows 支持"
+  "                   ","                             ","通过与 protobuf 和 openblas 一起编译 SINGA 简化安装"
+  "                   ","                             ","用 Jenkins 自动生成 python wheel"
+  "                   ","                             ","从 Debian packages 安装 SINGA"
+  "v1.2 2017 十月      ","Numpy API                    ","依照 numpy API 实现 PySINGA 的 tensor 模块的函数"
+  "                   ","分布式训练         ","从 V0.3 移植分布式训练框架"
+  "                   ","内存优化          ","用新内存池替代 CNMEM 以减少内存消耗"
+  "                   ","执行优化       ","执行调度及运行时优化"

Added: incubator/singa/site/trunk/zh/_sources/docs.rst.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/docs.rst.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/docs.rst.txt (added)
+++ incubator/singa/site/trunk/zh/_sources/docs.rst.txt Tue May  8 15:05:16 2018
@@ -0,0 +1,23 @@
+.. 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.
+
+
+文档
+=============
+
+.. toctree::
+   docs/index

Added: incubator/singa/site/trunk/zh/_sources/downloads.md.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/downloads.md.txt?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/downloads.md.txt (added)
+++ incubator/singa/site/trunk/zh/_sources/downloads.md.txt Tue May  8 15:05:16 2018
@@ -0,0 +1,109 @@
+## 下载 SINGA
+
+* 最新的代码: 请从 [Github](https://github.com/apache/incubator-singa) 的 dev branch 进行 clone
+
+* v1.1.0 (2017年2月12日):
+     * [Apache SINGA 1.1.0](http://www.apache.org/dyn/closer.cgi/incubator/singa/1.1.0/apache-singa-incubating-1.1.0.tar.gz)
+      [\[MD5\]](https://dist.apache.org/repos/dist/release/incubator/singa/1.1.0/apache-singa-incubating-1.1.0.tar.gz.md5)
+      [\[KEYS\]](https://dist.apache.org/repos/dist/release/incubator/singa/1.1.0/KEYS)
+    * [发行说明 1.1.0](releases/RELEASE_NOTES_1.1.0.html)
+    * 新功能和主要更新,
+        * 创建 Docker 镜像(CPU和GPU版本)
+        * 为 SINGA 创建 Amazon AMI(CPU版本)
+        * 与 Jenkins 集成以自动生成 Wheel 和 Debian 软件包(用于安装),并更新网站.
+        * 增强 FeedFowardNet, 例如,用于调试的多输入和详细模式
+        * 添加 Concat 和 Slice 层
+        * 扩展 CrossEntropyLoss 以接受具有多个标签的实例
+        * 添加 image_tool.py 与图像增强方法
+        * 通过 Snapshot API 支持模型加载和保存
+        * 在 Windows 上编译 SINGA 源代码
+        * 用 SINGA 代码编译强制依赖库
+        * 启用 S​​INGA 的 Java 绑定(基本)
+        * 在检查点文件中添加版本 ID
+        * 添加 Rafiki 工具包以提供 RESTFul API
+        * 添加 Caffe 预训练的例子,包括 GoogleNet
+
+
+
+* v1.0.0 (2016年9月8日):
+    * [Apache SINGA 1.0.0](https://archive.apache.org/dist/incubator/singa/1.0.0/apache-singa-incubating-1.0.0.tar.gz)
+      [\[MD5\]](https://archive.apache.org/dist/incubator/singa/1.0.0/apache-singa-incubating-1.0.0.tar.gz.md5)
+      [\[KEYS\]](https://archive.apache.org/dist/incubator/singa//1.0.0/KEYS)
+    * [发行说明 1.0.0](releases/RELEASE_NOTES_1.0.0.html)
+    * 新功能和主要更新,
+        * 用于支持更多机器学习模型的张量抽象.
+        * 设备抽象运行在不同的硬件设备上,包括CPU,(Nvidia / AMD)GPU 和 FPGA(将在更高版本中测试).
+        * 用 cmake 替换 GNU autotool 进行编译.
+        * 支持 Mac OS
+        * 改进Python绑定,包括安装和编程
+        * 更多深度学习模型, 包括 VGG 和 ResNet
+        * 读取/写入文件和编码/解码数据的更多 IO 类
+        * 直接基于 Socket 的新网络通信组件.
+        * 包含 Dropout 和 RNN 层的 Cudnn V5.
+        * 将网站制作工具从 maven 替换为 Sphinx
+        * 整合 Travis-CI
+
+
+* v0.3.0 (2016年4月20日):
+    * [Apache SINGA 0.3.0](https://archive.apache.org/dist/incubator/singa/0.3.0/apache-singa-incubating-0.3.0.tar.gz)
+      [\[MD5\]](https://archive.apache.org/dist/incubator/singa/0.3.0/apache-singa-incubating-0.3.0.tar.gz.md5)
+      [\[KEYS\]](https://archive.apache.org/dist/incubator/singa/0.3.0/KEYS)
+    * [发行说明 0.3.0](releases/RELEASE_NOTES_0.3.0.html)
+    * 新功能和主要更新,
+        * [在 GPU 集群上](v0.3.0/gpu.html) 可以在 GPU 集群上训练深度学习模型.
+        * [Python 包装器的改进](v0.3.0/python.html) 使得配置工作变得很容易, 包括神经网络和 SGD 算法.
+        * [新增 SGD 更新器](v0.3.0/updater.html), 包括 Adam, AdaDelta 和 AdaMax.
+        * [安装](v0.3.0/installation.html) 具有较少的相关库, 对于单节点培训.
+        * 在 CPU 和 GPU 上进行异构训练.
+        * 支持 cuDNN V4.
+        * 数据预读取.
+        * 修复一些错误.
+
+
+
+* v0.2.0 (2016年1月14日):
+    * [Apache SINGA 0.2.0](https://archive.apache.org/dist/incubator/singa/0.2.0/apache-singa-incubating-0.2.0.tar.gz)
+      [\[MD5\]](https://archive.apache.org/dist/incubator/singa/0.2.0/apache-singa-incubating-0.2.0.tar.gz.md5)
+      [\[KEYS\]](https://archive.apache.org/dist/incubator/singa/0.2.0/KEYS)
+    * [发行说明 0.2.0](releases/RELEASE_NOTES_0.2.0.html)
+    * 新功能和主要更新,
+        * [在 GPU 上进行训练](v0.2.0/gpu.html) 可以在具有多个 GPU 卡的单个节点上对复杂模型进行训练.
+        * [混合神经网络划分](v0.2.0/hybrid.html) 同时支持数据和模型并行.
+        * [Python 包装器](v0.2.0/python.html) 可以很容易地配置作业,包括神经网络和 SGD 算法.
+        * [RNN 模型和 BPTT 算法](v0.2.0/general-rnn.html) 实现并支持基于 RNN 模型的应用,例如 GRU.
+        * [云软件集成](v0.2.0/distributed-training.html) 包括 Mesos,Docker 和 HDFS.
+        * 可视化神经网络结构和层信息,有助于调试.
+        * 线性代数函数和针对 Blob 和原始数据指针的随机函数.
+        * 新层,包括 Softmax 层,ArgSort 层,Dummy 层,RNN 层和 cuDNN 层
+        * 更新 Layer 类以携带多个数据/梯度 Blob.
+        * 通过加载预训练模型参数来提取新数据的特征和测试性能.
+        * 为 IO 操作添加 Store 类.
+
+
+* v0.1.0 (2015年10月8日):
+    * [Apache SINGA 0.1.0](https://archive.apache.org/dist/incubator/singa/apache-singa-incubating-0.1.0.tar.gz)
+      [\[MD5\]](https://archive.apache.org/dist/incubator/singa/apache-singa-incubating-0.1.0.tar.gz.md5)
+      [\[KEYS\]](https://archive.apache.org/dist/incubator/singa/KEYS)
+    * [Amazon EC2 image](https://console.aws.amazon.com/ec2/v2/home?region=ap-southeast-1#LaunchInstanceWizard:ami=ami-b41001e6)
+    * [发行说明 0.1.0](releases/RELEASE_NOTES_0.1.0.html)
+    * 主要功能包括,
+        * 使用 GNU build 程序进行安装
+        * 用 zookeeper 进行工作管理的脚本
+        * 基于神经网络和层抽象的编程模型.
+        * 基于 Worker,Server 和 Stub 的系统体系结构.
+        * 训练三种不同类别的模型,即前馈模型,能量模型和 RNN 模型.
+        * 使用 CPU 的同步和异步分布式训练框架
+        * 检查点和恢复
+        * 使用 gtest 进行单元测试
+
+		
+**免责声明(英文)**
+
+Apache SINGA is an effort undergoing incubation at The Apache Software
+Foundation (ASF), sponsored by the name of Apache Incubator PMC. Incubation is
+required of all newly accepted projects until a further review indicates that
+the infrastructure, communications, and decision making process have stabilized
+in a manner consistent with other successful ASF projects. While incubation
+status is not necessarily a reflection of the completeness or stability of the
+code, it does indicate that the project has yet to be fully endorsed by the
+ASF.

Modified: incubator/singa/site/trunk/zh/_sources/index.rst.txt
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_sources/index.rst.txt?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/_sources/index.rst.txt (original)
+++ incubator/singa/site/trunk/zh/_sources/index.rst.txt Tue May  8 15:05:16 2018
@@ -82,6 +82,36 @@ SINGA 入门
 | |logo1| | |logo2| | |logo3| | |logo4| |
 +---------+---------+---------+---------+
 
+文档
+-------------
+
+* `这里 <docs.html>`_ 列出了文档和 Python API.
+* `C++ APIs <http://www.comp.nus.edu.sg/~dbsystem/singa/api/>`_ 由 Doxygen 生成.
+* 研究出版物清单可在 `此处 <http://www.comp.nus.edu.sg/~dbsystem/singa/research/publication/>`_ 查阅.
+
+如何贡献
+----------------------
+
+* 请订阅我们的开发邮件列表 dev-subscribe@singa.incubator.apache.org.
+
+* 如果您发现使用 SINGA 的任何问题,请将其报告给 `Issue Tracker <https://issues.apache.org/jira/browse/singa>`_.
+
+* 您也可以直接联系 `SINGA 提交者 <community/team-list.html>`_.
+
+关于更多描述贡献SINGA的细节, 见 `这里 <develop/how-contribute.html>`_ .
+
+历史
+------------
+
+2014年,SINGA 由新加坡国立大学 DB System Group 与浙江大学数据库团队合作发起.
+如果您在研究中使用 SINGA,请引用以下两篇论文:
+
+* B. C. Ooi, K.-L. Tan, S. Wang, W. Wang, Q. Cai, G. Chen, J. Gao, Z. Luo, A. K. H. Tung, Y. Wang, Z. Xie, M. Zhang, and K. Zheng. `SINGA: A distributed deep learning platform <http://www.comp.nus.edu.sg/~ooibc/singaopen-mm15.pdf>`_. ACM Multimedia (Open Source Software Competition) 2015 (`BibTex <http://www.comp.nus.edu.sg/~dbsystem/singa//assets/file/bib-oss.txt>`_).
+
+* W. Wang, G. Chen, T. T. A. Dinh, B. C. Ooi, K.-L.Tan, J. Gao, and S. Wang. `SINGA: putting deep learning in the hands of multimedia users <http://www.comp.nus.edu.sg/~ooibc/singa-mm15.pdf>`_. ACM Multimedia 2015 (`BibTex <http://www.comp.nus.edu.sg/~dbsystem/singa//assets/file/bib-singa.txt>`_, `Slides <files/mm2015.ppt>`_).
+
+诸如 `网易 <http://tech.163.com/17/0602/17/CLUL016I00098GJ5.html>`_, `yzBigData <http://www.yzbigdata.com/en/index.html>`_ 和 `Shentilium <https://shentilium.com/>`_ 等公司正在使用 SINGA 作为其应用程序.
+
 .. toctree::
    :hidden:
 
@@ -91,7 +121,7 @@ SINGA 入门
 .. toctree::
    :hidden:
    :maxdepth: 2
-   :caption: Development
+   :caption: 开发
 
    develop/schedule
    develop/how-contribute
@@ -101,7 +131,7 @@ SINGA 入门
 .. toctree::
    :hidden:
    :maxdepth: 2
-   :caption: Community
+   :caption: 社区
 
    community/source-repository
    community/mail-lists
@@ -110,11 +140,11 @@ SINGA 入门
 
 
 
-License
+许可证
 ----------
-SINGA is released under `Apache License Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`_.
+SINGA 在 `Apache License Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`_ 许可证下发布.
 
-Disclaimers
+免责声明(英文)
 -----------
 
 Apache SINGA is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Modified: incubator/singa/site/trunk/zh/_static/basic.css
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/basic.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/_static/basic.css (original)
+++ incubator/singa/site/trunk/zh/_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/zh/_static/css/badge_only.css
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/css/badge_only.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/_static/css/badge_only.css (original)
+++ incubator/singa/site/trunk/zh/_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/zh/_static/css/theme.css
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/css/theme.css?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/_static/css/theme.css (original)
+++ incubator/singa/site/trunk/zh/_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/zh/_static/doctools.js
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/doctools.js?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/_static/doctools.js (original)
+++ incubator/singa/site/trunk/zh/_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/zh/_static/documentation_options.js
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/documentation_options.js?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/_static/documentation_options.js (added)
+++ incubator/singa/site/trunk/zh/_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/zh/_static/fonts/Inconsolata-Bold.ttf
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/_static/fonts/Inconsolata-Bold.ttf?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
Binary files - no diff available.

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

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

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

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

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

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

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

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



Mime
View raw message