Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6c48f08
ref: minor of check_nb, replace os with pathlib
asoplata Oct 27, 2025
c35eb08
ref: build arg str var, use "repo-owner"
asoplata Oct 27, 2025
4ebb35a
ref: minor log output improvement
asoplata Oct 27, 2025
c3a189b
ref: add unused args+docs for new version args
asoplata Oct 27, 2025
2043ea9
ref: debug comments, and pathlib replacement
asoplata Oct 28, 2025
6d957e1
ref: add CLI args to get_commit and ruff
asoplata Oct 28, 2025
586b23f
ref: major overhaul of indexing, part 1 of 2-3
asoplata Oct 28, 2025
76e0cf5
ref: overhaul of index/pathing, part 2 of 3
asoplata Oct 28, 2025
d6ad627
ref: indexing overhaul part 3 of 3
asoplata Oct 29, 2025
72d5971
ref: restore future _structure_json function
asoplata Oct 29, 2025
c4b25ba
ref: rename execution-filter to execution-type
asoplata Oct 29, 2025
846d9a1
propagate rename to CI
asoplata Oct 29, 2025
789092c
ref: major overhaul of dev CLI args, part 1 of 2/3
asoplata Oct 29, 2025
7ebddf1
ref: finish overhaul of dev CLI args, part 2 of 2
asoplata Oct 29, 2025
607ecb0
ref: ruff run
asoplata Oct 29, 2025
47d2ecd
ref: incr recorded JSON flags verbosity
asoplata Oct 29, 2025
9d39a17
ref: attn: remove non-exec hash json recording
asoplata Oct 29, 2025
d52206a
ref: 99% formatting and tons of COMMENTS
asoplata Oct 29, 2025
a1725d7
doc: Add large synopsis of entire building program
asoplata Oct 30, 2025
e7d1ca0
doc: docs and comments for get-hash
asoplata Oct 31, 2025
359b8a0
ref: ref all post-val vers checks to is_dev_build
asoplata Oct 31, 2025
c473a42
ref: move nb_html->json up in call tree
asoplata Oct 31, 2025
a921def
doc: (mostly) incomplete updating of execute docs
asoplata Oct 31, 2025
aeafd0a
ref: change calculate_nb_hash to copy not load nb
asoplata Oct 31, 2025
24b0b87
doc: more docs
asoplata Oct 31, 2025
cea13aa
ref: minor var name change
asoplata Oct 31, 2025
1fc186e
fix: proper nb JSON output loading
asoplata Oct 31, 2025
be82a5d
doc and minor ref: docstrings for remaining funcs
asoplata Oct 31, 2025
b5734a4
ref: change code_version=no_check to CLI arg
asoplata Oct 31, 2025
738ffff
doc: docstring, comment, help, and ruff changes
asoplata Oct 31, 2025
1d57e3b
DELETE dev folder entirely, since bug is fixed
asoplata Oct 31, 2025
667f180
ref: rename sidebar-header to sidebar-section
asoplata Oct 31, 2025
9b838b2
doc: remove Claude hallucination
asoplata Oct 31, 2025
8be7cac
ref: finish renaming navbar to sidebar
asoplata Nov 4, 2025
5e38eb5
maint: remove deprecated ordered_links comments
asoplata Oct 31, 2025
937e9d8
maint and doc: sidebar code docs, and rename funcs
asoplata Oct 31, 2025
86eb4da
doc: add tiny note about "dev" sidebar
asoplata Oct 31, 2025
b013b50
deploy/debug: first attempt at dual dev and stable
asoplata Nov 4, 2025
db89636
deploy: actually execute on master
asoplata Nov 4, 2025
b379a36
debug: un skip new nb to test
asoplata Nov 4, 2025
92dd5e9
deploy: add concurrency cancelling
asoplata Nov 4, 2025
09e0045
deploy: move dev-master build AFTER stable
asoplata Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ '**' ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,9 +44,9 @@ jobs:
- name: Determine Build Method
run: |
if conda run -n textbook-stable-build python scripts/check_nb_versions.py; then
echo "BUILD_FLAG=--execution-filter execute-updated-unskipped-notebooks" >> $GITHUB_ENV
echo "BUILD_FLAG=--execution-type execute-updated-unskipped-notebooks" >> $GITHUB_ENV
else
echo "BUILD_FLAG=--execution-filter execute-updated-unskipped-notebooks" >> $GITHUB_ENV
echo "BUILD_FLAG=--execution-type execute-updated-unskipped-notebooks" >> $GITHUB_ENV
echo "Not all notebooks were executed on the latest version. Forcing re-execution."
fi

