diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 6b889f455..edf9ba9ee 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -24,6 +24,18 @@ module.exports = function jekyll(renderDocsProcessor) { .replace('content/', ''); }); + const betaDocs = []; + + docs = docs.filter(doc => { + if (doc.beta === true) { + betaDocs.push(doc); + return false; + } + return true; + }); + + docs = docs.concat(betaDocs); + // add side menu docs.push({ docType: 'nativeMenu', diff --git a/scripts/docs/tag-defs/tag-defs.js b/scripts/docs/tag-defs/tag-defs.js index 5a40ba412..d311b2dff 100644 --- a/scripts/docs/tag-defs/tag-defs.js +++ b/scripts/docs/tag-defs/tag-defs.js @@ -6,5 +6,6 @@ module.exports = [ {'name': 'usage'}, {'name': 'hidden'}, // hide from docs {'name': 'classes'}, // related classes - {'name': 'interfaces'} // related interfaces + {'name': 'interfaces'}, // related interfaces + {'name': 'paid', transforms: (doc, tag, value) => typeof value !== 'undefined'} // paid plugin, set value to true ]; diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 9a9b1826f..0c2ad365c 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -147,6 +147,9 @@ docType: "<$ doc.docType $>" <@- if doc.beta == true -@> β <@- endif -@> + <@- if doc.paid == true -@> + Paid + <@- endif -@> @@ -163,6 +166,12 @@ docType: "<$ doc.docType $>" href="<$ prop.repo $>/issues">plugin repo.
<@ endif @> +<@ if doc.paid == true @> ++ This plugin might require a paid license, or might take a share of your app's earnings. + Check the plugin's repo for more information. +
+<@ endif @> <# --- Plugin description --- #> <$ doc.description | marked $> diff --git a/scripts/docs/templates/native_menu.template.html b/scripts/docs/templates/native_menu.template.html index 2dcd6c16e..a52a56559 100644 --- a/scripts/docs/templates/native_menu.template.html +++ b/scripts/docs/templates/native_menu.template.html @@ -4,11 +4,7 @@