core
core copied to clipboard
[Feature request] Page TOC on right side bar
Feature request
Note: this is a variant of an issue which has been reported for v1 but also applies for v2: https://github.com/vuejs/vuepress/issues/2398
Description
Most modern documentations are using layout where page TOC (anchors) links are shown in a sidebar on the right and page tree (h1) is shown on the left sidebar. As of now, vuepress@next default theme shows page tree as well page TOC in-lined. Being able to display page TOC on right would reduce the left nav tree and can significantly improve the readability of docs.
Some themes, like vuepress-theme-hope, and the vuepress-plugin-right-anchor plugin offer this option, but this has become such a common feature with on-line documentations that it should be implemented to VuePress v2 default theme.
Proposed Solution
Something like what @Mister-Hope did with his theme would be just perfect - with an option like themeConfig.pageTocRightSidebar
with values true
or false
.
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.
@meteorlxy Please look into it.
Refer to #52
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.
hello 123 here is the activity.
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.