lucabooks
-
Create environment in anaconda with python 3.7 and environment.yml: conda env create -f environment.yml
-
pip uninstall sphinxcontrib-bibtex
-
pip install sphinxcontrib-bibtex==1.0.0
-
Edit the following file: "_ init .py" (Anaconda3\envs{env_name}\Lib\site-packages\jupyter_book\commands):
- build_modified = max([os.stat(ii).st_mtime for ii in build_files]) (comment this out with #)
- freshenv = True (set this to True)
-
Go to desired directory where the book (folder) is located with 'cd'
-
jb create (name of your choiche)
-
jb build (same name as before)
-
in anaconda cmd (postBuild): (- jupyter contrib nbextension install --user)
- jupyter nbextension enable --py widgetsnbextension
- jupyter labextension install @jupyter-widgets/jupyterlab-manager (- jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38 --minimize=False)
-
Github pages:
- Get into the folder of the book with 'cd'
- Run: ghp-import -n -p -f _build/html
-
To update your online book, you would simply make changes to your book’s content on the master branch of your repository, re-build your book with jupyter-book build mybookname/ and then use ghp-import -n -p -f mylocalbook/_build/html as before to push the newly built HTML to the gh-pages branch.