Skip to content

Commit 251c064

Browse files
committed
deploy: e2bf0af
1 parent 35b877f commit 251c064

File tree

10 files changed

+80
-39
lines changed

10 files changed

+80
-39
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 7ef9f23ae0ae2fa9613059588ae27c44
3+
config: eddef79d81626ae4161103537239ae11
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

README.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,14 @@
148148

149149

150150

151+
152+
153+
154+
155+
156+
<img src="_static/logo.png" class="logo__image only-light" alt="DocTemplate - Home"/>
157+
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="DocTemplate - Home"/>`);</script>
151158

152-
<p class="title logo__title">DocTemplate</p>
153159

154160
</a></div>
155161
<div class="sidebar-primary-item">
@@ -231,7 +237,7 @@
231237

232238

233239

234-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines" target="_blank"
240+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate" target="_blank"
235241
class="btn btn-sm btn-source-repository-button dropdown-item"
236242
title="Source repository"
237243
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -248,7 +254,7 @@
248254

249255

250256

251-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines/issues/new?title=Issue%20on%20page%20%2FREADME.html&body=Your%20issue%20content%20here." target="_blank"
257+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/issues/new?title=Issue%20on%20page%20%2FREADME.html&body=Your%20issue%20content%20here." target="_blank"
252258
class="btn btn-sm btn-source-issues-button dropdown-item"
253259
title="Open an issue"
254260
data-bs-placement="left" data-bs-toggle="tooltip"

_sources/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+

_sources/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)

_static/logo.png

295 KB
Loading

docs/HowTo_JupyterBook.html

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,14 @@
147147

148148

149149

150+
151+
152+
153+
154+
155+
<img src="../_static/logo.png" class="logo__image only-light" alt="DocTemplate - Home"/>
156+
<script>document.write(`<img src="../_static/logo.png" class="logo__image only-dark" alt="DocTemplate - Home"/>`);</script>
150157

151-
<p class="title logo__title">DocTemplate</p>
152158

153159
</a></div>
154160
<div class="sidebar-primary-item">
@@ -230,7 +236,7 @@
230236

231237

232238

233-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines" target="_blank"
239+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate" target="_blank"
234240
class="btn btn-sm btn-source-repository-button dropdown-item"
235241
title="Source repository"
236242
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -247,7 +253,7 @@
247253

248254

249255

250-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines/issues/new?title=Issue%20on%20page%20%2Fdocs/HowTo_JupyterBook.html&body=Your%20issue%20content%20here." target="_blank"
256+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/issues/new?title=Issue%20on%20page%20%2Fdocs/HowTo_JupyterBook.html&body=Your%20issue%20content%20here." target="_blank"
251257
class="btn btn-sm btn-source-issues-button dropdown-item"
252258
title="Open an issue"
253259
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -371,10 +377,9 @@ <h2> Contents </h2>
371377
</div>
372378
<nav aria-label="Page">
373379
<ul class="visible nav section-nav flex-column">
374-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#quick-start">Quick start</a><ul class="nav section-nav flex-column">
375-
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#build-from-the-template-provided">Build from the template provided</a></li>
376-
</ul>
377-
</li>
380+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#quick-start">Quick start</a></li>
381+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#or-build-from-the-template-provided-in-this-repo">OR Build from the template provided in this Repo!</a></li>
382+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#deployment">Deployment:</a></li>
378383
</ul>
379384
</nav>
380385
</div>
@@ -388,7 +393,8 @@ <h2> Contents </h2>
388393

389394
<section class="tex2jax_ignore mathjax_ignore" id="what-is-jupyterbook">
390395
<h1>What is Jupyterbook?<a class="headerlink" href="#what-is-jupyterbook" title="Link to this heading">#</a></h1>
391-
<p><a class="reference external" href="https://jupyterbook.org/en/stable/intro.html">https://jupyterbook.org/en/stable/intro.html</a></p>
396+
<p>We use JupyterBook for documentation and sharing computational notebooks. <a class="reference external" href="https://www.nature.com/articles/d41586-018-07196-1">Here</a> is a nice article for motivation.</p>
397+
<p>📑 The documentation: <a class="reference external" href="https://jupyterbook.org/en/stable/intro.html">https://jupyterbook.org/en/stable/intro.html</a></p>
392398
<section id="quick-start">
393399
<h2>Quick start<a class="headerlink" href="#quick-start" title="Link to this heading">#</a></h2>
394400
<ul class="simple">
@@ -397,8 +403,9 @@ <h2>Quick start<a class="headerlink" href="#quick-start" title="Link to this hea
397403
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">jupyter</span><span class="o">-</span><span class="n">book</span> <span class="n">create</span> <span class="o">--</span><span class="n">cookiecutter</span> <span class="n">YourClonedRepo</span><span class="o">/</span>
398404
</pre></div>
399405
</div>
400-
<section id="build-from-the-template-provided">
401-
<h3>Build from the template provided<a class="headerlink" href="#build-from-the-template-provided" title="Link to this heading">#</a></h3>
406+
</section>
407+
<section id="or-build-from-the-template-provided-in-this-repo">
408+
<h2>OR Build from the template provided in this Repo!<a class="headerlink" href="#or-build-from-the-template-provided-in-this-repo" title="Link to this heading">#</a></h2>
402409
<p>(1) Use and adapt the two template files (_toc.yml, _config.yml) to your main code base, and be sure to keep the <code class="docutils literal notranslate"><span class="pre">docs</span></code> structure, i.e.,</p>
403410
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>/docs
404411
├── /images
@@ -413,13 +420,16 @@ <h3>Build from the template provided<a class="headerlink" href="#build-from-the-
413420
</ul>
414421
<p>(3) to build your docs &amp; hosting see here: <a class="reference external" href="https://jupyterbook.org/en/stable/publish/gh-pages.html">https://jupyterbook.org/en/stable/publish/gh-pages.html</a></p>
415422
<p>TL;DR in the main repo run:</p>
416-
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="err"></span> <span class="n">jupyter</span><span class="o">-</span><span class="n">book</span> <span class="n">build</span> <span class="o">.</span>
423+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">jupyter</span><span class="o">-</span><span class="n">book</span> <span class="n">build</span> <span class="o">.</span>
417424
</pre></div>
418425
</div>
419426
<p>and then follow terminal prompt (check errors, etc)- viola!</p>
420-
<p>To then deploy the book live, see: <a class="reference external" href="https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions">https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions</a></p>
421-
<p>In short, you will set up a git action to deploy to a new branch (that you never merge) called <code class="docutils literal notranslate"><span class="pre">gh-pages</span></code></p>
422427
</section>
428+
<section id="deployment">
429+
<h2>Deployment:<a class="headerlink" href="#deployment" title="Link to this heading">#</a></h2>
430+
<p>To then deploy the book live, see: <a class="reference external" href="https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions">https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions</a></p>
431+
<p>In short, Go to Settings &gt; Pages and set up anaction to deploy to a new branch (that you never merge) called <code class="docutils literal notranslate"><span class="pre">gh-pages</span></code>:</p>
432+
<p><img alt="Screen Shot 2025-06-17 at 2 20 19 PM" src="https://github.com/user-attachments/assets/17d13802-6543-4859-ac09-7abbd491277d" /></p>
423433
</section>
424434
</section>
425435

@@ -478,10 +488,9 @@ <h3>Build from the template provided<a class="headerlink" href="#build-from-the-
478488
</div>
479489
<nav class="bd-toc-nav page-toc">
480490
<ul class="visible nav section-nav flex-column">
481-
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#quick-start">Quick start</a><ul class="nav section-nav flex-column">
482-
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#build-from-the-template-provided">Build from the template provided</a></li>
483-
</ul>
484-
</li>
491+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#quick-start">Quick start</a></li>
492+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#or-build-from-the-template-provided-in-this-repo">OR Build from the template provided in this Repo!</a></li>
493+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#deployment">Deployment:</a></li>
485494
</ul>
486495
</nav></div>
487496

docs/StyleGuide.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,14 @@
149149

150150

151151

152+
153+
154+
155+
156+
157+
<img src="../_static/logo.png" class="logo__image only-light" alt="DocTemplate - Home"/>
158+
<script>document.write(`<img src="../_static/logo.png" class="logo__image only-dark" alt="DocTemplate - Home"/>`);</script>
152159

153-
<p class="title logo__title">DocTemplate</p>
154160

155161
</a></div>
156162
<div class="sidebar-primary-item">
@@ -232,7 +238,7 @@
232238

233239

234240

235-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines" target="_blank"
241+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate" target="_blank"
236242
class="btn btn-sm btn-source-repository-button dropdown-item"
237243
title="Source repository"
238244
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -249,7 +255,7 @@
249255

250256

251257

252-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines/issues/new?title=Issue%20on%20page%20%2Fdocs/StyleGuide.html&body=Your%20issue%20content%20here." target="_blank"
258+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/issues/new?title=Issue%20on%20page%20%2Fdocs/StyleGuide.html&body=Your%20issue%20content%20here." target="_blank"
253259
class="btn btn-sm btn-source-issues-button dropdown-item"
254260
title="Open an issue"
255261
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -374,7 +380,7 @@ <h2> Contents </h2>
374380
<nav aria-label="Page">
375381
<ul class="visible nav section-nav flex-column">
376382
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#well-before-a-publication">Well before a publication:</a><ul class="nav section-nav flex-column">
377-
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code &amp; data :</a></li>
383+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code &amp; data:</a></li>
378384
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-format-your-code-documentation">Main Principles 🚧 Format your code &amp; documentation:</a></li>
379385
</ul>
380386
</li>
@@ -407,7 +413,7 @@ <h1>Style Guide for Projects in the MLAI<a class="headerlink" href="#style-guide
407413
<h2>Well before a publication:<a class="headerlink" href="#well-before-a-publication" title="Link to this heading">#</a></h2>
408414
<p>Please see our overall guide on code &amp; project formatting <a class="reference external" href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/blob/main/README.md">here</a>.</p>
409415
<section id="main-principles-organize-your-code-data">
410-
<h3>Main Principles 🔨 Organize your code &amp; data :<a class="headerlink" href="#main-principles-organize-your-code-data" title="Link to this heading">#</a></h3>
416+
<h3>Main Principles 🔨 Organize your code &amp; data:<a class="headerlink" href="#main-principles-organize-your-code-data" title="Link to this heading">#</a></h3>
411417
<ul class="simple">
412418
<li><p>For experimental and ML projects, please use <a class="reference external" href="https://www.datajoint.com/">DataJoint/databases</a></p></li>
413419
<li><p>Be sure you work under a lab repo, typically called “<a class="github reference external" href="https://github.com/AdaptiveMotorControlLab/YourName_workspace">AdaptiveMotorControlLab/YourName_workspace</a>”.</p></li>
@@ -579,7 +585,7 @@ <h3>Timeline Major Point:<a class="headerlink" href="#timeline-major-point" titl
579585
<nav class="bd-toc-nav page-toc">
580586
<ul class="visible nav section-nav flex-column">
581587
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#well-before-a-publication">Well before a publication:</a><ul class="nav section-nav flex-column">
582-
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code &amp; data :</a></li>
588+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code &amp; data:</a></li>
583589
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#main-principles-format-your-code-documentation">Main Principles 🚧 Format your code &amp; documentation:</a></li>
584590
</ul>
585591
</li>

genindex.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,14 @@
147147

148148

149149

150+
151+
152+
153+
154+
155+
<img src="_static/logo.png" class="logo__image only-light" alt="DocTemplate - Home"/>
156+
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="DocTemplate - Home"/>`);</script>
150157

