mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
chore(dgeni): add beta tag support
This commit is contained in:
parent
92e0bb55c3
commit
77d6308bca
@ -20,7 +20,9 @@ module.exports = function jekyll(renderDocsProcessor) {
|
|||||||
doc.outputPath = doc.outputPath.toLowerCase().replace(' ', '-');
|
doc.outputPath = doc.outputPath.toLowerCase().replace(' ', '-');
|
||||||
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/')
|
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/')
|
||||||
.replace('/index.md', '')
|
.replace('/index.md', '')
|
||||||
.replace('content/','');
|
.replace('content/', '');
|
||||||
|
|
||||||
|
docs[i].demo = !!docs[i].demo;
|
||||||
});
|
});
|
||||||
|
|
||||||
docs.push({
|
docs.push({
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
module.exports = [
|
module.exports = [
|
||||||
{'name': 'advanced'},
|
{'name': 'advanced'},
|
||||||
{'name': 'demo'},
|
{'name': 'demo'},
|
||||||
|
{'name': 'beta', transforms: function(doc, tag, value) {
|
||||||
|
// make the value true or undefined instead of '' or undefined
|
||||||
|
return typeof value !== 'undefined';
|
||||||
|
}},
|
||||||
{'name': 'usage'},
|
{'name': 'usage'},
|
||||||
{'name': 'classes'}, // related classes
|
{'name': 'classes'}, // related classes
|
||||||
{'name': 'interfaces'} // related interfaces
|
{'name': 'interfaces'} // related interfaces
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
<@ for doc in docs @><@ if doc.URL and doc.private != true @>
|
<@ for doc in docs @><@ if doc.URL and doc.private != true and doc.beta != true @>
|
||||||
<li class="capitalize {% if page.id == '<$ doc.name|lower|replace(' ','-') $>' %}active{% endif %}">
|
<li class="capitalize {% if page.id == '<$ doc.name|lower|replace(' ','-') $>' %}active{% endif %}">
|
||||||
<a href="/<$ doc.URL $>"><$ doc.name $></a>
|
<a href="/<$ doc.URL $>"><$ doc.name $></a>
|
||||||
</li><@ endif @><@ endfor @>
|
</li><@ endif @><@ endfor @>
|
||||||
|
|
||||||
|
<@ for doc in docs @><@ if doc.URL and doc.private != true and doc.beta == true @>
|
||||||
|
<li class="capitalize {% if page.id == '<$ doc.name|lower|replace(' ','-') $>' %}active{% endif %}">
|
||||||
|
<a href="/<$ doc.URL $>"><$ doc.name $> <span class="beta">β</span></a>
|
||||||
|
</li><@ endif @><@ endfor @>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user