Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add filePath to PageData #2140

Merged
merged 9 commits into from
Apr 30, 2023
Merged

feat: add filePath to PageData #2140

merged 9 commits into from
Apr 30, 2023

Conversation

chgeo
Copy link
Contributor

@chgeo chgeo commented Mar 26, 2023

In the edit link pattern function, the current relativePath (from PageData) is not a file path and hence does not allow to distinguish paths from different packages.
Add a new relativeFilePath string for this. Keep relativePath for compatibility reasons.

Fixes #2088

In the edit link pattern function, the current `relativePath`
(from `PageData`) is not a file path and hence does not allow
to distinguish paths from different packages.
Add a new `relativeFilePath` string for this.  Keep `relativePath`
for compatibility reasons.
@chgeo chgeo changed the title Add relativeFilePath to PageData for edit link pattern Add relativeFilePath to PageData for edit link pattern Mar 26, 2023
@chgeo
Copy link
Contributor Author

chgeo commented Apr 28, 2023

@brc-dd any chance this get merged soon? In our multi-package deployment of Vitepress, the edit button doesn't work for half of the pages.

@brc-dd brc-dd self-assigned this Apr 28, 2023
@chgeo chgeo changed the title Add relativeFilePath to PageData for edit link pattern feat(edit link): add relativeFilePath to PageData Apr 29, 2023
@brc-dd brc-dd changed the title feat(edit link): add relativeFilePath to PageData feat: add filePath to PageData Apr 30, 2023
@brc-dd brc-dd merged commit b24acc6 into vuejs:main Apr 30, 2023
8 checks passed
@chgeo chgeo deleted the editlink-path branch April 30, 2023 09:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

editLink should be able to use the link of the route rewrites keys.
2 participants