From dd871058cfbde4b69db316b914cec75ffcd44d7e Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 28 Nov 2024 08:38:44 +0100 Subject: [PATCH 1/2] added image inverter --- book/_config.yml | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/book/_config.yml b/book/_config.yml index 16a68fb..e6fb56c 100644 --- a/book/_config.yml +++ b/book/_config.yml @@ -23,6 +23,7 @@ sphinx: - download_link_replacer - jupyterbook_patches - teachbooks_sphinx_grasple + - sphinx_image_inverter config: html_js_files: - https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js diff --git a/requirements.txt b/requirements.txt index 7251625..0a63bae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ jupyterlite-sphinx jupyterbook_patches download_link_replacer teachbooks-sphinx-grasple +sphinx-image-inverter --extra-index-url https://gitlab.tudelft.nl/api/v4/projects/11239/packages/pypi/simple From 5e576c8b2a4a769843f3f39f74670e23306a2a9c Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 28 Nov 2024 08:45:44 +0100 Subject: [PATCH 2/2] exclude photos from conversion --- book/examples/theory_questions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/examples/theory_questions.md b/book/examples/theory_questions.md index 05f9417..a30cf2c 100644 --- a/book/examples/theory_questions.md +++ b/book/examples/theory_questions.md @@ -12,11 +12,13 @@ Truss structures are structures assembled of straight elements connected in node Examples of these structures are commonly found in rail bridges like the one below: ```{figure} theory_questions_images/pic0.jpg +:class: dark-light :width: 400 ``` Furthermore, these structures are commonly found in building as well, both invisible and visible: ```{figure} theory_questions_images/pic1.jpg +:class: dark-light :width: 400 ```