Skip to content

Commit c27df1f

Browse files
committed
updated content of readme
1 parent 5ff0a1f commit c27df1f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
11
# A template jupyter book documentation repository
22

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.
8+
9+
```{bash}
10+
$ git clone https://github.com/ARCTraining/template-jb-docs.git
11+
12+
$ conda env create -f environment.yml
13+
```
14+
15+
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

Comments
 (0)