Skip to content

Commit

Permalink
1.1.3-beta (#8)
Browse files Browse the repository at this point in the history
* fix: add enhanceApp.js

* fix: footer data

* fix: footer data

* fix: footer and enhanceApp

* update version

* update version
  • Loading branch information
Vincent Hy committed Oct 18, 2019
1 parent aafd763 commit a21296c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -18,7 +18,7 @@
</p>
</div>
## 主题简介
## 简介

- 一个偏文档风格的博客,灵感来自于 oneNote 笔记本
- 博客主题追求简约文档风,抛去主流博客的元素,标签、归档等
Expand All @@ -41,8 +41,8 @@ oneN 主题基于 VuePress,首先你应该新建一个 VuePress 项目文件
接着安装 oneN 主题:

```sh
npm install -D vuepress-theme-onen
# or yarn add -D vuepress-theme-onen
yarn add -D vuepress-theme-onen
# or npm install -D vuepress-theme-onen
```

## 主题配置
Expand Down
6 changes: 3 additions & 3 deletions components/Footer.vue
Expand Up @@ -5,9 +5,9 @@

© 2019-Present Created by {{ data.name ? data.name : 'Vicent Hy' }}
<a-icon
:spin="data.footer.spin ? data.footer.spin : false"
:type="data.footer.type ? data.footer.type : 'chrome'"
:theme="data.footer.theme ? data.footer.theme : 'filled'"
:spin="data.footer && data.footer.spin ? data.footer.spin : false"
:type="data.footer && data.footer.type ? data.footer.type : 'chrome'"
:theme="data.footer && data.footer.theme ? data.footer.theme : 'filled'"
/>
Powered by
<a href="https://github.com/vuejs/vuepress" target="view_window">Vuepress</a>
Expand Down
49 changes: 49 additions & 0 deletions enhanceApp.js
@@ -0,0 +1,49 @@
import pageComponents from '@internal/page-components'
import 'ant-design-vue/lib/menu/style/css'
import 'ant-design-vue/lib/layout/style/css'
import 'ant-design-vue/lib/avatar/style/css'
import 'ant-design-vue/lib/breadcrumb/style/css'
import 'ant-design-vue/lib/divider/style/css'
import 'ant-design-vue/lib/icon/style/css'
import 'ant-design-vue/lib/back-top/style/css'
import 'ant-design-vue/lib/collapse/style/css'
import 'ant-design-vue/lib/drawer/style/css'
import 'ant-design-vue/lib/button/style/css'
import 'ant-design-vue/lib/anchor/style/css'
import 'ant-design-vue/lib/tooltip/style/css'
import 'ant-design-vue/lib/spin/style/css'
import {
Avatar,
BackTop,
Breadcrumb,
Divider,
Layout,
Icon,
Menu,
Collapse,
Drawer,
Button,
Anchor,
Tooltip,
Spin
} from 'ant-design-vue'

export default ({ Vue }) => {
Vue.use(Avatar)
Vue.use(BackTop)
Vue.use(Breadcrumb)
Vue.use(Divider)
Vue.use(Layout)
Vue.use(Icon)
Vue.use(Menu)
Vue.use(Collapse)
Vue.use(Drawer)
Vue.use(Button)
Vue.use(Anchor)
Vue.use(Tooltip)
Vue.use(Spin)

for (const [name, component] of Object.entries(pageComponents)) {
Vue.component(name, component)
}
}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-onen",
"version": "1.1.3",
"version": "1.1.3-beta",
"description": "A vuepress theme for oneN",
"main": "index.js",
"publishConfig": {
Expand Down

0 comments on commit a21296c

Please sign in to comment.