Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzworks committed May 15, 2016
1 parent 8e318bd commit 6fff94d
Show file tree
Hide file tree
Showing 196 changed files with 232 additions and 400 deletions.
45 changes: 37 additions & 8 deletions _static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/


/* Non-minified version JS is _stemmer.js if file is provided */
/**
* Porter Stemmer
*/
Expand Down Expand Up @@ -373,8 +374,7 @@ var Search = {
}

// lookup as search terms in fulltext
results = results.concat(this.performTermsSearch(searchterms, excluded, terms, Scorer.term))
.concat(this.performTermsSearch(searchterms, excluded, titleterms, Scorer.title));
results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms));

// let the scorer override scores with a custom scoring function
if (Scorer.score) {
Expand Down Expand Up @@ -538,23 +538,47 @@ var Search = {
/**
* search for full-text terms in the index
*/
performTermsSearch : function(searchterms, excluded, terms, score) {
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
var filenames = this._index.filenames;
var titles = this._index.titles;

var i, j, file, files;
var i, j, file;
var fileMap = {};
var scoreMap = {};
var results = [];

// perform the search on the required terms
for (i = 0; i < searchterms.length; i++) {
var word = searchterms[i];
var files = [];
var _o = [
{files: terms[word], score: Scorer.term},
{files: titleterms[word], score: Scorer.title}
];

// no match but word was a required one
if ((files = terms[word]) === undefined)
if ($u.every(_o, function(o){return o.files === undefined;})) {
break;
if (files.length === undefined) {
files = [files];
}
// found search word in contents
$u.each(_o, function(o) {
var _files = o.files;
if (_files === undefined)
return

if (_files.length === undefined)
_files = [_files];
files = files.concat(_files);

// set score for the word in each file to Scorer.term
for (j = 0; j < _files.length; j++) {
file = _files[j];
if (!(file in scoreMap))
scoreMap[file] = {}
scoreMap[file][word] = o.score;
}
});

// create the mapping
for (j = 0; j < files.length; j++) {
file = files[j];
Expand All @@ -576,14 +600,19 @@ var Search = {
// ensure that none of the excluded terms is in the search result
for (i = 0; i < excluded.length; i++) {
if (terms[excluded[i]] == file ||
$u.contains(terms[excluded[i]] || [], file)) {
titleterms[excluded[i]] == file ||
$u.contains(terms[excluded[i]] || [], file) ||
$u.contains(titleterms[excluded[i]] || [], file)) {
valid = false;
break;
}
}

// if we have still a valid result we can add it to the result list
if (valid) {
// select one (max) score for the file.
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
results.push([filenames[file], titles[file], '', null, score]);
}
}
Expand Down
3 changes: 1 addition & 2 deletions change_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/echo.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/ping.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/quit.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions connection/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions der/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
5 changes: 2 additions & 3 deletions geo/geoadd.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>Navigation</h3>
<div class="section" id="geoadd">
<h1>GEOADD<a class="headerlink" href="#geoadd" title="Permalink to this headline"></a></h1>
<p><strong>GEOADD key longitude latitude member [longitude latitude member ...]</strong></p>
<p>将给定的空间元素(纬度、精度、名字)添加到指定的键里面。
<p>将给定的空间元素(纬度、经度、名字)添加到指定的键里面。
这些数据会以有序集合的形式被储存在键里面,
从而使得像 <code class="docutils literal"><span class="pre">GEORADIUS</span></code><code class="docutils literal"><span class="pre">GEORADIUSBYMEMBER</span></code> 这样的命令可以在之后通过位置查询取得这些元素。</p>
<p><code class="docutils literal"><span class="pre">GEOADD</span></code> 命令以标准的 <code class="docutils literal"><span class="pre">x,y</span></code> 格式接受参数,
Expand Down Expand Up @@ -158,8 +158,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/geodist.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/geohash.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/geopos.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/georadius.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/georadiusbymember.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions geo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hdel.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hexists.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hget.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hgetall.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hincrby.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hincrbyfloat.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hkeys.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hlen.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hmget.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hmset.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hscan.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hset.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
3 changes: 1 addition & 2 deletions hash/hsetnx.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ <h3>Navigation</h3>
</div>
<div class="footer">
&copy; Copyright 2015, Redis.
Last updated on Dec 02, 2015.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
Loading

0 comments on commit 6fff94d

Please sign in to comment.