You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A template jupyter book documentation repository
2
2
3
+
This is a template repository that can be used when generating documentation using [Jupyter-books](https://github.com/executablebooks/jupyter-book) and hosting the site via GitHub pages.
4
+
5
+
## Working with this project locally
6
+
7
+
You can get this project working locally by using the environment.yml file to create a conda environment that contains all the dependencies required to get started.
To build the html content locally you can use the `jupyter-book` command line tool:
16
+
17
+
```{bash}
18
+
# navigate to the repository root
19
+
$ cd template-jb-docs
20
+
# sometimes worth running jupyter-book clean book/ to remove old files
21
+
$ jupyter-book build book/
22
+
```
23
+
### Windows
24
+
25
+
An important note is that the JupyterBook project does not currently support Windows ([see here for more](https://jupyterbook.org/advanced/advanced.html#working-on-windows)).
26
+
27
+
To aid with this we have created a `Vagrantfile` that can allow Windows users who have a virtualisation provider installed (such as [VirtualBox](https://www.virtualbox.org/)) and [Vagrant](https://www.vagrantup.com/) installed to create a headless virtual Linux machine that will build the jupyter book. You can do this with the following steps once you've installed a virtualisation provider and vagrant:
28
+
```
29
+
# within git-bash or powershell
30
+
$ cd template-jb-docs
31
+
$ vagrant up
32
+
33
+
# to rebuild the site after changes with the vagrant box running
34
+
$ vagrant reload --provision
35
+
36
+
# don't forget to destroy the box when you're done
37
+
$ vagrant destroy
38
+
```
39
+
40
+
This will build the jupyter-book html files on your Windows file system (by navigating via /vagrant) so your local build will still persist after you've destroyed your vagrant box.
0 commit comments