From 57f3ba8b91dc172564954ca657d9aa1cb298ab74 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 18 Apr 2024 16:58:41 +0200 Subject: [PATCH 1/2] Add an entry about the gallery card --- .github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md index 94cc6cac..4c57041e 100644 --- a/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md @@ -3,3 +3,4 @@ Thank you for send a Pull Request to our code gallery! When adding or updating a - \[ \] The notebook has all the dependencies required to run in the IOOS env, if not please update the environment file. - \[ \] You added a title, description, and a line with `Created: YYYY-MM-DD` in the first cell. - \[ \] If you are updating a notebook add a line with `Updated: YYYY-MM-DD` below the created date. +- \[ \] Update the gallery entry to show your notebook thumbnail and description. From f7c61f128630b11713898374ee93e5d14a0973ea Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 18 Apr 2024 16:59:01 +0200 Subject: [PATCH 2/2] don't guess badges, leave it blank --- jupyterbook/content/make_gallery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyterbook/content/make_gallery.py b/jupyterbook/content/make_gallery.py index 8b8fbbad..90d91526 100644 --- a/jupyterbook/content/make_gallery.py +++ b/jupyterbook/content/make_gallery.py @@ -47,8 +47,8 @@ def make_gallery_entry(nb_path): :text-align: center :shadow: md - {{bdg-primary}}`{nb_path.split("/")[1].replace("_", " ").title().strip("Notebooks").strip()}` - {{bdg-secondary}}`ERDDAP` + {{bdg-primary}}`DATA SERVICE` + {{bdg-secondary}}`TOPICAL KEYWORD` {{bdg-info}}`{nb["metadata"]["language_info"]["name"]}` ^^^