151-
<p class="title logo__title">DocTemplate</p>
152158

153159
</a></div>
154160
<div class="sidebar-primary-item">
@@ -230,7 +236,7 @@
230236

231237

232238

233-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines" target="_blank"
239+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate" target="_blank"
234240
class="btn btn-sm btn-source-repository-button dropdown-item"
235241
title="Source repository"
236242
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -247,7 +253,7 @@
247253

248254

249255

250-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines/issues/new?title=Issue%20on%20page%20%2Fgenindex.html&body=Your%20issue%20content%20here." target="_blank"
256+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/issues/new?title=Issue%20on%20page%20%2Fgenindex.html&body=Your%20issue%20content%20here." target="_blank"
251257
class="btn btn-sm btn-source-issues-button dropdown-item"
252258
title="Open an issue"
253259
data-bs-placement="left" data-bs-toggle="tooltip"

search.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,14 @@
149149

150150

151151

152+
153+
154+
155+
156+
157+
<img src="_static/logo.png" class="logo__image only-light" alt="DocTemplate - Home"/>
158+
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="DocTemplate - Home"/>`);</script>
152159

153-
<p class="title logo__title">DocTemplate</p>
154160

155161
</a></div>
156162
<div class="sidebar-primary-item">
@@ -232,7 +238,7 @@
232238

233239

234240

235-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines" target="_blank"
241+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate" target="_blank"
236242
class="btn btn-sm btn-source-repository-button dropdown-item"
237243
title="Source repository"
238244
data-bs-placement="left" data-bs-toggle="tooltip"
@@ -249,7 +255,7 @@
249255

250256

251257

252-
<li><a href="https://github.com/SCENE-Collaboration/Code_and_Documentation_Guidelines/issues/new?title=Issue%20on%20page%20%2Fsearch.html&body=Your%20issue%20content%20here." target="_blank"
258+
<li><a href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/issues/new?title=Issue%20on%20page%20%2Fsearch.html&body=Your%20issue%20content%20here." target="_blank"
253259
class="btn btn-sm btn-source-issues-button dropdown-item"
254260
title="Open an issue"
255261
data-bs-placement="left" data-bs-toggle="tooltip"

0 commit comments

Comments
 (0)