Description
Feature request
For now we can globally enable editLinks
(for page edition) and disable it per page with editLink
front matter property, but we can't do the opposite: Having global editLinks
prop to be false
, and enable editLink
per page.
For example:
If themeConfig.editLinks
from my .vuepress/config
file is false
and editLink
from one of my pages is true
, 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
to false
on all other pages . We should be able to do the opposite
What does the proposed API look
We should use editLinks
property from themeConfig
by default, and overwrite it with the editLink
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 😉