Enable editLink on specific page #1762
Labels
good first issue
Good for newcomers
topic: config
Relates to VuePress config
type: feature request
Request to add a new feature
Feature request
For now we can globally enable
editLinks
(for page edition) and disable it per page witheditLink
front matter property, but we can't do the opposite: Having globaleditLinks
prop to befalse
, and enableeditLink
per page.For example:
If
themeConfig.editLinks
from my.vuepress/config
file isfalse
andeditLink
from one of my pages istrue
, it won't work, the page will not show the edit link.What problem does this feature solve?
If I want only one page of my app to be editable, I need to enable page edition globally and then set
editLink
tofalse
on all other pages . We should be able to do the oppositeWhat does the proposed API look
We should use
editLinks
property fromthemeConfig
by default, and overwrite it with theeditLink
property defined on the current page if it exists.How should this be implemented in your opinion?
This behavior has been implemented for next/previous links in this commit
Are you willing to work on this yourself?
Why not, however it could be a good first issue for external contributors 😉
The text was updated successfully, but these errors were encountered: