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/4] 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/4] 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 ``` From 4a973ba86855cbf102700eb7a540dc8c9e444bfb Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 28 Nov 2024 08:46:12 +0100 Subject: [PATCH 3/4] remove hypothesis --- book/_config.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/book/_config.yml b/book/_config.yml index 16a68fb..3afcfa5 100644 --- a/book/_config.yml +++ b/book/_config.yml @@ -11,10 +11,6 @@ only_build_toc_files: true html: favicon : "images/favicon.ico" baseurl : "https://teachbooks.io/manual/" -# START REMOVE-FROM-PUBLISH - comments: - hypothesis: true -# END REMOVE-FROM-PUBLISH sphinx: extra_extensions: From 4e31ab3beb145a447bd7ddcd837b80cedee5718a Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 28 Nov 2024 08:59:13 +0100 Subject: [PATCH 4/4] fix tab and typo push_githubdesktop images --- book/workflows/branches.md | 1 + book/workflows/edit_book.md | 24 +++--------------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/book/workflows/branches.md b/book/workflows/branches.md index 4be0eaf..a8ce8d6 100644 --- a/book/workflows/branches.md +++ b/book/workflows/branches.md @@ -83,6 +83,7 @@ name: Clone_GitHub Clone using SSH ``` +`````` ``````{tab-item} ... GitHub through GitHub Desktop 1. Open the repository that you would like to clone. In the top bar on the right, you will a green button called `<> Code`. diff --git a/book/workflows/edit_book.md b/book/workflows/edit_book.md index 0dd2e75..b9ae50d 100644 --- a/book/workflows/edit_book.md +++ b/book/workflows/edit_book.md @@ -197,17 +197,11 @@ After committing, click the 🔄 button to push our changes to the remote reposi 3. Add changes to Git-timeline locally (committing). In the field that says `Summary(Required)`, write a short description of the changes you have made. This message is what is called the *Commit Message*. After we've done this, click the blue button `Commit to repository`. -4. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, the following screen will pop up. Click on `Push Origin`. +4. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, click on `Push origin` in the top bar.
Example Image
- -Alternatively, you can also click on `Push origin` in the top bar. - -
- Example Image -
```` ````` `````` @@ -313,18 +307,12 @@ Choose one of the options to resolve the merge conflict. You now have updated yo 5. Add changes to Git-timeline locally (committing). In the field that says `Summary(Required)`, write a short description of the changes you have made. This message is what is called the *Commit Message*. After we've done this, click the blue button `Commit to repository`. -6. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, the following screen will pop up. Click on `Push Origin`. +6. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, click on `Push origin` in the top bar.
Example Image
-Alternatively, you can also click on `Push origin` in the top bar. - -
- Example Image -
- ```` ````{tab-item} ... using 'VS Code in your browser' @@ -686,16 +674,10 @@ If your book includes interactive element a webserver is required to host the bo 6. Add changes to Git-timeline locally (committing). In the field that says `Summary(Required)`, write a short description of the changes you have made. This message is what is called the *Commit Message*. After we've done this, click the blue button `Commit to repository`. -7. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, the following screen will pop up. Click on `Push Origin`. +7. Now we need to add changes to GitHub/GitLab. This is called pushing to the local repository. After committing, click on `Push origin` in the top bar.
Example Image -
- -Alternatively, you can also click on `Push origin` in the top bar. - -
- Example Image
```` ````{tab-item} ... using 'VS Code in your browser'