diff --git a/docs/.vuepress/components/Route.vue b/docs/.vuepress/components/Route.vue index c0ad5fefcc..a83a40db54 100644 --- a/docs/.vuepress/components/Route.vue +++ b/docs/.vuepress/components/Route.vue @@ -7,7 +7,7 @@ 作者: @{{ uid }}
- 举例: https://rsshub.app{{example}}
+ 举例: {{demoUrl}}
路由: {{ path }}
@@ -76,6 +76,11 @@ export default {
});
return md.render(item);
},
+ },
+ computed: {
+ demoUrl: function () {
+ return 'https://rsshub.app'+ this.example
+ }
}
}
diff --git a/docs/.vuepress/styles/index.styl b/docs/.vuepress/styles/index.styl
index fe808c7ab9..1640a6aaad 100644
--- a/docs/.vuepress/styles/index.styl
+++ b/docs/.vuepress/styles/index.styl
@@ -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;
-}
\ No newline at end of file
+}