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(v2): add editUrl option to docs plugin #1818

Merged
merged 5 commits into from
Oct 10, 2019
Merged

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Oct 9, 2019

Motivation

  • Add editUrl option (URL for editing) to docs plugin. If this field is set, there will be "Edit" button for each document page

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

  • Newly added test pass
  • Try locally
    editurl
  • Netlify docs page should have edit button

@endiliey endiliey requested a review from yangshun as a code owner October 9, 2019 13:19
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 9, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 5f3541a

https://deploy-preview-1818--docusaurus-preview.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 5f3541a

https://deploy-preview-1818--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Oct 9, 2019

Deploy preview for docusaurus-2 ready!

Built with commit 89ee3c1

https://deploy-preview-1818--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Oct 9, 2019

Deploy preview for docusaurus-preview ready!

Built with commit 89ee3c1

https://deploy-preview-1818--docusaurus-preview.netlify.com

Copy link
Contributor

@yangshun yangshun left a 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 {
Copy link
Contributor

@yangshun yangshun Oct 9, 2019

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.

@yangshun yangshun merged commit ae678c9 into master Oct 10, 2019
@yangshun yangshun deleted the endiliey/editUrl branch October 10, 2019 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants