Skip to content

Commit f1593c3

Browse files
authored
Service docs (#255)
* Update service clients and models with doc comments * Regen docs from updated clients/models
1 parent c5841e6 commit f1593c3

22 files changed

+4224
-2570
lines changed

awsiot/iotidentity.py

Lines changed: 128 additions & 70 deletions
Large diffs are not rendered by default.

awsiot/iotjobs.py

Lines changed: 390 additions & 223 deletions
Large diffs are not rendered by default.

awsiot/iotshadow.py

Lines changed: 367 additions & 232 deletions
Large diffs are not rendered by default.

docs/_static/basic.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,9 @@ dl.glossary dt {
731731

732732
.classifier:before {
733733
font-style: normal;
734-
margin: 0.5em;
734+
margin: 0 0.5em;
735735
content: ":";
736+
display: inline-block;
736737
}
737738

738739
abbr, acronym {
@@ -819,7 +820,7 @@ div.code-block-caption code {
819820

820821
table.highlighttable td.linenos,
821822
span.linenos,
822-
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
823+
div.highlight span.gp { /* gp: Generic.Prompt */
823824
user-select: none;
824825
-webkit-user-select: text; /* Safari fallback only */
825826
-webkit-user-select: none; /* Chrome/Safari */

docs/_static/doctools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,14 @@ var Documentation = {
301301
window.location.href = prevHref;
302302
return false;
303303
}
304+
break;
304305
case 39: // right
305306
var nextHref = $('link[rel="next"]').prop('href');
306307
if (nextHref) {
307308
window.location.href = nextHref;
308309
return false;
309310
}
311+
break;
310312
}
311313
}
312314
});

docs/_static/searchtools.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ var Search = {
282282
complete: function(jqxhr, textstatus) {
283283
var data = jqxhr.responseText;
284284
if (data !== '' && data !== undefined) {
285-
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
285+
var summary = Search.makeSearchSummary(data, searchterms, hlterms);
286+
if (summary) {
287+
listItem.append(summary);
288+
}
286289
}
287290
Search.output.append(listItem);
288291
setTimeout(function() {
@@ -325,7 +328,9 @@ var Search = {
325328
var results = [];
326329

327330
for (var prefix in objects) {
328-
for (var name in objects[prefix]) {
331+
for (var iMatch = 0; iMatch != objects[prefix].length; ++iMatch) {
332+
var match = objects[prefix][iMatch];
333+
var name = match[4];
329334
var fullname = (prefix ? prefix + '.' : '') + name;
330335
var fullnameLower = fullname.toLowerCase()
331336
if (fullnameLower.indexOf(object) > -1) {
@@ -339,7 +344,6 @@ var Search = {
339344
} else if (parts[parts.length - 1].indexOf(object) > -1) {
340345
score += Scorer.objPartialMatch;
341346
}
342-
var match = objects[prefix][name];
343347
var objname = objnames[match[1]][2];
344348
var title = titles[match[0]];
345349
// If more than one term searched for, we require other words to be
@@ -498,6 +502,9 @@ var Search = {
498502
*/
499503
makeSearchSummary : function(htmlText, keywords, hlwords) {
500504
var text = Search.htmlToText(htmlText);
505+
if (text == "") {
506+
return null;
507+
}
501508
var textLower = text.toLowerCase();
502509
var start = 0;
503510
$.each(keywords, function() {

0 commit comments

Comments
 (0)