From 1870643a229e7c645b4fc1fd16afb46e50fcb8d4 Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 24 May 2023 12:48:30 -0400 Subject: [PATCH 1/5] Rebuild OHW22 toctree It looks like a page needs to be in an existing toctree, before Sphinx will build a toctree for it. I've added it back to the primary toctree, but I've limited the number of entries that will display in the menu. I've also gone and removed the duplicate search options from the menu while I was there. Closes #245 --- conf.py | 6 +++++- index.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 0b41e4e5..eaab6feb 100644 --- a/conf.py +++ b/conf.py @@ -58,7 +58,10 @@ html_theme_options = { "search_bar_text": "Search this site...", # "google_analytics_id": "", - "navbar_end": ["search-field.html", "navbar-icon-links"], + "navbar_end": [ + # "search-field.html", + "navbar-icon-links" + ], "icon_links": [ { "name": "GitHub", @@ -87,6 +90,7 @@ }, ], "use_edit_page_button": True, + "header_links_before_dropdown": 3 } html_scaled_image_link = False diff --git a/index.md b/index.md index dbbfb2e7..49878933 100644 --- a/index.md +++ b/index.md @@ -168,5 +168,6 @@ Virtual event: We expect to hold formal sessions in at least two time zones, USA about/index.md about/pasthackweeks.md OceanHackWeek 2023 +OceanHackWeek 2022 % posts ``` From ae3eedded422a5eaf2fa9df2ec065e6e5f24ef6b Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 24 May 2023 13:01:33 -0400 Subject: [PATCH 2/5] Helps to have an up to date lockfile for Netlify --- requirements.txt | 84 +++++++++++++++++++++++++++--------------------- 1 file changed, 48 insertions(+), 36 deletions(-) diff --git a/requirements.txt b/requirements.txt index 15c0321f..e0c2f3cd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -ablog==0.10.26 +ablog==0.11.4.post1 +accessible-pygments==0.0.4 alabaster==0.7.12 appnope==0.1.3 argon2-cffi==21.3.0 @@ -11,89 +12,96 @@ backports.functools-lru-cache==1.6.4 beautifulsoup4==4.11.1 bleach==5.0.1 brotlipy==0.7.0 -certifi==2022.12.7 +certifi==2023.5.7 cffi==1.15.1 +cfgv==3.3.1 charset-normalizer==2.1.0 click==8.1.3 colorama==0.4.5 -cryptography==37.0.1 -debugpy==1.6.0 +cryptography==40.0.2 +debugpy==1.6.7 decorator==5.1.1 defusedxml==0.7.1 -docutils==0.18.1 +distlib==0.3.6 +docutils==0.19 entrypoints==0.4 executing==0.8.3 fastjsonschema==2.15.3 feedgen==0.9.0 +filelock==3.12.0 flit_core==3.7.1 -greenlet==1.1.2 +greenlet==2.0.2 +identify==2.5.24 idna==3.3 imagesize==1.4.1 -importlib-metadata==4.11.4 +importlib-metadata==6.6.0 importlib-resources==5.8.0 invoke==1.7.1 ipykernel==6.15.1 -ipython==8.10.0 +ipython==8.13.2 ipython-genutils==0.2.0 -ipywidgets==7.7.1 -jedi==0.18.1 +ipywidgets==8.0.6 +jedi==0.18.2 Jinja2==3.1.2 jsonschema==4.6.2 jupyter-cache==0.5.0 jupyter-client==7.3.4 -jupyter-core==4.11.2 +jupyter_core==5.3.0 jupyterlab-pygments==0.2.2 -jupyterlab-widgets==1.1.1 -jupytext==1.14.0 +jupyterlab-widgets==3.0.7 +jupytext==1.14.5 livereload==2.6.3 lxml==4.9.1 -markdown-it-py==2.2.0 -MarkupSafe==2.1.1 +markdown-it-py==2.1.0 +MarkupSafe==2.1.2 matplotlib-inline==0.1.3 -mdit-py-plugins==0.3.0 +mdit-py-plugins==0.3.5 mdurl==0.1.0 -mistune==0.8.4 -myst-nb==0.16.0 -myst-parser==0.18.0 +mistune==2.0.5 +myst-nb==0.17.2 +myst-parser==0.18.1 nbclient==0.5.13 -nbconvert==6.5.1 +nbconvert==7.4.0 nbformat==5.4.0 nbsphinx==0.8.9 nest-asyncio==1.5.5 +nodeenv==1.8.0 notebook==6.4.12 -numpy==1.23.1 +numpy==1.24.3 packaging==21.3 -pandas==1.4.3 +pandas==2.0.1 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 pip==22.1.2 +platformdirs==2.6.0 +pre-commit==3.3.2 prometheus-client==0.14.1 prompt-toolkit==3.0.30 -psutil==5.9.1 +psutil==5.9.5 ptyprocess==0.7.0 pure-eval==0.2.2 pycparser==2.21 -pydata-sphinx-theme==0.9.0 +pydata-sphinx-theme==0.13.3 Pygments==2.12.0 pyOpenSSL==22.0.0 pyparsing==3.0.9 -pyrsistent==0.18.1 +pyrsistent==0.19.3 PySocks==1.7.1 python-dateutil==2.8.2 pytz==2022.1 PyYAML==6.0 -pyzmq==23.2.0 +pyzmq==25.0.2 requests==2.28.1 Send2Trash==1.8.0 -setuptools==65.5.1 +setuptools==67.7.2 six==1.16.0 snowballstemmer==2.2.0 soupsieve==2.3.1 -Sphinx==5.0.2 +Sphinx==5.3.0 sphinx-autobuild==2021.3.14 -sphinx_design==0.2.0 +sphinx_design==0.4.1 sphinx-togglebutton==0.3.1 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 @@ -101,19 +109,23 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -SQLAlchemy==1.4.39 +SQLAlchemy==1.4.46 stack-data==0.3.0 tabulate==0.8.10 -terminado==0.15.0 +terminado==0.17.1 tinycss2==1.1.1 -tornado==6.2 +toml==0.10.2 +tornado==6.3.2 traitlets==5.3.0 typing_extensions==4.3.0 +tzdata==2023.3 +ukkonen==1.0.1 urllib3==1.26.10 -watchdog==2.1.9 +virtualenv==20.21.1 +watchdog==3.0.0 wcwidth==0.2.5 webencodings==0.5.1 -wheel==0.38.1 -widgetsnbextension==3.6.1 -xarray==2022.3.0 +wheel==0.37.1 +widgetsnbextension==4.0.7 +xarray==2023.5.0 zipp==3.8.0 From 14eb83a990e63a539f5a70b4c601a4b72d07f21f Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 24 May 2023 13:09:09 -0400 Subject: [PATCH 3/5] Lets try telling Netlify to use Python 3.10 rather than 3.8 --- runtime.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 runtime.txt diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 00000000..c8cfe395 --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +3.10 From 6c5fcd314382ef3c6754e9704eb0408200eae342 Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 24 May 2023 13:12:33 -0400 Subject: [PATCH 4/5] Pin an earlier version of ablog --- requirements.txt | 2 +- runtime.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 runtime.txt diff --git a/requirements.txt b/requirements.txt index e0c2f3cd..dd9695e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -ablog==0.11.4.post1 +ablog==0.10.33.post1 accessible-pygments==0.0.4 alabaster==0.7.12 appnope==0.1.3 diff --git a/runtime.txt b/runtime.txt deleted file mode 100644 index c8cfe395..00000000 --- a/runtime.txt +++ /dev/null @@ -1 +0,0 @@ -3.10 From 22c930bc74a1bf6a9def4c083fc9e9646e83a5a3 Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 24 May 2023 13:18:01 -0400 Subject: [PATCH 5/5] Pin Python to 3.8 and freeze for Netlify --- environment.yml | 3 ++- requirements.txt | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/environment.yml b/environment.yml index 368cf857..15e5b350 100644 --- a/environment.yml +++ b/environment.yml @@ -2,11 +2,12 @@ name: ohw-site channels: - conda-forge dependencies: - - python>=3.10 + - python>=3.8,<3.9 # website/blog building - myst-nb>=0.16.0 - sphinx>= 5.0.2 - jupytext + - pre-commit # - sphinx-panels - ablog>=0.10.26 - sphinx-autobuild>=2021.3.14 diff --git a/requirements.txt b/requirements.txt index dd9695e3..4c10a805 100644 --- a/requirements.txt +++ b/requirements.txt @@ -38,13 +38,13 @@ importlib-metadata==6.6.0 importlib-resources==5.8.0 invoke==1.7.1 ipykernel==6.15.1 -ipython==8.13.2 +ipython==8.12.2 ipython-genutils==0.2.0 ipywidgets==8.0.6 jedi==0.18.2 Jinja2==3.1.2 jsonschema==4.6.2 -jupyter-cache==0.5.0 +jupyter-cache==0.6.1 jupyter-client==7.3.4 jupyter_core==5.3.0 jupyterlab-pygments==0.2.2 @@ -109,7 +109,7 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -SQLAlchemy==1.4.46 +SQLAlchemy==2.0.15 stack-data==0.3.0 tabulate==0.8.10 terminado==0.17.1 @@ -127,5 +127,5 @@ wcwidth==0.2.5 webencodings==0.5.1 wheel==0.37.1 widgetsnbextension==4.0.7 -xarray==2023.5.0 +xarray==2022.11.0 zipp==3.8.0