-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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(v2): add editUrl option to docs plugin #1818
Conversation
Deploy preview for docusaurus-preview ready! Built with commit 5f3541a |
Deploy preview for docusaurus-2 ready! Built with commit 5f3541a |
Deploy preview for docusaurus-2 ready! Built with commit 89ee3c1 |
Deploy preview for docusaurus-preview ready! Built with commit 89ee3c1 |
6fe6a77
to
340d232
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Getting nearer towards parity. Do we want to add last updated time later as well?
@@ -23,3 +23,30 @@ | |||
display: none; | |||
} | |||
} | |||
|
|||
.editButton { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed all of these because we should be using Infima classes instead. Anyway I decided to make it look like a link instead of a button and shifted the position to be at the bottom since it's the more common practice for docs sites.
Motivation
editUrl
option (URL for editing) to docs plugin. If this field is set, there will be "Edit" button for each document pageHave you read the Contributing Guidelines on pull requests?
yes
Test Plan