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

fix: enable live reloading title of doc #1507

Merged
merged 7 commits into from
May 27, 2019

Conversation

tusharf5
Copy link
Contributor

@tusharf5 tusharf5 commented May 22, 2019

Motivation

Fix enable live reloading when doc title is changed #1213

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

Local Testing. The blog is working locally after changes without any errors or warnings.

Demo Video Before Changes

Demo Video After Changes

Related PRs

N.A

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 22, 2019

Deploy preview for docusaurus-2 ready!

Built with commit d6ddcee

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

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 22, 2019

Deploy preview for docusaurus-preview ready!

Built with commit d6ddcee

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

Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

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

Please rebase. And also, don't just reload when title is changed. I think we should also reload for other metadata cases :)

For example
https://docusaurus.io/docs/en/doc-markdown#markdown-headers

hide_title and sidebar_label

@tusharf5
Copy link
Contributor Author

tusharf5 commented May 22, 2019

Please rebase. And also, don't just reload when title is changed. I think we should also reload for other metadata cases :)

For example
https://docusaurus.io/docs/en/doc-markdown#markdown-headers

hide_title and sidebar_label

@endiliey Made the changes 👍 Now it reloads on title, hide_title and sidebar_label.

@tusharf5
Copy link
Contributor Author

Hey, @endiliey I just realized that I did a git merge instead of a rebase. Will it be an issue? If yes then I can re-submit the PR. My Bad, It's my first PR for an open source package 😥.

@yangshun
Copy link
Contributor

@tusharf5 Merging is fine, the more important thing is you have the latest code within your branch.

Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

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

lgtm actually.

@tusharf5
Copy link
Contributor Author

@endiliey I've pushed the changes that you suggested. : )

@endiliey
Copy link
Contributor

did u test it out again ? im on vacation so my response is slow

@tusharf5
Copy link
Contributor Author

Oh okay : ) and yeah I've tested it out, it works as expected. (live reloads for the specified metadata attributes) @endiliey

@endiliey
Copy link
Contributor

ok. lets ship it. 🔥🔥 u ready ? 👀

@endiliey endiliey merged commit bff9a53 into facebook:master May 27, 2019
@tusharf5
Copy link
Contributor Author

Thank you : )

@endiliey
Copy link
Contributor

endiliey commented May 27, 2019

Nah, thanks to you as the contributor😛👍

tusharf5 added a commit to tusharf5/Docusaurus that referenced this pull request May 27, 2019
* fix: enable live reloading title of doc

* fix: removing unnecessary reload statements

* fix: only title change should trigger a live reload

* fix: adding more properties that triggers a live reload

* fix: refactoring
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