-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ff0a1f
commit c27df1f
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# A template jupyter book documentation repository | ||
|
||
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. | ||
|
||
## Working with this project locally | ||
|
||
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. | ||
|
||
```{bash} | ||
$ git clone https://github.com/ARCTraining/template-jb-docs.git | ||
$ conda env create -f environment.yml | ||
``` | ||
|
||
To build the html content locally you can use the `jupyter-book` command line tool: | ||
|
||
```{bash} | ||
# navigate to the repository root | ||
$ cd template-jb-docs | ||
# sometimes worth running jupyter-book clean book/ to remove old files | ||
$ jupyter-book build book/ | ||
``` | ||
### Windows | ||
|
||
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)). | ||
|
||
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: | ||
``` | ||
# within git-bash or powershell | ||
$ cd template-jb-docs | ||
$ vagrant up | ||
# to rebuild the site after changes with the vagrant box running | ||
$ vagrant reload --provision | ||
# don't forget to destroy the box when you're done | ||
$ vagrant destroy | ||
``` | ||
|
||
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. |