From 5d3692384e7d7b5ae7b068ccb2d534ff67d54ce4 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 29 Apr 2022 10:55:17 +0100 Subject: [PATCH] docs: add carbon ads --- docs/.vuepress/config.js | 1 + docs/.vuepress/theme/components/CarbonAds.vue | 65 +++++++++++++++++++ docs/.vuepress/theme/index.js | 3 + docs/.vuepress/theme/layouts/Layout.vue | 21 ++++++ docs/.vuepress/theme/package.json | 4 ++ 5 files changed, 94 insertions(+) create mode 100644 docs/.vuepress/theme/components/CarbonAds.vue create mode 100644 docs/.vuepress/theme/index.js create mode 100644 docs/.vuepress/theme/layouts/Layout.vue create mode 100644 docs/.vuepress/theme/package.json diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 15c031e76..1a5e8842f 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -67,6 +67,7 @@ module.exports = { ['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }], ['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#ff8549' }], ], + theme: 'vuepress-theme-rsshub', themeConfig: { repo: 'DIYgod/RSSHub', editLinks: true, diff --git a/docs/.vuepress/theme/components/CarbonAds.vue b/docs/.vuepress/theme/components/CarbonAds.vue new file mode 100644 index 000000000..240a4e8a1 --- /dev/null +++ b/docs/.vuepress/theme/components/CarbonAds.vue @@ -0,0 +1,65 @@ + + + diff --git a/docs/.vuepress/theme/index.js b/docs/.vuepress/theme/index.js new file mode 100644 index 000000000..a85dc0efa --- /dev/null +++ b/docs/.vuepress/theme/index.js @@ -0,0 +1,3 @@ +module.exports = { + extend: '@vuepress/theme-default', +}; diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue new file mode 100644 index 000000000..9463595b9 --- /dev/null +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -0,0 +1,21 @@ + + + diff --git a/docs/.vuepress/theme/package.json b/docs/.vuepress/theme/package.json new file mode 100644 index 000000000..e52477405 --- /dev/null +++ b/docs/.vuepress/theme/package.json @@ -0,0 +1,4 @@ +{ + "name": "vuepress-theme-rsshub", + "main": "index.js" +}