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

Automatically refresh the browser on edits #420

Merged
merged 1 commit into from
Apr 6, 2015
Merged

Conversation

d0ugal
Copy link
Member

@d0ugal d0ugal commented Apr 4, 2015

Use python-livereload to automatically refresh your browser when changes are saved.

Closes #163

@d0ugal
Copy link
Member Author

d0ugal commented Apr 4, 2015

Dropping watchdog and our hacky webserver for livereload seems like an epic win on it's own, but then we get automatic page refreshing thrown in fro free.

@d0ugal d0ugal force-pushed the reload branch 3 times, most recently from cf9ed2a to f2fd5e5 Compare April 4, 2015 20:50
@d0ugal
Copy link
Member Author

d0ugal commented Apr 5, 2015

The auto-reloading isn't as fast and slick as I would like, but generally this is working well. The serve output is totally different. Looking for a way to make it seem more familiar as we lost some information from before.

@d0ugal d0ugal added this to the 0.12.0 milestone Apr 6, 2015
Use python-livereload to automatically refresh your browser.

Closes mkdocs#163
d0ugal added a commit that referenced this pull request Apr 6, 2015
Automatically refresh the browser on edits
@d0ugal d0ugal merged commit 66bd5d4 into mkdocs:master Apr 6, 2015
@d0ugal d0ugal deleted the reload branch April 6, 2015 14:18
@ngzhian
Copy link
Contributor

ngzhian commented Apr 6, 2015

wow this is great! the serve.py has almost no code right now 👍

@d0ugal
Copy link
Member Author

d0ugal commented Apr 6, 2015

@ngzhian Yeah, it's really neat :) Have you tried it? The output is quite different than before, but I think it is probably okay.

@d0ugal
Copy link
Member Author

d0ugal commented Apr 6, 2015

@robinandeer if you still use a similar setup, would you be able to help by testing out the latest git master? You helped in the past with an issue regarding auto-reload and docker/vagrant (#178) . I'm concerned this change may have brought that issue back, but I'm not sure how to best test it.

@robinandeer
Copy link
Contributor

I've dropped my Docker setup. It quickly became a little too complex running on a Mac. However, I'd be happy to try out a Vagrant environment! Will get back soon.

@d0ugal
Copy link
Member Author

d0ugal commented Apr 8, 2015

@robinandeer Thanks! I'll try and give it a test too - I was being lazy :)

@d0ugal
Copy link
Member Author

d0ugal commented Apr 8, 2015

Unfortunately I had to revert this, I was able to test on Windows early this morning but it seems that python-livereload doesn't work well on Windows. I'll investigate later and then hopefully figure out a way to make this work.

@d0ugal d0ugal restored the reload branch April 8, 2015 11:35
@d0ugal
Copy link
Member Author

d0ugal commented Apr 8, 2015

New attempt will be at #433

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically refresh documentation when using mkdocs serve
3 participants