From 5387cc6ab3a23c486cb07bb6fe33d8ba8e00b26e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 29 Oct 2024 10:56:54 +0100 Subject: [PATCH 1/3] first simplified toc for p24 the toc includes intro + snake from mines, and not the usual intro remove numpy from the toc for mines --- notebooks/_toc.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/notebooks/_toc.yml b/notebooks/_toc.yml index 2eda192..1a9d0ae 100755 --- a/notebooks/_toc.yml +++ b/notebooks/_toc.yml @@ -1,12 +1,9 @@ format: jb-book -root: 0-0-prelude-nb +root: mines/0-intro-nb parts: -- caption: introduction +- caption: un petit jeu chapters: - - glob: 1-[0-9]*-nb -- caption: premiers pas - chapters: - - glob: 101/0* + - glob: mines/1-[0-9]*-nb - caption: types de base chapters: - glob: 2-[0-9]*-nb @@ -19,15 +16,10 @@ parts: - caption: fonctions chapters: - glob: 5-[0-9]*-nb -- caption: modules et imports - chapters: - - glob: 6-[0-9]*-nb - caption: divers chapters: - - glob: 7-[0-9]*-nb -- caption: "sujets avanc\xE9s" - chapters: - - glob: 8-[0-9]*-nb + # skip numpy + - glob: 7-[0-24-9]*-nb # leftovers from a previous version # formerly in .nbhosting/nbhosting.yaml From 8269e4f5b185f2343ab66b9bbe2a7fd1d982848e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 30 Oct 2024 17:38:09 +0100 Subject: [PATCH 2/3] use p24 logo --- media/logo-p24-favicon.svg | 62 ++++++++++++++++++++++++++++++++++++++ notebooks/_config.yml | 4 +-- 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 media/logo-p24-favicon.svg diff --git a/media/logo-p24-favicon.svg b/media/logo-p24-favicon.svg new file mode 100644 index 0000000..7e67509 --- /dev/null +++ b/media/logo-p24-favicon.svg @@ -0,0 +1,62 @@ + + + + + + + + + P24 + + diff --git a/notebooks/_config.yml b/notebooks/_config.yml index 29809d3..08cde41 100755 --- a/notebooks/_config.yml +++ b/notebooks/_config.yml @@ -37,10 +37,10 @@ sphinx: home_page_in_toc: false toc_title: "Dans cette section:" - html_favicon: ../media/flotpython-favicon.svg + html_favicon: ../media/logo-p24-favicon.svg html_show_copyright: false # not quite convincing but... - html_extra_path: + html_extra_path: - media # required as of 2024 May to get %matplotlib ipympl # to show up (at all, not even interactive) in the book output From 181697c4dbcc36c2f812189557b9d1ead9a26f45 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 13 Dec 2024 14:44:48 +0100 Subject: [PATCH 3/3] reinstate section 6 "modules" in the TOC for p24 --- notebooks/_toc.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notebooks/_toc.yml b/notebooks/_toc.yml index 1a9d0ae..2282c81 100755 --- a/notebooks/_toc.yml +++ b/notebooks/_toc.yml @@ -16,6 +16,9 @@ parts: - caption: fonctions chapters: - glob: 5-[0-9]*-nb +- caption: modules + chapters: + - glob: 6-[0-9]*-nb - caption: divers chapters: # skip numpy