Ignore:
Timestamp:
04/05/12 14:10:40 (13 years ago)
Author:
lusterma
Message:
worked on doc
Location:
fact/tools/pyscripts/doc/_build/html/_static
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/doc/_build/html/_static/basic.css

    r13151 r13316  
    55 * Sphinx stylesheet -- basic theme.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    7878    font-family: sans-serif;
    7979    font-size: 1em;
    80 }
    81 
    82 div.sphinxsidebar input[type="text"] {
    83     width: 170px;
    84 }
    85 
    86 div.sphinxsidebar input[type="submit"] {
    87     width: 30px;
    8880}
    8981
     
    222214}
    223215
    224 img.align-left, .figure.align-left, object.align-left {
    225     clear: left;
    226     float: left;
    227     margin-right: 1em;
    228 }
    229 
    230 img.align-right, .figure.align-right, object.align-right {
    231     clear: right;
    232     float: right;
    233     margin-left: 1em;
    234 }
    235 
    236 img.align-center, .figure.align-center, object.align-center {
    237   display: block;
    238   margin-left: auto;
    239   margin-right: auto;
    240 }
    241 
    242216.align-left {
    243217    text-align: left;
     
    245219
    246220.align-center {
     221    clear: both;
    247222    text-align: center;
    248223}
     
    421396
    422397.footnote:target  {
    423     background-color: #ffa;
     398    background-color: #ffa
    424399}
    425400
     
    448423}
    449424
    450 abbr, acronym {
    451     border-bottom: dotted 1px;
    452     cursor: help;
    453 }
    454 
    455425/* -- code displays --------------------------------------------------------- */
    456426
    457427pre {
    458428    overflow: auto;
    459     overflow-y: hidden;  /* fixes display issues on Chrome browsers */
    460429}
    461430
  • fact/tools/pyscripts/doc/_build/html/_static/default.css

    r13151 r13316  
    55 * Sphinx stylesheet -- default theme.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
  • fact/tools/pyscripts/doc/_build/html/_static/doctools.js

    r13151 r13316  
    33 * ~~~~~~~~~~~
    44 *
    5  * Sphinx JavaScript utilities for all documentation.
     5 * Sphinx JavaScript utilties for all documentation.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    186186        });
    187187      }, 10);
    188       $('<p class="highlight-link"><a href="javascript:Documentation.' +
    189         'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>')
    190           .appendTo($('#searchbox'));
     188      $('<li class="highlight-link"><a href="javascript:Documentation.' +
     189        'hideSearchWords()">' + _('Hide Search Matches') + '</a></li>')
     190          .appendTo($('.sidebar .this-page-menu'));
    191191    }
    192192  },
     
    214214   */
    215215  hideSearchWords : function() {
    216     $('#searchbox .highlight-link').fadeOut(300);
     216    $('.sidebar .this-page-menu li.highlight-link').fadeOut(300);
    217217    $('span.highlighted').removeClass('highlighted');
    218218  },
  • fact/tools/pyscripts/doc/_build/html/_static/searchtools.js

    r13151 r13316  
    11/*
    2  * searchtools.js_t
    3  * ~~~~~~~~~~~~~~~~
     2 * searchtools.js
     3 * ~~~~~~~~~~~~~~
    44 *
    55 * Sphinx JavaScript utilties for the full-text search.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    3737}
    3838
    39 
    4039/**
    4140 * Porter Stemmer
    4241 */
    43 var Stemmer = function() {
     42var PorterStemmer = function() {
    4443
    4544  var step2list = {
     
    302301
    303302  query : function(query) {
    304     var stopwords = ["and","then","into","it","as","are","in","if","for","no","there","their","was","is","be","to","that","but","they","not","such","with","by","a","on","these","of","will","this","near","the","or","at"];
    305 
    306     // Stem the searchterms and add them to the correct list
    307     var stemmer = new Stemmer();
     303    var stopwords = ['and', 'then', 'into', 'it', 'as', 'are', 'in',
     304                     'if', 'for', 'no', 'there', 'their', 'was', 'is',
     305                     'be', 'to', 'that', 'but', 'they', 'not', 'such',
     306                     'with', 'by', 'a', 'on', 'these', 'of', 'will',
     307                     'this', 'near', 'the', 'or', 'at'];
     308
     309    // stem the searchterms and add them to the correct list
     310    var stemmer = new PorterStemmer();
    308311    var searchterms = [];
    309312    var excluded = [];
    310313    var hlterms = [];
    311314    var tmp = query.split(/\s+/);
    312     var objectterms = [];
     315    var object = (tmp.length == 1) ? tmp[0].toLowerCase() : null;
    313316    for (var i = 0; i < tmp.length; i++) {
    314       if (tmp[i] != "") {
    315           objectterms.push(tmp[i].toLowerCase());
    316       }
    317 
    318317      if ($u.indexOf(stopwords, tmp[i]) != -1 || tmp[i].match(/^\d+$/) ||
    319318          tmp[i] == "") {
     
    346345    var titles = this._index.titles;
    347346    var terms = this._index.terms;
     347    var objects = this._index.objects;
     348    var objtypes = this._index.objtypes;
     349    var objnames = this._index.objnames;
    348350    var fileMap = {};
    349351    var files = null;
     
    356358
    357359    // lookup as object
    358     for (var i = 0; i < objectterms.length; i++) {
    359       var others = [].concat(objectterms.slice(0,i),
    360                              objectterms.slice(i+1, objectterms.length))
    361       var results = this.performObjectSearch(objectterms[i], others);
    362       // Assume first word is most likely to be the object,
    363       // other words more likely to be in description.
    364       // Therefore put matches for earlier words first.
    365       // (Results are eventually used in reverse order).
    366       objectResults = results[0].concat(objectResults);
    367       importantResults = results[1].concat(importantResults);
    368       unimportantResults = results[2].concat(unimportantResults);
    369     }
     360    if (object != null) {
     361      for (var prefix in objects) {
     362        for (var name in objects[prefix]) {
     363          var fullname = (prefix ? prefix + '.' : '') + name;
     364          if (fullname.toLowerCase().indexOf(object) > -1) {
     365            match = objects[prefix][name];
     366            descr = objnames[match[1]] + _(', in ') + titles[match[0]];
     367            // XXX the generated anchors are not generally correct
     368            // XXX there may be custom prefixes
     369            result = [filenames[match[0]], fullname, '#'+fullname, descr];
     370            switch (match[2]) {
     371            case 1: objectResults.push(result); break;
     372            case 0: importantResults.push(result); break;
     373            case 2: unimportantResults.push(result); break;
     374            }
     375          }
     376        }
     377      }
     378    }
     379
     380    // sort results descending
     381    objectResults.sort(function(a, b) {
     382      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
     383    });
     384
     385    importantResults.sort(function(a, b) {
     386      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
     387    });
     388
     389    unimportantResults.sort(function(a, b) {
     390      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
     391    });
     392
    370393
    371394    // perform the search on the required terms
     
    467490              displayNextItem();
    468491            });
    469           }, "text");
     492          });
    470493        } else {
    471494          // no source available, just display title
     
    488511    }
    489512    displayNextItem();
    490   },
    491 
    492   performObjectSearch : function(object, otherterms) {
    493     var filenames = this._index.filenames;
    494     var objects = this._index.objects;
    495     var objnames = this._index.objnames;
    496     var titles = this._index.titles;
    497 
    498     var importantResults = [];
    499     var objectResults = [];
    500     var unimportantResults = [];
    501 
    502     for (var prefix in objects) {
    503       for (var name in objects[prefix]) {
    504         var fullname = (prefix ? prefix + '.' : '') + name;
    505         if (fullname.toLowerCase().indexOf(object) > -1) {
    506           var match = objects[prefix][name];
    507           var objname = objnames[match[1]][2];
    508           var title = titles[match[0]];
    509           // If more than one term searched for, we require other words to be
    510           // found in the name/title/description
    511           if (otherterms.length > 0) {
    512             var haystack = (prefix + ' ' + name + ' ' +
    513                             objname + ' ' + title).toLowerCase();
    514             var allfound = true;
    515             for (var i = 0; i < otherterms.length; i++) {
    516               if (haystack.indexOf(otherterms[i]) == -1) {
    517                 allfound = false;
    518                 break;
    519               }
    520             }
    521             if (!allfound) {
    522               continue;
    523             }
    524           }
    525           var descr = objname + _(', in ') + title;
    526           anchor = match[3];
    527           if (anchor == '')
    528             anchor = fullname;
    529           else if (anchor == '-')
    530             anchor = objnames[match[1]][1] + '-' + fullname;
    531           result = [filenames[match[0]], fullname, '#'+anchor, descr];
    532           switch (match[2]) {
    533           case 1: objectResults.push(result); break;
    534           case 0: importantResults.push(result); break;
    535           case 2: unimportantResults.push(result); break;
    536           }
    537         }
    538       }
    539     }
    540 
    541     // sort results descending
    542     objectResults.sort(function(a, b) {
    543       return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
    544     });
    545 
    546     importantResults.sort(function(a, b) {
    547       return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
    548     });
    549 
    550     unimportantResults.sort(function(a, b) {
    551       return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
    552     });
    553 
    554     return [importantResults, objectResults, unimportantResults]
    555513  }
    556514}
  • fact/tools/pyscripts/doc/_build/html/_static/sidebar.js

    r13151 r13316  
    1717 * reset to the default (expanded).
    1818 *
    19  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     19 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    2020 * :license: BSD, see LICENSE for details.
    2121 *
     
    2929  var sidebar = $('.sphinxsidebar');
    3030  var sidebarwrapper = $('.sphinxsidebarwrapper');
    31 
    32   // for some reason, the document has no sidebar; do not run into errors
    33   if (!sidebar.length) return;
    3431
    3532  // original margin-left of the bodywrapper and width of the sidebar
  • fact/tools/pyscripts/doc/_build/html/_static/underscore.js

    r13151 r13316  
    1 // Underscore.js 0.5.5
    2 // (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
    3 // Underscore is freely distributable under the terms of the MIT license.
    4 // Portions of Underscore are inspired by or borrowed from Prototype.js,
    5 // Oliver Steele's Functional, and John Resig's Micro-Templating.
    6 // For all details and documentation:
    7 // http://documentcloud.github.com/underscore/
    81(function(){var j=this,n=j._,i=function(a){this._wrapped=a},m=typeof StopIteration!=="undefined"?StopIteration:"__break__",b=j._=function(a){return new i(a)};if(typeof exports!=="undefined")exports._=b;var k=Array.prototype.slice,o=Array.prototype.unshift,p=Object.prototype.toString,q=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;b.VERSION="0.5.5";b.each=function(a,c,d){try{if(a.forEach)a.forEach(c,d);else if(b.isArray(a)||b.isArguments(a))for(var e=0,f=a.length;e<f;e++)c.call(d,
    92a[e],e,a);else{var g=b.keys(a);f=g.length;for(e=0;e<f;e++)c.call(d,a[g[e]],g[e],a)}}catch(h){if(h!=m)throw h;}return a};b.map=function(a,c,d){if(a&&b.isFunction(a.map))return a.map(c,d);var e=[];b.each(a,function(f,g,h){e.push(c.call(d,f,g,h))});return e};b.reduce=function(a,c,d,e){if(a&&b.isFunction(a.reduce))return a.reduce(b.bind(d,e),c);b.each(a,function(f,g,h){c=d.call(e,c,f,g,h)});return c};b.reduceRight=function(a,c,d,e){if(a&&b.isFunction(a.reduceRight))return a.reduceRight(b.bind(d,e),c);
Note: See TracChangeset for help on using the changeset viewer.