diff --git a/config/jsdoc/api/plugins/observable.js b/config/jsdoc/api/plugins/observable.js index bd9076647e..cc480d42c0 100644 --- a/config/jsdoc/api/plugins/observable.js +++ b/config/jsdoc/api/plugins/observable.js @@ -34,6 +34,9 @@ exports.handlers = { } else if (doclet.name.indexOf('set') === 0) { observable.readonly = false; } + if (doclet.stability) { + observable.stability = doclet.stability; + } if (!cls.observables) { cls.observables = []; } diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index 0ced914598..84f6ffb542 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -52,4 +52,13 @@ $(function () { $(window).on('resize', _onResize); _onResize(); -}); \ No newline at end of file + + // show/hide unstable items + var unstable = $('.unstable'); + var stabilityToggle = $('#stability-toggle'); + stabilityToggle.change(function() { + unstable.toggle(!this.checked); + return false; + }); + unstable.toggle(!stabilityToggle[0].checked); +}); diff --git a/config/jsdoc/api/template/static/styles/jaguar.css b/config/jsdoc/api/template/static/styles/jaguar.css index cb4fc866a3..c3f55f84b7 100644 --- a/config/jsdoc/api/template/static/styles/jaguar.css +++ b/config/jsdoc/api/template/static/styles/jaguar.css @@ -286,7 +286,6 @@ span.type-signature.static { width: 110px; } .main table .type { - width: 60px; color: #aaa; font-size: 12px; } @@ -373,3 +372,12 @@ footer { .main .readme table ul li { margin-bottom: 0; } +.unstable { + display: none; +} +#stability { + color: white; + position: absolute; + top: 1em; + right: 8em; +} diff --git a/config/jsdoc/api/template/tmpl/layout.tmpl b/config/jsdoc/api/template/tmpl/layout.tmpl index 42c0a49830..5e1789e190 100644 --- a/config/jsdoc/api/template/tmpl/layout.tmpl +++ b/config/jsdoc/api/template/tmpl/layout.tmpl @@ -18,8 +18,11 @@
diff --git a/config/jsdoc/api/template/tmpl/method.tmpl b/config/jsdoc/api/template/tmpl/method.tmpl index da9542236d..6f5d4c6e0c 100644 --- a/config/jsdoc/api/template/tmpl/method.tmpl +++ b/config/jsdoc/api/template/tmpl/method.tmpl @@ -2,7 +2,7 @@ var data = obj; var self = this; ?> -
-