diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..997504b4
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# SCM syntax highlighting & preventing 3-way merges
+pixi.lock merge=binary linguist-language=YAML linguist-generated=true -diff
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index dd95f62a..f5085498 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -23,16 +23,11 @@ jobs:
with:
persist-credentials: false
- - name: Set up Python
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- with:
- python-version: "3.x"
+ - name: Setup pixi
+ uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- name: Build documentation
- run: >
- set -e
- && pip install "jupyter-book<2"
- && jupyter-book build jupyterbook
+ run: pixi run jb
- name: GitHub Pages action
if: success() && github.event_name == 'release'
diff --git a/.github/workflows/docs-linkchecker.yml b/.github/workflows/docs-linkchecker.yml
index 8970d888..847b8595 100644
--- a/.github/workflows/docs-linkchecker.yml
+++ b/.github/workflows/docs-linkchecker.yml
@@ -11,20 +11,16 @@ on:
jobs:
build-docs:
runs-on: ubuntu-latest
+ permissions:
+ contents: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
- fetch-depth: 0
persist-credentials: false
- - name: Set up Python
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- with:
- python-version: "3.x"
+ - name: Setup pixi
+ uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- - name: Linkcheck
- run: >
- set -e
- && pip install "jupyter-book<2"
- && jupyter-book build jupyterbook --builder linkcheck
+ - name: Build documentation
+ run: pixi run linkcheck
diff --git a/.gitignore b/.gitignore
index dcc3b77b..f11ba3c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,7 @@
*.swp
.ipynb_checkpoints/
index.html
+# pixi environments
+.pixi/*
+!.pixi/config.toml
+pixi.lock
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 98e935ef..e6589fc2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -34,7 +34,7 @@ repos:
- id: add-trailing-comma
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.15.20
+ rev: v0.15.22
hooks:
- id: ruff
@@ -55,7 +55,7 @@ repos:
- id: nb-strip-paths
- repo: https://github.com/woodruffw/zizmor-pre-commit
- rev: v1.26.1
+ rev: v1.28.0
hooks:
- id: zizmor
diff --git a/jupyterbook/_config.yml b/jupyterbook/_config.yml
index 1ee27138..dd3de465 100644
--- a/jupyterbook/_config.yml
+++ b/jupyterbook/_config.yml
@@ -1,5 +1,5 @@
# Book settings
-title: The U.S. Integrated Ocean Observing System (IOOS) # The title of the book. Will be placed in the left navbar.
+title: The U.S. Integrated Ocean Observing System (IOOS)
author: IOOS # The author of the book
logo: images/IOOS_logo.png # A path to the book logo
@@ -44,7 +44,8 @@ html:
use_edit_page_button: false # Whether to add an "edit this page" button to pages. If `true`, repository information in repository: must be filled in
use_repository_button: true # Whether to add a link to your repository button
use_issues_button: true # Whether to add an "open an issue" button
- extra_navbar: IOOS # Will be displayed underneath the left navbar.
+ # Hitting https://github.com/jupyter-book/jupyter-book/issues/1966
+ extra_navbar: IOOS
extra_footer: ioos.noaa.gov  
Facebook  
Twitter  
diff --git a/jupyterbook/add_header.py b/jupyterbook/add_header.py
new file mode 100644
index 00000000..27cbddb2
--- /dev/null
+++ b/jupyterbook/add_header.py
@@ -0,0 +1,24 @@
+from pathlib import Path
+
+path = Path(__file__).absolute().parent
+
+
+def add_header(fname):
+ ioos_ui_components_min_js = """\n\n"""
+ ioos_header = """\n