Skip to content

Commit

Permalink
docs: enable ga, edit link and upated time
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Oct 24, 2018
1 parent b660d1a commit 93a6489
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module.exports = {
head: [
['link', { rel: 'shortcut icon', href: '/favicon.ico' }],
],
base: '/vue-infinite-loading/',
ga: 'UA-128069695-1',
locales: {
'/': {
description: 'An infinite scroll plugin for Vue.js',
Expand All @@ -13,12 +15,15 @@ module.exports = {
},
themeConfig: {
sidebar: 'auto',
repo: 'https://github.com/PeachScript/vue-infinite-loading',
repo: '/PeachScript/vue-infinite-loading',
editLinks: true,
docsDir: 'docs',
locales: {
'/': {
lang: 'en-US',
selectText: 'Languages',
label: 'English',
lastUpdated: true,
nav: [
{
text: 'Guide',
Expand Down Expand Up @@ -60,6 +65,8 @@ module.exports = {
lang: 'zh-CN',
selectText: '选择语言',
label: '简体中文',
lastUpdated: '上次更新',
editLinkText: '在 GitHub 上编辑此页',
nav: [
{
text: '指南',
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/theme/styles/config.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $c-bg = #fbfcff

$s-home-divide-ratio = 36.5%
$s-home-middle-gap = 40px
$s-edge-gap = 30px
$s-edge-gap = 24px
$s-header-height = 62px
$s-preview-width = 334px
$s-sidebar-width = 16.4rem
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GitHubText: View GitHub
features:
- title: Out of the box
details: Clear API, internal spinners and better compatibility, ready for production immediately
- title: 2-direction support
- title: 2-directions support
details: Support top and bottom directions currently, adapt to more different scenes
- title: Result display
details: Configurable load result display, for example no more data, no results and etc
Expand Down

0 comments on commit 93a6489

Please sign in to comment.