Skip to content

Commit 0e33db6

Browse files
authored
Docs additions! (#3)
* logo for JB Signed-off-by: Mackenzie Mathis <[email protected]> * Update StyleGuide.md - space fix Signed-off-by: Mackenzie Mathis <[email protected]> * Update HowTo_JupyterBook.md Signed-off-by: Mackenzie Mathis <[email protected]> * Delete docs/intro Signed-off-by: Mackenzie Mathis <[email protected]> * Update _toc.yml Signed-off-by: Mackenzie Mathis <[email protected]> * Update _config.yml Signed-off-by: Mackenzie Mathis <[email protected]> --------- Signed-off-by: Mackenzie Mathis <[email protected]>
1 parent 4c67940 commit 0e33db6

File tree

6 files changed

+16
-48
lines changed

6 files changed

+16
-48
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ html:
2020
<div>Powered by <a href="https://jupyterbook.org/">Jupyter Book</a>.</div>
2121
2222
repository:
23-
url: https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines #change me
23+
url: https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate #change me
2424
path_to_book: docs
2525
branch: main
2626

2727
launch_buttons:
28-
colab_url: "https://colab.research.google.com/github/SCENE-Collaboration/Code_and_Documentation_Guidelines/examples/yourdemo.ipynb"
28+
colab_url: "https://colab.research.google.com/github.com/AdaptiveMotorControlLab/WorkspaceTemplate/examples/yourdemo.ipynb"

_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
format: jb-book
22
root: docs/StyleGuide
3+
logo: docs/logo.png
34
parts:
45
- caption: Main Documentation
56
chapters:

docs/HowTo_JupyterBook.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# What is Jupyterbook?
22

3-
https://jupyterbook.org/en/stable/intro.html
3+
We use JupyterBook for documentation and sharing computational notebooks. [Here](https://www.nature.com/articles/d41586-018-07196-1) is a nice article for motivation.
4+
5+
📑 The documentation: https://jupyterbook.org/en/stable/intro.html
46

57

68
## Quick start
@@ -9,7 +11,7 @@ https://jupyterbook.org/en/stable/intro.html
911
jupyter-book create --cookiecutter YourClonedRepo/
1012
```
1113

12-
### Build from the template provided
14+
## OR Build from the template provided in this Repo!
1315

1416
(1) Use and adapt the two template files (_toc.yml, _config.yml) to your main code base, and be sure to keep the `docs` structure, i.e.,
1517
```
@@ -26,11 +28,17 @@ jupyter-book create --cookiecutter YourClonedRepo/
2628

2729
TL;DR in the main repo run:
2830
```python
29-
jupyter-book build .
31+
jupyter-book build .
3032
```
3133
and then follow terminal prompt (check errors, etc)- viola!
3234

3335

36+
## Deployment:
37+
3438
To then deploy the book live, see: https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions
3539

36-
In short, you will set up a git action to deploy to a new branch (that you never merge) called `gh-pages`
40+
In short, Go to Settings > Pages and set up anaction to deploy to a new branch (that you never merge) called `gh-pages`:
41+
42+
![Screen Shot 2025-06-17 at 2 20 19 PM](https://github.com/user-attachments/assets/17d13802-6543-4859-ac09-7abbd491277d)
43+
44+

docs/StyleGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Please see our overall guide on code & project formatting [here](https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/blob/main/README.md).
77

8-
### Main Principles 🔨 Organize your code & data :
8+
### Main Principles 🔨 Organize your code & data:
99
- For experimental and ML projects, please use [DataJoint/databases](https://www.datajoint.com/)
1010
- Be sure you work under a lab repo, typically called "https://github.com/AdaptiveMotorControlLab/YourName_workspace".
1111
- For larger projects (DLC, CEBRA, ExperimentalPipelines, you should be sure your "final" work gets into a pipeline; talk to Mackenzie about this)

docs/images/logo.png

295 KB
Loading

docs/intro

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)