Skip to content

Commit c4d8a61

Browse files
authored
Merge pull request #501 from neuromatch/jupyter-book-2
Jupyter book 2
2 parents b27c373 + b7df46f commit c4d8a61

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/publish-book-v2.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767
uses: actions/cache@v4
6868
with:
6969
path: book/_build/execute
70-
key: jb2-exec-${{ steps.cache-date.outputs.date }}-${{ hashFiles('tutorials/**/*.ipynb', 'requirements.txt') }}
70+
key: jb2-exec-v2-${{ steps.cache-date.outputs.date }}-${{ hashFiles('tutorials/**/*.ipynb', 'requirements.txt') }}
7171
restore-keys: |
72-
jb2-exec-${{ steps.cache-date.outputs.date }}-
73-
jb2-exec-
72+
jb2-exec-v2-${{ steps.cache-date.outputs.date }}-
73+
jb2-exec-v2-
7474
7575
- name: Cache MyST theme (avoids re-download on every run)
7676
uses: actions/cache@v4

generate_book_v2.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,20 @@ def main():
188188
"title": "Neuromatch Academy: NeuroAI",
189189
"github": f"https://github.com/{ORG}/{REPO}",
190190
"license": "CC-BY-4.0",
191+
"edit_url": None, # disable: auto-computed URL gets book/ prefix from symlink
191192
"toc": toc,
192193
},
193194
"site": {
194195
"template": "book-theme",
195196
"domains": ["neuroai.neuromatch.io"],
196-
"logo": "tutorials/static/ai-logo.png",
197-
"favicon": "tutorials/static/ai-logo.png",
198-
"options": {"logo_text": "Neuromatch Academy: NeuroAI"},
199197
"nav": [],
200198
"actions": [{"title": "GitHub", "url": f"https://github.com/{ORG}/{REPO}"}],
199+
"options": {
200+
"logo": "tutorials/static/ai-logo.png",
201+
"favicon": "tutorials/static/ai-logo.png",
202+
"logo_text": "Neuromatch Academy: NeuroAI",
203+
"hide_title_block": True, # notebook H1 stays in body; suppress duplicate
204+
},
201205
},
202206
}
203207

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
---
2+
short_title: Overview
3+
---
4+
15
# Schedule

tutorials/TechnicalHelp/tech_intro.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
short_title: Overview
3+
---
4+
15
# Technical Help
26

37
<img src="chapter_cover.png" alt="Wrench labeled neuromatch on top of a phone" width="100%">

0 commit comments

Comments
 (0)