├── noopModule.js ├── styles ├── antdv │ ├── index.less │ └── alert.less ├── config.less ├── toc.less ├── wrapper.less ├── arrow.less ├── nprogress.less ├── pwa.less ├── palette.less ├── mobile.less ├── theme.light.less ├── custom-blocks.less ├── searchbox.less ├── prism-antdv.less ├── code.less ├── theme.dark.less └── index.less ├── store ├── modules │ └── global.js └── index.js ├── enhanceApp.js ├── assets └── search.svg ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── templates ├── ssr.html └── dev.html ├── layouts ├── 404.vue └── Layout.vue ├── package.json ├── components ├── SidebarCollapse.vue ├── Sidebar.vue ├── NavButton.vue ├── SidebarLinks.vue ├── Page.vue ├── Promo.vue ├── SidebarGroup.vue ├── PageNav.vue ├── PageEdit.vue ├── PageAnchor.vue ├── SidebarLink.vue ├── AlgoliaSearchBox.vue ├── ThemeSwitch.vue ├── Navbar.vue ├── Home.vue └── NavLinks.vue ├── LICENSE ├── global-components └── Badge.vue ├── .npmignore ├── .gitignore ├── README.md ├── index.js └── util └── index.js /noopModule.js: -------------------------------------------------------------------------------- 1 | export default {} 2 | -------------------------------------------------------------------------------- /styles/antdv/index.less: -------------------------------------------------------------------------------- 1 | @import './alert.less'; -------------------------------------------------------------------------------- /styles/config.less: -------------------------------------------------------------------------------- 1 | @contentClass: theme-antdocs-content; 2 | -------------------------------------------------------------------------------- /styles/toc.less: -------------------------------------------------------------------------------- 1 | .table-of-contents { 2 | .badge { 3 | vertical-align: middle; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /store/modules/global.js: -------------------------------------------------------------------------------- 1 | const state = { 2 | navStyle: '', 3 | isCollapsePageAnchor: false, 4 | } 5 | 6 | 7 | export default { 8 | state 9 | } -------------------------------------------------------------------------------- /store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | import global from './modules/global' 4 | Vue.use(Vuex) 5 | 6 | export default new Vuex.Store({ 7 | modules: { 8 | global 9 | } 10 | }) 11 | -------------------------------------------------------------------------------- /enhanceApp.js: -------------------------------------------------------------------------------- 1 | import store from './store'; 2 | import Antd from 'ant-design-vue'; 3 | import './styles/index.less'; 4 | 5 | export default ({ 6 | Vue, 7 | // options, 8 | // router, 9 | // siteData, 10 | }) => { 11 | Vue.mixin({ store }) 12 | Vue.use(Antd) 13 | } -------------------------------------------------------------------------------- /styles/wrapper.less: -------------------------------------------------------------------------------- 1 | .wrapper() { 2 | max-width: @contentWidth; 3 | margin: 0 auto; 4 | padding: 0 3.5rem; 5 | 6 | @media (max-width: @MQNarrow) { 7 | padding: 0 3rem; 8 | } 9 | 10 | @media (max-width: @MQMobileNarrow) { 11 | padding: 1.6rem; 12 | padding-top: 0; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /styles/arrow.less: -------------------------------------------------------------------------------- 1 | @import './config.less'; 2 | .arrow { 3 | display: inline-block; 4 | transition: transform .25s ease-in-out; 5 | font-size: 14px; 6 | font-weight: 600; 7 | 8 | &.down { 9 | transform: rotate(0deg); 10 | } 11 | 12 | &.right { 13 | transform: rotate(-90deg); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /styles/nprogress.less: -------------------------------------------------------------------------------- 1 | @nprogressColor: @accentColor; 2 | 3 | #nprogress { 4 | pointer-events: none; 5 | 6 | .bar { 7 | background: @nprogressColor !important; 8 | } 9 | 10 | .peg { 11 | box-shadow: 0 0 10px @nprogressColor, 0 0 5px @nprogressColor !important; 12 | } 13 | 14 | .spinner-icon { 15 | border-top-color: @nprogressColor !important; 16 | border-left-color: @nprogressColor !important; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /assets/search.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 16 | **Expected behavior** 17 | A clear and concise description of what you expected to happen. 18 | 19 | **System Info** 20 | - VuePress version: 21 | - Antdocs version: 22 | - Node version: 23 | - OS version: 24 | 25 | **Additional context** 26 | Add any other context about the problem here. 27 | -------------------------------------------------------------------------------- /templates/ssr.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |{{ getMsg() }}7 | 8 |
An Ant Design style theme for VuePress.
6 | 7 |
8 |
9 |
10 |
11 |
12 |

4 |
5 |
6 | {{ prev.title || prev.path }}
7 |
8 |
17 | {{ data.tagline || $description || 'Welcome to your VuePress site' }} 18 |
19 | 20 |{{ feature.details }}
54 |