diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 863013472065f79ce756c4744756c7d1361af769..105d1cd46320c7d91d2f3c36385bf7dbae9cc581 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -9,18 +9,19 @@ module.exports = { ['link', { rel: 'icon', href: `${base}logo.png` }] ], themeConfig: { + github: 'vuejs/vuepress', // sidebar config sidebar: [ { title: 'Guide', children: [ - ['/', 'Intro'], + '/', '/getting-started', '/markdown', '/assets', '/using-vue', '/default-theme', - '/theming', + '/custom-themes', '/deploy' ] }, diff --git a/docs/README.md b/docs/README.md index 0e080f7072787507d6c5f7a719a6fc725e3af182..bb707a18adb98b8b6dd32fbec85fcaa7c48a7f8c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,8 @@ +--- +title: Intro +next: /getting-started +--- + # VuePress > Minimalistic docs generator with Vue component based layout system diff --git a/docs/assets.md b/docs/assets.md index 2b2b3fc054a7191098874466c00528bb3ccbc80a..f835e490b5ef78ec268655608093e515890c7786 100644 --- a/docs/assets.md +++ b/docs/assets.md @@ -1,3 +1,8 @@ +--- +prev: /markdown +next: /using-vue +--- + # Asset Handling ## Relative URLs diff --git a/docs/theming.md b/docs/custom-themes.md similarity index 98% rename from docs/theming.md rename to docs/custom-themes.md index 960686a858941c4e23397f25338b4af5975db224..8e1542e24725b45687224ac6f95f9438431b5df7 100644 --- a/docs/theming.md +++ b/docs/custom-themes.md @@ -1,3 +1,8 @@ +--- +prev: /default-theme +next: /deploy +--- + # Custom Themes VuePress uses Vue single file components for custom themes. To use a custom layout, create a `.vuepress/theme` directory in your docs root, and then create a `Layout.vue` file: diff --git a/docs/default-theme.md b/docs/default-theme.md index f36984da393f3255d2f97fc759cba2c0b0c0db6f..840ee2844e43ec2ab3cbd5c4fa33704d3537efeb 100644 --- a/docs/default-theme.md +++ b/docs/default-theme.md @@ -1 +1,6 @@ +--- +prev: /using-vue +next: /custom-themes +--- + # Default Theme Configuration diff --git a/docs/deploy.md b/docs/deploy.md index 48e33a12775baa34c33a6b32549d0e38ec1979c2..d6ee31ac7a268960b35af9cec23c863eca978de9 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -1,3 +1,8 @@ +--- +prev: /custom-themes +next: /config +--- + # Deploying ## GitHub Pages diff --git a/docs/getting-started.md b/docs/getting-started.md index 54d158586207d3bd6d7e2178ce1400e73a36774b..e0e05226d0948c57b177878c2a88dbcab3f7a4de 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -1,3 +1,8 @@ +--- +prev: / +next: /markdown +--- + # Getting Started ## Quickstart diff --git a/docs/markdown.md b/docs/markdown.md index 22e8073b0ffc00267a69c8a0d50b861ab8683cc1..7477de115739000d9985cfb14ed151e152936602 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -1,4 +1,6 @@ --- +prev: /getting-started +next: /assets meta: - name: keywords content: static docs generator vue diff --git a/docs/using-vue.md b/docs/using-vue.md index a147f4854ce4fbd2ec63acb5dcd797bf3e949dda..8c0276175b6e3939f5206813827e166980a3a82b 100644 --- a/docs/using-vue.md +++ b/docs/using-vue.md @@ -1,3 +1,8 @@ +--- +prev: /assets +next: /default-theme +--- + # Using Vue in Markdown ## Templating diff --git a/lib/app/app.js b/lib/app/app.js index 566b3e4dab96e414a47aa9a4c36168789ab34daa..dc03a7a7bbabbca5214dd9a9f8b1a7a82a6d8606 100644 --- a/lib/app/app.js +++ b/lib/app/app.js @@ -30,6 +30,8 @@ export function createApp () { base: siteData.base, mode: 'history', fallback: false, + linkActiveClass: '', + linkExactActiveClass: '', routes }) diff --git a/lib/default-theme/Page.vue b/lib/default-theme/Page.vue index 93c73e8b0c1857b11bb83d26e97cbbf06d7a039c..8f0571ae07df6090c0a61b112f245c889c5ab1c9 100644 --- a/lib/default-theme/Page.vue +++ b/lib/default-theme/Page.vue @@ -1,5 +1,47 @@ + + + + diff --git a/lib/default-theme/SideBar.vue b/lib/default-theme/SideBar.vue index e02d6f27ed07abcc94fb8fe343264bf5f9b6d6cb..b6a13c0be0822f09411d1cd39c47afb2b7aaaffb 100644 --- a/lib/default-theme/SideBar.vue +++ b/lib/default-theme/SideBar.vue @@ -15,7 +15,8 @@