Skip to content

Commit

Permalink
removing jupytext redundant markdown copies of notebooks, more work t…
Browse files Browse the repository at this point in the history
…han worth
  • Loading branch information
mfinzi committed Mar 8, 2021
1 parent 89f26be commit 1f2fc4f
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 730 deletions.
22 changes: 2 additions & 20 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ sphinx-build -b html -D jupyter_execute_notebooks=off docs docs/build/html
```
You can then see the generated documentation in `docs/build/html/index.html`.

## Update notebooks
### Update notebooks
We follow the approach of [Jax](https://jax.readthedocs.io/) in how the documentation is setup and how to contribute.
We use [jupytext](https://jupytext.readthedocs.io/) to maintain two synced copies of the notebooks
in `docs/notebooks`: one in `ipynb` format, and one in `md` format. The advantage of the former
is that it can be opened and executed directly in Colab; the advantage of the latter is that
it makes it much easier to track diffs within version control.

### Editing ipynb

Expand All @@ -29,18 +25,4 @@ edit the notebooks in Jupyter or in Colab. To edit notebooks in the Colab interf
open <http://colab.research.google.com> and `Upload` from your local repo.
Update it as needed, `Run all cells` then `Download ipynb` (for editing and running in Colab you will need to add
`!pip install git+https://github.com/mfinzi/equivariant-MLP.git`).
You may want to test that it executes properly, using `sphinx-build` as explained above.

### Editing md

For making smaller changes to the text content of the notebooks, it is easiest to edit the
`.md` versions using a text editor.

### Syncing notebooks

After editing either the ipynb or md versions of the notebooks, you can sync the two versions
using [jupytext](https://jupytext.readthedocs.io/) by running:

```
$ jupytext --sync docs/notebooks/*
```
You may want to test that it executes properly, using `sphinx-build` as explained above.
2 changes: 1 addition & 1 deletion docs/manual_make.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
jupytext --sync ./notebooks/*
# jupytext --sync ./notebooks/*
sphinx-build -b html . ./build/html
205 changes: 0 additions & 205 deletions docs/notebooks/building_a_model.md

This file was deleted.

48 changes: 0 additions & 48 deletions docs/notebooks/mixed_tensors.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/notebooks/multilinear_maps.md

This file was deleted.

0 comments on commit 1f2fc4f

Please sign in to comment.