Skip to content

Commit 93a6489

Browse files
committed
docs: enable ga, edit link and upated time
1 parent b660d1a commit 93a6489

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/.vuepress/config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module.exports = {
33
head: [
44
['link', { rel: 'shortcut icon', href: '/favicon.ico' }],
55
],
6+
base: '/vue-infinite-loading/',
7+
ga: 'UA-128069695-1',
68
locales: {
79
'/': {
810
description: 'An infinite scroll plugin for Vue.js',
@@ -13,12 +15,15 @@ module.exports = {
1315
},
1416
themeConfig: {
1517
sidebar: 'auto',
16-
repo: 'https://github.com/PeachScript/vue-infinite-loading',
18+
repo: '/PeachScript/vue-infinite-loading',
19+
editLinks: true,
20+
docsDir: 'docs',
1721
locales: {
1822
'/': {
1923
lang: 'en-US',
2024
selectText: 'Languages',
2125
label: 'English',
26+
lastUpdated: true,
2227
nav: [
2328
{
2429
text: 'Guide',
@@ -60,6 +65,8 @@ module.exports = {
6065
lang: 'zh-CN',
6166
selectText: '选择语言',
6267
label: '简体中文',
68+
lastUpdated: '上次更新',
69+
editLinkText: '在 GitHub 上编辑此页',
6370
nav: [
6471
{
6572
text: '指南',

docs/.vuepress/theme/styles/config.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $c-bg = #fbfcff
1212

1313
$s-home-divide-ratio = 36.5%
1414
$s-home-middle-gap = 40px
15-
$s-edge-gap = 30px
15+
$s-edge-gap = 24px
1616
$s-header-height = 62px
1717
$s-preview-width = 334px
1818
$s-sidebar-width = 16.4rem

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GitHubText: View GitHub
66
features:
77
- title: Out of the box
88
details: Clear API, internal spinners and better compatibility, ready for production immediately
9-
- title: 2-direction support
9+
- title: 2-directions support
1010
details: Support top and bottom directions currently, adapt to more different scenes
1111
- title: Result display
1212
details: Configurable load result display, for example no more data, no results and etc

0 commit comments

Comments
 (0)