docs: add demo status badge

This commit is contained in:
DIYgod
2020-12-16 17:58:03 +08:00
parent 9790957b20
commit dac864230c
2 changed files with 15 additions and 2 deletions
+6 -1
View File
@@ -7,7 +7,7 @@
作者: <a v-for="uid in author.split(' ')" :href="`https://github.com/${uid}`" target="_blank"> @{{ uid }} </a>
</p>
<p class="example">
举例: <a :href="'https://rsshub.app'+ example " target="_blank">https://rsshub.app{{example}}</a>
<span>举例:</span> <a :href="demoUrl" target="_blank">{{demoUrl}}</a> <img :src="'https://img.shields.io/website?label=status&style=flat-square&url=' + encodeURIComponent(encodeURI(demoUrl))">
</p>
<p class="path">
路由: <code>{{ path }}</code>
@@ -76,6 +76,11 @@ export default {
});
return md.render(item);
},
},
computed: {
demoUrl: function () {
return 'https://rsshub.app'+ this.example
}
}
}
</script>
+9 -1
View File
@@ -52,10 +52,18 @@ li.params p {
margin: 1rem 0 2rem;
}
.routeBlock .example > * {
vertical-align: middle;
}
.routeBlock .example img {
margin-left: 5px;
}
#app .page .badge.tip {
background-color: #FFB74D;
}
#app .page .badge.warn {
background-color: #ff774d;
}
}