You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/docs/HowTo_JupyterBook.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# What is Jupyterbook?
2
2
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
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#build-from-the-template-provided">Build from the template provided</a></li>
<liclass="toc-h2 nav-item toc-entry"><aclass="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>
<p>We use JupyterBook for documentation and sharing computational notebooks. <aclass="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: <aclass="reference external" href="https://jupyterbook.org/en/stable/intro.html">https://jupyterbook.org/en/stable/intro.html</a></p>
392
398
<sectionid="quick-start">
393
399
<h2>Quick start<aclass="headerlink" href="#quick-start" title="Link to this heading">#</a></h2>
394
400
<ulclass="simple">
@@ -397,8 +403,9 @@ <h2>Quick start<a class="headerlink" href="#quick-start" title="Link to this hea
<h2>OR Build from the template provided in this Repo!<aclass="headerlink" href="#or-build-from-the-template-provided-in-this-repo" title="Link to this heading">#</a></h2>
402
409
<p>(1) Use and adapt the two template files (_toc.yml, _config.yml) to your main code base, and be sure to keep the <codeclass="docutils literal notranslate"><spanclass="pre">docs</span></code> structure, i.e.,</p>
@@ -413,13 +420,16 @@ <h3>Build from the template provided<a class="headerlink" href="#build-from-the-
413
420
</ul>
414
421
<p>(3) to build your docs & hosting see here: <aclass="reference external" href="https://jupyterbook.org/en/stable/publish/gh-pages.html">https://jupyterbook.org/en/stable/publish/gh-pages.html</a></p>
<p>and then follow terminal prompt (check errors, etc)- viola!</p>
420
-
<p>To then deploy the book live, see: <aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">gh-pages</span></code></p>
422
427
</section>
428
+
<sectionid="deployment">
429
+
<h2>Deployment:<aclass="headerlink" href="#deployment" title="Link to this heading">#</a></h2>
430
+
<p>To then deploy the book live, see: <aclass="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 > Pages and set up anaction to deploy to a new branch (that you never merge) called <codeclass="docutils literal notranslate"><spanclass="pre">gh-pages</span></code>:</p>
432
+
<p><imgalt="Screen Shot 2025-06-17 at 2 20 19 PM" src="https://github.com/user-attachments/assets/17d13802-6543-4859-ac09-7abbd491277d" /></p>
423
433
</section>
424
434
</section>
425
435
@@ -478,10 +488,9 @@ <h3>Build from the template provided<a class="headerlink" href="#build-from-the-
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#build-from-the-template-provided">Build from the template provided</a></li>
<liclass="toc-h2 nav-item toc-entry"><aclass="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>
<liclass="toc-h2 nav-item toc-entry"><aclass="reference internal nav-link" href="#well-before-a-publication">Well before a publication:</a><ulclass="nav section-nav flex-column">
377
-
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code & data:</a></li>
383
+
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code & data:</a></li>
378
384
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-format-your-code-documentation">Main Principles 🚧 Format your code & documentation:</a></li>
379
385
</ul>
380
386
</li>
@@ -407,7 +413,7 @@ <h1>Style Guide for Projects in the MLAI<a class="headerlink" href="#style-guide
407
413
<h2>Well before a publication:<aclass="headerlink" href="#well-before-a-publication" title="Link to this heading">#</a></h2>
408
414
<p>Please see our overall guide on code & project formatting <aclass="reference external" href="https://github.com/AdaptiveMotorControlLab/WorkspaceTemplate/blob/main/README.md">here</a>.</p>
<h3>Main Principles 🔨 Organize your code & data:<aclass="headerlink" href="#main-principles-organize-your-code-data" title="Link to this heading">#</a></h3>
416
+
<h3>Main Principles 🔨 Organize your code & data:<aclass="headerlink" href="#main-principles-organize-your-code-data" title="Link to this heading">#</a></h3>
411
417
<ulclass="simple">
412
418
<li><p>For experimental and ML projects, please use <aclass="reference external" href="https://www.datajoint.com/">DataJoint/databases</a></p></li>
413
419
<li><p>Be sure you work under a lab repo, typically called “<aclass="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
579
585
<navclass="bd-toc-nav page-toc">
580
586
<ulclass="visible nav section-nav flex-column">
581
587
<liclass="toc-h2 nav-item toc-entry"><aclass="reference internal nav-link" href="#well-before-a-publication">Well before a publication:</a><ulclass="nav section-nav flex-column">
582
-
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code & data:</a></li>
588
+
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-organize-your-code-data">Main Principles 🔨 Organize your code & data:</a></li>
583
589
<liclass="toc-h3 nav-item toc-entry"><aclass="reference internal nav-link" href="#main-principles-format-your-code-documentation">Main Principles 🚧 Format your code & documentation:</a></li>
0 commit comments