Expand All @@ -56,6 +60,28 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .

- name: Create Conda Environment With MPI and Master HNN version
if: github.repository != 'jonescompneurolab/textbook'
run: make create-textbook-dev-build

- name: Test MPI on Dev
if: github.repository != 'jonescompneurolab/textbook'
run: |
conda run -n textbook-dev-build \
mpiexec -np 2 nrniv -mpi -python -c '
from neuron import h;
from mpi4py import MPI;
print(f"Hello from proc {MPI.COMM_WORLD.Get_rank()}");
h.quit()'

- name: Build Website
if: github.repository != 'jonescompneurolab/textbook'
run: |
conda run -n textbook-dev-build env PYTHONUNBUFFERED=1 \
python build.py \
--code-version master \
--execution-type execute-updated-unskipped-notebooks

- name: Deploy to GitHub Pages (Fork)
if: github.repository != 'jonescompneurolab/textbook'
uses: peaceiris/actions-gh-pages@v3
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ endef
all: build

build:
@#"This option is now equivalent to running build with '--execution-filter no-execution'."
@#"This option is now equivalent to running build with '--execution-type no-execution'."
python build.py

force-execute-all-notebooks:
@echo "This option has been replaced with '--execution-filter execute-all-unskipped-notebooks'"
@echo "This option has been replaced with '--execution-type execute-all-unskipped-notebooks'"
@echo "You can run 'make execute-all-unskipped-notebooks' for the same command."

execute-notebooks:
@echo "This option has been replaced with '--execution-filter execute-updated-unskipped-notebooks'"
@echo "This option has been replaced with '--execution-type execute-updated-unskipped-notebooks'"
@echo "You can run 'make execute-updated-unskipped-notebooks' for the same command."

execute-absolutely-all-notebooks:
python build.py --execution-filter execute-absolutely-all-notebooks
python build.py --execution-type execute-absolutely-all-notebooks

execute-all-unskipped-notebooks:
python build.py --execution-filter execute-all-unskipped-notebooks
python build.py --execution-type execute-all-unskipped-notebooks

execute-updated-unskipped-notebooks:
python build.py --execution-filter execute-updated-unskipped-notebooks
python build.py --execution-type execute-updated-unskipped-notebooks

clean:
rm -rf content/*.html
Expand Down
389 changes: 358 additions & 31 deletions build.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions content/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ body.is-mobile .sidebar-close {
}

/*
Element: .navbar-header
Element: .sidebar-header
Description: Contain top-level and non-indexed sidebar elements
*/
.navbar-header {
.sidebar-header {
display: flex;
padding: 10px 0px 20px 0px;
align-items: center;
Expand All @@ -513,13 +513,13 @@ body.is-mobile .sidebar-close {
Element: .title-row
Description: style 'title' text in navbar header
*/
.navbar-header .title-row {
.sidebar-header .title-row {
display: flex;
align-items: center;
width: 100%;
}

.navbar-header a {
.sidebar-header a {
margin: 0px;
}

Expand Down Expand Up @@ -819,7 +819,7 @@ body.dark-mode .topbar {


/*
# Collapse navbar
# Collapse sidebar
# ------------------------------------------------------------
*/

Expand Down
Loading