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

Add open in browser functionality #643

Merged
merged 6 commits into from
May 7, 2018
Merged

Add open in browser functionality #643

merged 6 commits into from
May 7, 2018

Conversation

yangshun
Copy link
Contributor

@yangshun yangshun commented May 6, 2018

Motivation

Improve developer experience

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

  • yarn start
  • Browser opens to localhost:3000

Also tested with a running server, it opens in localhost:3001, which is correct.

Related PRs

NA

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label May 6, 2018
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 6, 2018

Deploy preview for docusaurus-preview ready!

Built with commit a54800a

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

Copy link
Contributor

@JoelMarcey JoelMarcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangshun Interesting. Does it just choose the default browser of the running system to open?

@yangshun
Copy link
Contributor Author

yangshun commented May 6, 2018

@JoelMarcey Yep it uses the user's default browser setting! Saves me a few seconds of typing each time I start the server.

@JoelMarcey
Copy link
Contributor

Got it. I wanted to play around this a bit before putting in an official release, that's why it will go in the next version. Hope that is cool.

One more rebase?

@yangshun
Copy link
Contributor Author

yangshun commented May 6, 2018

Yep totally ok! It's not that important to be in 1.0.15 as it's not a user-facing feature. Thanks!

@JoelMarcey
Copy link
Contributor

Great! Just one more rebase. Sorry. Just want to always be clean, even if I am pretty sure the merge would be fine 😄

@yangshun
Copy link
Contributor Author

yangshun commented May 7, 2018

Done! I think you are able to rebase the PR too. There's an "Update branch" button which I use to rebase other contributors' PRs before merging. Does that work?

@JoelMarcey
Copy link
Contributor

I guess you are right, I can just update the branch 😄

@JoelMarcey JoelMarcey merged commit 1a6f2fc into facebook:master May 7, 2018
@yangshun
Copy link
Contributor Author

yangshun commented May 7, 2018

Thank you! 😍@JoelMarcey

@yangshun yangshun deleted the open branch May 7, 2018 16:50
@ahmadalfy
Copy link
Contributor

I love this PR 😍

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.

5 participants