core icon indicating copy to clipboard operation
core copied to clipboard

[Feature request] Page TOC on right side bar

Open jmaneyrol69 opened this issue 3 years ago • 6 comments

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.

jmaneyrol69 avatar Sep 09 '21 13:09 jmaneyrol69

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.

github-actions[bot] avatar Sep 17 '21 00:09 github-actions[bot]

@meteorlxy Please look into it.

ramesh-dada avatar Sep 17 '21 03:09 ramesh-dada

Refer to #52

gavinliu6 avatar Sep 22 '21 09:09 gavinliu6

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.

github-actions[bot] avatar Sep 30 '21 00:09 github-actions[bot]

hello 123 here is the activity.

ramesh-dada avatar Sep 30 '21 08:09 ramesh-dada

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.

github-actions[bot] avatar Oct 08 '21 00:10 github-actions[bot]