-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
docs editUrl should accept a function to handle specific cases #3152
Copy link
Copy link
Closed
Labels
featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.This is not a bug or issue with Docusausus, per se. It is a feature request for the future.good first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.help wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change
Metadata
Metadata
Assignees
Labels
featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.This is not a bug or issue with Docusausus, per se. It is a feature request for the future.good first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.help wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change
Type
Fields
Give feedbackNo fields configured for issues without a type.
🐛 Bug Report
In v2 alpha 59, the "Edit this page" links for content docs are generated by joining the
editUrlwith thepathsetting. I am using a markdown preprocessor that generates files into the provided path, so I would like the edit links to point at the original files, not the generated ones.Have you read the Contributing Guidelines on issues?
Y
To Reproduce
(Write your steps here:)
in presets:
Expected behavior
The
pathsetting doesn't play a part in the edit url. In other words, the editUrl will look likehttps://github.com/scalapb/zio-grpc/edit/master/docs/intro.mdActual Behavior
The generated edit url contains the path to the generated file (which is not checked in):
https://github.com/scalapb/zio-grpc/edit/master/zio-grpc-docs/target/mdoc/intro.mdYour Environment
Repository: https://github.com/scalapb/zio-grpc
Markdown generator processes files in docs into
zio-grpc-docs/target/mdoc.To invoke it, install sbt, and type:
sbt docs/mdoc. Then cd towebsiteand do ayarn start.The docs dire