Skip to content

Commit

Permalink
Cleanup docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattweber committed Dec 27, 2013
1 parent e19d0a5 commit e593aef
Show file tree
Hide file tree
Showing 94 changed files with 275 additions and 49 deletions.
137 changes: 122 additions & 15 deletions dist/elastic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elastic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

grunt
./jsdoc -t elasticjs -d ../dist/docs ../dist/elastic.js
#../node_modules/.bin/jsdoc -t elasticjs -d ../dist/docs ../dist/elastic.js
48 changes: 29 additions & 19 deletions docs/templates/elasticjs/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
var nav = '',
seen = {};

/*
var moduleNames = find({kind: 'module'});
if (moduleNames.length) {
nav = nav + '<h3>Modules</h3><ul class="toc-item">';
Expand Down Expand Up @@ -233,6 +234,7 @@
nav = nav + '</ul>';
}
*/

// sorts an array of objects based on a property within that object
var sort = function (prop, arr) {
Expand All @@ -247,26 +249,34 @@
});
};

var classNames = find({kind: 'class'});
if (classNames.length) {
nav = nav + '<h3>Modules</h3><ul class="toc-item">';
sort("name", classNames);
classNames.forEach(function(c) {
var moduleSameName = find({kind: 'module', longname: c.longname});
if (moduleSameName.length) {
c.name = c.name.replace('module:', 'require(')+')';
moduleSameName[0].module = c;
}
//print(c.name);
if (!seen.hasOwnProperty(c.longname) ) nav += '<li>'+linkto(c.longname, c.name)+'</li>';
seen[c.longname] = true;
});

nav = nav + '</ul>';
var navWithTag = function (tag, header) {
var classNames = find({kind: 'class', tags:{has: {title: 'ejs', value: tag}}});
if (classNames.length) {
nav = nav + '<h3>' + header + '</h3><ul class="toc-item">';
sort("name", classNames);
classNames.forEach(function(c) {
var moduleSameName = find({kind: 'module', tags:{has: {title: 'ejs', value: tag}}, longname: c.longname});
if (moduleSameName.length) {
c.name = c.name.replace('module:', 'require(')+')';
moduleSameName[0].module = c;
}
//print(c.name);
if (!seen.hasOwnProperty(c.longname) ) nav += '<li>'+linkto(c.longname, c.name)+'</li>';
seen[c.longname] = true;
});

nav = nav + '</ul>';
}
}

navWithTag('request', 'Request');
navWithTag('query', 'Queries');
navWithTag('filter', 'Filters');
navWithTag('facet', 'Facets');
navWithTag('suggest', 'Suggesters');
navWithTag('geo', 'Geo');


/*
var mixinNames = find({kind: 'mixin'});
if (mixinNames.length) {
nav = nav + '<h3>Mixins</h3><ul class="toc-item">';
Expand All @@ -277,9 +287,8 @@
nav = nav + '</ul>';
}

var globalNames = find({kind: ['property', 'function'], 'memberof': {'isUndefined': true}});

if (globalNames.length) {
nav = nav + '<h3>Global</h3><ul class="toc-item">';
globalNames.forEach(function(g) {
Expand All @@ -289,6 +298,7 @@
nav = nav + '</ul>';
}
*/

for (var longname in helper.longnameToUrl) {
var classes = find({kind: 'class', longname: longname});
Expand Down
1 change: 1 addition & 0 deletions src/facet/DateHistogramFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
@name ejs.DateHistogramFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/FilterFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
@name ejs.FilterFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/GeoDistanceFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
@name ejs.GeoDistanceFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/HistogramFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
@name ejs.HistogramFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/QueryFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
@name ejs.QueryFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/RangeFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
@name ejs.RangeFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/StatisticalFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
@name ejs.StatisticalFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/TermStatsFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
@name ejs.TermStatsFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/facet/TermsFacet.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<a href="http://en.wikipedia.org/wiki/Faceted_classification">Faceted Classification</a></p<
@name ejs.TermsFacet
@ejs facet
@borrows ejs.FacetMixin.facetFilter as facetFilter
@borrows ejs.FacetMixin.global as global
@borrows ejs.FacetMixin.mode as mode
Expand Down
1 change: 1 addition & 0 deletions src/filter/AndFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A container Filter that allows Boolean AND composition of Filters.
@name ejs.AndFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/BoolFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
filter.
@name ejs.BoolFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/ExistsFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
and the field contains a legitimate value.</p>
@name ejs.ExistsFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/GeoBboxFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
the specified lon and lat coordinates. The format conforms with the GeoJSON specification.</p>
@name ejs.GeoBboxFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/GeoDistanceFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
point of origin. The format conforms with the GeoJSON specification.</p>
@name ejs.GeoDistanceFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/GeoDistanceRangeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
point of origin. The format conforms with the GeoJSON specification.</p>
@name ejs.GeoDistanceRangeFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/GeoPolygonFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
for each document as a Geo Point type. The format conforms with the GeoJSON specification.</p>
@name ejs.GeoPolygonFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/GeoShapeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
PrefixTree configuration as defined for the field.</p>
@name ejs.GeoShapeFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/HasChildFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
matching the query being returned.</p>
@name ejs.HasChildFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/HasParentFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
the query being returned.</p>
@name ejs.HasParentFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/IdsFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
_uid field.</p>
@name ejs.IdsFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/IndicesFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
is executed on an index that does not match the listed indices.</p>
@name ejs.IndicesFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/LimitFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<p>A limit filter limits the number of documents (per shard) to execute on.</p>
@name ejs.LimitFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/MatchAllFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
in a given set of collections and/or types.</p>
@name ejs.MatchAllFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/MissingFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<p>An missingFilter matches documents where the specified field contains no legitimate value.</p>
@name ejs.MissingFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/NestedFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
parent doc (or parent nested mapping).</p>
@name ejs.NestedFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/NotFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
contained filter.</p>
@name ejs.NotFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/NumericRangeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
filter should be used.</p>
@name ejs.NumericRangeFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/OrFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A container filter that allows Boolean OR composition of filters.
@name ejs.OrFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/PrefixFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
to phrase query, except that it acts as a filter. Can be placed within queries that accept a filter.</p>
@name ejs.PrefixFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/QueryFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
caching (since it needs to satisfy different queries).</p>
@name ejs.QueryFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/RangeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<p>Matches documents with fields that have terms within a certain range.</p>
@name ejs.RangeFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/RegexpFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
over index terms.</p>
@name ejs.RegexpFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/ScriptFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<p>A filter allowing to define scripts as filters</p>
@name ejs.ScriptFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/TermFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
terms that are not necessarily in a sequence.</p>
@name ejs.TermFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/TermsFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
terms (not analyzed)</p>
@name ejs.TermsFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/filter/TypeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<p>A Filter that filters results by a specified index type.</p>
@name ejs.TypeFilter
@ejs filter
@borrows ejs.FilterMixin.name as name
@borrows ejs.FilterMixin.cache as cache
@borrows ejs.FilterMixin.cacheKey as cacheKey
Expand Down
1 change: 1 addition & 0 deletions src/query/BoolQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
for documents containing the terms <code>javascript</code> and <code>python</code>.</p>
@name ejs.BoolQuery
@ejs query
@borrows ejs.QueryMixin.boost as boost
@borrows ejs.QueryMixin._type as _type
@borrows ejs.QueryMixin.toJSON as toJSON
Expand Down
Loading

0 comments on commit e593aef

Please sign in to comment.