-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Autoreload on code changes #31
Comments
Hi Jacob, this should already be implemented, you have to manually add the directory to watch using the correct flag. Best,Jonathan Apologies for any cryptic brevity or errors; this message was composed on a mobile device. On Thu, Jun 11, 2015 at 8:05 PM, Jacob Magnusson notifications@github.com
|
Indeed it did. Can't help but feel a bit stupid. Thanks! |
No problem. Have fun using the tool. :-) |
Thanks! I wonder though.. Why doesn't it also build the code when starting up? Having to run |
I don't get the question. Could you show me what you're trying to achieve? Best,Jonathan Apologies for any cryptic brevity or errors; this message was composed on a mobile device. On Fri, Jun 12, 2015 at 1:49 AM, Jacob Magnusson notifications@github.com
|
$ cd docs
$ rm -rf _build
$ sphinx-autobuild -z ../flask_resize . _build/html
[I 150612 01:52:21 server:271] Serving on http://127.0.0.1:8000
[I 150612 01:52:21 handlers:58] Start watching changes
[I 150612 01:52:21 handlers:60] Start detecting changes It doesn't build the docs. Instead I have to do: $ cd docs
$ rm -rf _build
$ sphinx-build . _build/html
Running Sphinx v1.3.1
making output directory...
loading pickled environment... not yet created
[...]
$ sphinx-autobuild -z ../flask_resize . _build/html
[I 150612 01:52:21 server:271] Serving on http://127.0.0.1:8000
[I 150612 01:52:21 handlers:58] Start watching changes
[I 150612 01:52:21 handlers:60] Start detecting changes |
Oh, now I got it. Sorry it's late. You're right, that could be useful and would also be easy to implement. Feel free to open an issue for that (or a PR :-). |
Might do it when I get some more spare time... What do you think, should the docs be re-built by default? |
Yes, I would do it by default, with a switch to turn it off. |
@GaretJax this doesn't seem to work for me? When I save, it triggers the rebuild as expected, but the built content is not actually changed. Command:
Output:
|
To update changes to the doc strings (autodoc) in the source code in the HTML output, the sphinx-build must not run in the same process as the server / sphinx-build must run in a subprocess so that changed source code is re-imported. This issue was introduced in commit d57f117 / a commit without a PR & review. Related: sphinx-doc#31 (comment) Closes: sphinx-doc#148 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
To update changes to the doc strings (autodoc) in the source code in the HTML output, the sphinx-build must not run in the same process as the server / sphinx-build must run in a subprocess so that changed source code is re-imported. This issue was introduced in commit d57f117 / a commit without a PR & review. Related: sphinx-doc#31 (comment) Closes: sphinx-doc#148 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
To update changes to the doc strings (autodoc) in the source code in the HTML output, the sphinx-build must not run in the same process as the server / sphinx-build must run in a subprocess so that changed source code is re-imported. This issue was introduced in commit d57f117 / a commit without a PR & review. Related: sphinx-doc#31 (comment) Closes: sphinx-doc#148 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
To update changes to the doc strings (autodoc) in the source code in the HTML output, the sphinx-build must not run in the same process as the server / sphinx-build must run in a subprocess so that changed source code is re-imported. This issue was introduced in commit d57f117 / a commit without a PR & review. Related: sphinx-doc#31 (comment) Closes: sphinx-doc#148 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
First of all, thanks for a great project.
One thing that would be awesome is if
sphinx-autobuild . _build/html
could also include checking if code has been updated for my project. Right now the autodoc parts of my documentation is not reflected when the docstrings change in the code. What do you think? Would this be possible to implement?The text was updated successfully, but these errors were encountered: