-
Notifications
You must be signed in to change notification settings - Fork 55
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
Makefile in template? #23
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Hi @rowanc1 - thanks for the comment! Could you expand more on what you'd like to see (based on your use cases). At least for me, the jupyter-book CLI takes care of mostly everything. My simple workflow is pretty much as follows:
I usually speed up the build by caching executed notebooks. But if others are using the CLI in a different way that would benefit from a Makefile I'd be interested to hear. |
The make file that I just created is below. :) I completely agree that it is a bit redundant, my reflex, I suppose, is to reach for The watch and serve commands below are nice to have when I am writing and I hit save, then the book rebuilds! Some of the integrations that I am building to jupyter-book also require the book to be run locally on a web server rather than off the file system. .PHONY: build serve watch
build:
jupyter-book build .
watch:
nodemon -w './**' -e yml,md,ipynb --exec jupyter-book build .
serve:
cd _build/html; python -m http.server 9000 |
Awesome thanks! That's helpful (and interesting to know how you're using JB). I'm going to leave this issue open for a bit to see if there's any other interest :) |
Wondering if including a
Makefile
might be a good idea? To me this is very helpful in onboarding to repositories as I can look to see what the commands are, and my previous relationships with sphinx always had Makefiles I believe?!Even if they are small wrappers on the
jupyter-book
CLImake build/html/docs/serve
The text was updated successfully, but these errors were encountered: