From 5c7d7ac52771bae2699197fd58798628f8c64328 Mon Sep 17 00:00:00 2001 From: perry Date: Wed, 11 Jan 2017 13:00:52 -0600 Subject: [PATCH] chore(docs): add beta warning to docs pages --- scripts/docs/processors/collect-inputs-outputs.js | 2 +- scripts/docs/templates/common.template.html | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/scripts/docs/processors/collect-inputs-outputs.js b/scripts/docs/processors/collect-inputs-outputs.js index c0f2cab35..68224dc2f 100644 --- a/scripts/docs/processors/collect-inputs-outputs.js +++ b/scripts/docs/processors/collect-inputs-outputs.js @@ -7,7 +7,7 @@ module.exports = function collectInputsOutputs() { if (doc.statics && doc.statics.length) { for (var i in doc.statics) { - // identify properties to differentiate from statics + // identify properties to differentiate from methods if (typeof doc.statics[i].parameters == 'undefined') { doc.statics[i].isProperty = true; } diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 5182bba35..2e1e850ed 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -200,7 +200,9 @@ docType: "<$ doc.docType $>" Delegate: <$ doc.delegate $> <@ endif @> - + <@- if doc.beta == true -@> + β + <@- endif -@> @@ -213,6 +215,15 @@ docType: "<$ doc.docType $>" <@- if doc.decorators @> <@ for prop in doc.decorators[0].argumentInfo @> + +<@ if doc.beta == true @> +

+ This plugin is still in beta stage and may not work as expected. Please + submit and issues to the plugin repo. +

+<@ endif @> +
$ <@ if prop.install @><$ prop.install $><@ else @>ionic plugin add <$ prop.plugin $><@ endif -@>

Repo: @@ -244,7 +255,7 @@ docType: "<$ doc.docType $>" <@ endif @> <@ endfor @> -<@ endif -@> +<@ endif -@> <@ if doc.usage @>