Compare commits

...

134 commits

Author SHA1 Message Date
Tom van Woudenberg
1c071cb733
Merge pull request #248 from TeachBooks/dependabot/pip/teachbooks-0.2.7
Some checks failed
call-deploy-book / call-workflow (push) Has been cancelled
Bump teachbooks from 0.2.5 to 0.2.7
2026-11-09 06:57:24 +01:00
dependabot[bot]
56d1e0c5b3
Bump teachbooks from 0.2.5 to 0.2.7
Bumps [teachbooks](https://github.com/teachbooks/teachbooks) from 0.2.5 to 0.2.7.
- [Release notes](https://github.com/teachbooks/teachbooks/releases)
- [Changelog](https://github.com/TeachBooks/TeachBooks/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/teachbooks/teachbooks/compare/v0.2.5...v0.2.7)

---
updated-dependencies:
- dependency-name: teachbooks
  dependency-version: 0.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-08 23:02:30 +00:00
Tom van Woudenberg
8ea59e8f72
Merge pull request #246 from rlanzafame/release
typo in link
2026-09-02 09:23:33 +02:00
Robert Lanzafame
bc0bf4bdbf
typo in link
`book/features/draft-release.md`
2026-09-01 10:16:07 -07:00
FreekPols
e5593f3734 Revert "first description of pixi incl pixi.toml file"
This reverts commit ab43185bb2.
2026-08-28 22:47:42 +02:00
FreekPols
ab43185bb2 first description of pixi incl pixi.toml file 2026-08-28 22:38:10 +02:00
Tom van Woudenberg
5b852588b7
Merge pull request #244 from TeachBooks/dependabot/pip/teachbooks-0.2.5
Bump teachbooks from 0.2.4 to 0.2.5
2026-08-03 11:21:00 +10:00
dependabot[bot]
1caadbdee8
Bump teachbooks from 0.2.4 to 0.2.5
Bumps [teachbooks](https://github.com/teachbooks/teachbooks) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/teachbooks/teachbooks/releases)
- [Changelog](https://github.com/TeachBooks/TeachBooks/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/teachbooks/teachbooks/compare/v0.2.4...v0.2.5)

---
updated-dependencies:
- dependency-name: teachbooks
  dependency-version: 0.2.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-26 23:02:54 +00:00
Tom van Woudenberg
8425979752
Merge pull request #243 from TeachBooks/FreekPols-patch-1
Fix typos
2026-07-03 09:31:41 +02:00
Freek Pols
989cc196f0
Fix typos
Corrected typos and improved clarity in the tools documentation.
2026-07-03 09:18:09 +02:00
Tom van Woudenberg
4b8c70df5f
Merge pull request #242 from TeachBooks/Add-to-do
Add to do extension
2026-06-19 10:17:21 +02:00
Tom van Woudenberg
454b78682c
Fix link formatting for Sphinx to do extension 2026-06-19 09:59:18 +02:00
Dennis den Ouden-van der Horst
c43def7e22
Merge pull request #241 from TeachBooks/fetching_fetch
Fetching fetch
2026-05-13 11:35:30 +02:00
Dennis den Ouden-van der Horst
8d147d71f8 Reorder TeachBooks-Fetch entry in book TOC
Update book/_toc.yml to move the TeachBooks-Fetch MANUAL.md external entry into the features/visuals section and remove the duplicate entry later in the file. This tidies the table of contents and ensures the Fetch manual is grouped with the visuals-related externals.
2026-05-13 11:30:02 +02:00
Dennis den Ouden-van der Horst
7b1b7dfe1c Add TeachBooks-Fetch links to docs
Include TeachBooks-Fetch in the documentation and favourites list: add its MANUAL external link to book/_toc.yml and add a favourites entry in book/features/favourites.md so the extension is discoverable from the docs.
2026-05-13 11:22:42 +02:00
Dennis den Ouden-van der Horst
9b3beca216
Merge pull request #240 from TeachBooks/update_questions
Fix formatting for TeachBooks-Favourites dependency
2026-05-07 16:18:20 +02:00
Dennis den Ouden-van der Horst
93a15a64a0
Fix formatting for TeachBooks-Favourites dependency 2026-05-07 16:12:45 +02:00
Tom van Woudenberg
6be993f447
Merge pull request #238 from TeachBooks/sticky-margin
Add Sticky margin
2026-03-30 09:43:54 +02:00
Tom van Woudenberg
470472294b
Add Sphinx Sticky Margin to favourites list
Added Sphinx Sticky Margin to the list of features.
2026-03-30 09:42:02 +02:00
Tom van Woudenberg
1f7947bdc7
Clean up external links in _toc.yml
Removed comments from external links in the table of contents.
2026-03-30 09:33:15 +02:00
Tom van Woudenberg
033ec8a566
Remove unused Sphinx extensions
Removed unused Sphinx extensions from the configuration.
2026-03-30 09:30:04 +02:00
Tom van Woudenberg
41e456bf7f
Fix external link for Sphinx-Sticky-Margin
Updated external link to Sphinx-Sticky-Margin manual.
2026-03-30 09:27:49 +02:00
Tom van Woudenberg
12ae94d2db
Remove Sphinx-Sticky-Margin from requirements
Removed git dependency for Sphinx-Sticky-Margin.
2026-03-30 09:21:55 +02:00
Tom van Woudenberg
9f10e241b3
Update requirements.txt 2026-03-25 15:54:14 +01:00
Tom van Woudenberg
4f3bf5ef01
Update requirements.txt 2026-03-25 14:36:35 +01:00
Tom van Woudenberg
e11ca55ef3
Update requirements.txt 2026-03-25 14:22:22 +01:00
Tom van Woudenberg
3a80124957
Update _toc.yml 2026-03-25 14:05:20 +01:00
Tom van Woudenberg
a35f111abf
Update _toc.yml 2026-03-25 14:02:38 +01:00
Tom van Woudenberg
ff071b7ce5
Update external link comment in _toc.yml 2026-03-25 08:53:21 +01:00
Tom van Woudenberg
49fa68ec0f
Update requirements.txt 2026-03-25 08:45:41 +01:00
Tom van Woudenberg
ccf0330cdb
Update requirements.txt 2026-03-25 08:29:05 +01:00
Tom van Woudenberg
860cad0375
Update _toc.yml 2026-03-25 08:02:55 +01:00
Tom van Woudenberg
1cb1e16d51
Add sphinx_sticky_margin to configuration 2026-03-25 07:45:41 +01:00
Tom van Woudenberg
4b4e66abf6
Update requirements.txt 2026-03-25 07:45:25 +01:00
Tom van Woudenberg
3a5d610f0f
Add external link to Sphinx-Sticky-Margin manual 2026-03-25 07:44:44 +01:00
Tom van Woudenberg
622296fd07
Update requirements.txt 2026-03-16 15:16:43 +01:00
Tom van Woudenberg
05f51b1c7b
Merge pull request #237 from TeachBooks/add_questions
Add TeachBooks-Questions and update favourites
2026-03-13 09:43:16 +01:00
Dennis den Ouden-van der Horst
deea65c2b6 Add TeachBooks-Questions and update favourites
Add TeachBooks-Questions to the book TOC and TeachBooks Favourites list, and include Sphinx Gated Directives and TeachBooks Zoomies in the favourites page. Also tidy requirements.txt by removing an inline bump comment from the TeachBooks-Favourites git dependency. Changes touch book/_toc.yml, book/features/favourites.md, and requirements.txt to surface the new/manual links and clean up metadata.
2026-03-13 09:32:59 +01:00
Tom van Woudenberg
5537db2ec5
Update TeachBooks-Favourites dependency with comment
Updated dependency to include a comment for version bump.
2026-02-28 13:44:22 +01:00
Tom van Woudenberg
0242cf27ee
Fix formatting of git dependency in requirements.txt 2026-02-28 13:38:24 +01:00
Dennis den Ouden-van der Horst
2674c68ba9
Merge pull request #236 from TeachBooks/bump-patch
Bump TeachBooks-Favourites dependency version
2026-01-22 10:53:17 +01:00
Dennis den Ouden-van der Horst
79f62e3008
Bump TeachBooks-Favourites dependency version
Updated the TeachBooks-Favourites dependency to the latest version.
2026-01-22 10:49:02 +01:00
Tom van Woudenberg
f51792ff18
Merge pull request #235 from TeachBooks/update-external-toc
Remove Sphinx External ToC link from favourites
2026-01-16 14:36:56 +01:00
Dennis den Ouden-van der Horst
59865009f1 Remove Sphinx External ToC link from favourites
Deleted the reference to Sphinx External ToC from the list of related resources in the favourites documentation.
2026-01-16 14:35:15 +01:00
Tom van Woudenberg
9f99a7cc4b
Update links to Sphinx exercises and contributions 2026-01-14 14:00:07 +01:00
Tom van Woudenberg
ff6367f5af
Annotate external link with '#BUMP'
Added a comment '#BUMP' to the external link for Sphinx-Gated-Directives.
2026-01-13 09:19:36 +01:00
Tom van Woudenberg
e3c0583a13 Update sphinx-autobuild.sh 2026-01-12 15:51:48 +01:00
Tom van Woudenberg
2f1e088d02 Create remove_author.css 2026-01-12 13:37:40 +01:00
Tom van Woudenberg
1a4518f6c1 added all authors 2026-01-12 13:36:57 +01:00
Tom van Woudenberg
a9170a5011 Update .gitignore 2026-01-12 13:27:11 +01:00
Tom van Woudenberg
c51586746c Create sphinx-autobuild.sh 2026-01-12 13:23:56 +01:00
Tom van Woudenberg
6f44de51c0
Update versions_URLs.md 2026-01-09 11:29:35 +01:00
Tom van Woudenberg
ea27d7af04
Merge pull request #234 from TeachBooks/dependabot/submodules/book/external/JupyterBook-Patches-99aeda4
Bump book/external/JupyterBook-Patches from `c5cb27a` to `99aeda4`
2026-01-08 11:52:05 +01:00
dependabot[bot]
d257d56838
Bump book/external/JupyterBook-Patches from c5cb27a to 99aeda4
Bumps [book/external/JupyterBook-Patches](https://github.com/TeachBooks/JupyterBook-Patches) from `c5cb27a` to `99aeda4`.
- [Release notes](https://github.com/TeachBooks/JupyterBook-Patches/releases)
- [Commits](c5cb27a87b...99aeda40ae)

---
updated-dependencies:
- dependency-name: book/external/JupyterBook-Patches
  dependency-version: 99aeda40ae0cfa06eb290ba5c3a6b9b81eb3992d
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 10:51:02 +00:00
Tom van Woudenberg
6802366a19
Merge pull request #233 from fmeer/release
Update plotly HTML instructions
2026-01-06 06:56:05 +01:00
Frans van der Meer
a639f14b94 Update plotly HTML instructions 2026-01-05 20:16:03 +01:00
Dennis den Ouden-van der Horst
fca8533e97 Update teachbooks to version 0.2.4 in requirements
Replaces the previous git-based install of teachbooks with the released version 0.2.4 in requirements.txt for improved stability and reproducibility.
2026-01-05 16:14:59 +01:00
Tom van Woudenberg
aa5843df88
Remove sphinx-gated-directives from requirements 2026-01-05 09:27:10 +01:00
Tom van Woudenberg
d6888adecb
Merge pull request #232 from TeachBooks/test-gates
Added Gated Directives
2026-01-05 09:18:39 +01:00
Tom van Woudenberg
684b9c84a4
Fix matplotlib entry in requirements.txt 2026-01-05 09:15:20 +01:00
Dennis den Ouden-van der Horst
aacc7368e2 Update teachbooks dependency source
Switched teachbooks dependency to use a specific Git branch (issue-127) instead of the released version. This allows for testing or using unreleased changes from the repository.
2026-01-04 18:03:01 +01:00
Dennis den Ouden-van der Horst
46d70c1578 Remove unused Sphinx config options
Cleaned up book/_config.yml by removing unused or unnecessary Sphinx configuration options related to sphinx_gated_directives and sphinx_codex. This helps simplify the configuration file.
2026-01-04 17:56:08 +01:00
Dennis den Ouden-van der Horst
c7f7917fe2 Remove sphinx_tudelft_theme from Sphinx extensions
The sphinx_tudelft_theme extension has been removed from the list of Sphinx extensions in the configuration file, possibly because it is no longer needed or has been replaced.
2026-01-04 17:54:12 +01:00
Dennis den Ouden-van der Horst
ee8777516e Remove custom YAML extension and update requirements
Deleted the custom 'include_remove_yaml' Sphinx extension and its configuration. Cleaned up YAML front matter from intro.md. Updated requirements.txt to use released teachbooks package, added sphinx-gated-directives, and removed duplicate or outdated dependencies.
2026-01-04 17:53:12 +01:00
Dennis den Ouden-van der Horst
68cf7ca756 Add extension to remove YAML front matter from includes
Introduced a custom Sphinx extension 'include_remove_yaml' to strip YAML front matter from included files. Updated _config.yml to register the extension, and added YAML front matter to intro.md for demonstration.
2026-01-04 17:41:29 +01:00
Dennis den Ouden-van der Horst
a4cb6d7090 Remove obsolete instruction notebooks and update ToC
Deleted instructie.ipynb, instructie_2.ipynb, and lesoefeningen.ipynb from the book. Updated _toc.yml to remove references to these files and moved the Sphinx-Gated-Directives manual link to the correct section. Minor update to intro.md.
2026-01-04 16:51:14 +01:00
Dennis den Ouden-van der Horst
ab38930bb3 Update TOC and requirements for TeachBooks changes
Added an external manual link to the table of contents. Updated requirements to use TeachBooks from the 'issue-127' branch and adjusted comments for clarity.
2026-01-04 16:20:16 +01:00
Dennis den Ouden-van der Horst
804bae0dee Add note inside axiom-end directive in intro
Inserted a line of text within the prf:axiom-end directive in intro.md to clarify that this text will not be rendered.
2026-01-04 13:05:52 +01:00
Dennis den Ouden-van der Horst
dda9732246 Update comment for TeachBooks-Favourites dependency
Changed the comment for the TeachBooks-Favourites git dependency from 'bump patches' to 'bump codex' to clarify the purpose of the dependency update.
2026-01-04 12:26:58 +01:00
Dennis den Ouden-van der Horst
abec15b938 Switch sphinx_gated_directives to external package
Removed the local sphinx_gated_directives extension and updated configuration to use the external package. Added Sphinx-Gated-Directives as a dependency in requirements.txt and adjusted _config.yml to load it as an extra extension.
2026-01-04 11:57:49 +01:00
Dennis den Ouden-van der Horst
688c16fe71 Remove custom code alignment CSS and update requirements
Deleted the code-align.css file that enforced left alignment for docutils code cells. Updated the requirements.txt comment for TeachBooks-Favourites to reference 'patches' instead of 'codex'.
2026-01-04 11:23:45 +01:00
Dennis den Ouden-van der Horst
c6e968a947 Update requirements.txt 2026-01-04 11:06:32 +01:00
Dennis den Ouden-van der Horst
3f6d1f1d1b Update _config.yml 2026-01-04 11:04:17 +01:00
Tom van Woudenberg
29fe49b63c zonder override 2026-01-03 15:46:57 +01:00
Tom van Woudenberg
2a78126224 change labels 2026-01-03 15:42:01 +01:00
Tom van Woudenberg
e22ea50d6d added gates 2026-01-03 15:35:40 +01:00
Dennis den Ouden-van der Horst
1ac94844a3 Refactor directive name construction for clarity
Extracted suffix_separator, suffix_start, and suffix_end from cfg to local variables for improved readability and maintainability in directive name construction.
2026-01-03 12:50:11 +01:00
Dennis den Ouden-van der Horst
e12183af9e Refactor _should_skip_name for clarity and efficiency
Extracted suffix_separator, suffix_start, and suffix_end from cfg at the start of the function to avoid repeated dictionary lookups and improve code readability.
2026-01-03 12:48:34 +01:00
Dennis den Ouden-van der Horst
f4ea60d42c Enhance sphinx_gated_directives with configurable suffixes and override logic
Refactor the sphinx_gated_directives extension to support configurable suffixes and separator for start/end directives, and add an 'override_existing' option for more flexible directive registration. Update the registry naming and logic throughout the extension, add configuration validation, and update the book config and intro to demonstrate new exercise directives and nesting.
2026-01-03 12:45:24 +01:00
Dennis den Ouden-van der Horst
144c7a95be Refactor sphinx_gated_directives and update intro.md examples
Improved code structure and comments in sphinx_gated_directives/__init__.py, clarified logic, and removed unused/legacy code. Updated intro.md to remove commented-out directive examples and replaced them with active ones for better demonstration and testing.
2026-01-03 10:30:39 +01:00
Dennis den Ouden-van der Horst
f481588509 Update child theorem to axiom and add Sphinx theme
Changed the label from 'A child theorem' to 'A child axiom' in the intro.md file for clarity. Added 'sphinx-tudelft-theme==1.2.1' to requirements.txt to specify the documentation theme.
2026-01-02 20:08:02 +01:00
Dennis den Ouden-van der Horst
f9e4a0f0b7 Improve gated directive nesting validation and docs
Added a robust validate_SE function to check for correct nesting of start and end directives, with detailed error reporting. Updated the CheckGatedDirectivesTransform to use this validation and improved error messages for mismatched or incorrectly nested directives. Extended intro.md with comprehensive examples of nested directives, including both valid and invalid cases, to document and test the new behavior. Also added the sphinx_tudelft_theme extension in _config.yml.
2026-01-02 20:05:44 +01:00
Dennis den Ouden-van der Horst
a5f014ddf6 Replace logo figure with nothing.svg in intro
Added a new SVG file 'nothing.svg' and updated the intro.md to use this image in place of the previous logo-wide.svg. Adjusted figure attributes and alt text accordingly.
2026-01-02 17:55:31 +01:00
Dennis den Ouden-van der Horst
bd47d63475 Remove debug logging and update intro content
Debug logging statements were removed from MergeGatedDirectivesTransform in sphinx_gated_directives. The intro.md file was updated to include new theorem and figure directive examples, code cells, and additional documentation content.
2026-01-02 17:40:03 +01:00
Dennis den Ouden-van der Horst
fddd493e39 Comment out legacy registry logic in sphinx_gated_directives
Commented out the code related to the 'sphinx_gated_directives_registry' in favor of using only the 'sphinx_gated_directives_super_registry'. Updated purge and transform logic accordingly. Added clarifying comments to code-align.css regarding left alignment enforcement.
2026-01-02 17:18:18 +01:00
Dennis den Ouden-van der Horst
c7486c0b42 Add sphinx_gated_directives extension and code-align CSS
Introduces the custom Sphinx extension 'sphinx_gated_directives' for start/end directive gating and validation, registering it in the Sphinx local extensions. Also adds a CSS file to enforce left alignment for code cells. Updates _config.yml to configure the new extension and set the documentation language to English.
2026-01-02 17:09:33 +01:00
Tom van Woudenberg
7533ef1c0b
Merge pull request #231 from TeachBooks/test-metadata-prerelease
Update requirements and fix BibTeX formatting
2025-12-23 16:02:16 +01:00
Tom van Woudenberg
233df5631e
BUMP without fixing versoin 2025-12-23 16:01:43 +01:00
Dennis den Ouden-van der Horst
b56ad3336b Update requirements and fix BibTeX formatting
Pinned TeachBooks-Favourites to version v1.7.3 in requirements.txt for reproducibility. Added a missing comma and newline in references.bib to correct BibTeX formatting.
2025-12-23 15:51:43 +01:00
Dennis den Ouden-van der Horst
64c1647ca5
Update references.bib 2025-12-23 13:23:12 +01:00
Tom van Woudenberg
70727a502e
Merge pull request #229 from TeachBooks/metadata-bibtex-support
Add TeachBooks logo reference to bibliography
2025-12-21 10:10:20 +01:00
Dennis den Ouden-van der Horst
0bac6738ea
Add TeachBooks logo reference to bibliography 2025-12-19 16:27:34 +01:00
Tom van Woudenberg
b3469006d4
reorder 2025-12-19 13:55:25 +01:00
Tom van Woudenberg
88c67fe4cd
fix url 2025-12-19 13:48:14 +01:00
Tom van Woudenberg
025b2ff5c7
Update plotyl instructions 2025-12-19 13:32:17 +01:00
Tom van Woudenberg
bd4516c25e
Merge pull request #228 from TeachBooks/add-last-updated-by-git
Add Sphinx last updated by git to favourites list
2025-12-17 13:16:14 +01:00
Dennis den Ouden-van der Horst
eeb71c404d
Update favourites.md 2025-12-17 13:10:24 +01:00
Tom van Woudenberg
ff67aa5572
Add Sphinx last updated by git to favourites list 2025-12-15 18:08:27 +01:00
Dennis den Ouden-van der Horst
9ac3763de0
Add comment to external link in _toc.yml 2025-12-09 10:51:46 +01:00
Dennis den Ouden-van der Horst
1311109ba3
Merge pull request #227 from TeachBooks/test-glue-disable
Test glue disable
2025-12-09 10:46:03 +01:00
Dennis den Ouden-van der Horst
ce760deb7b
Remove comment from external link in _toc.yml 2025-12-09 10:41:55 +01:00
Dennis den Ouden-van der Horst
7330aae9fd
Update external link in _toc.yml 2025-12-09 10:37:13 +01:00
Tom van Woudenberg
00e40c5be7
Update external link comment in _toc.yml 2025-12-08 20:32:06 +01:00
Tom van Woudenberg
774882515e
Update external link comment in _toc.yml 2025-12-08 20:17:03 +01:00
Tom van Woudenberg
19120550e9
Add comment to external link in _toc.yml 2025-12-08 20:10:25 +01:00
Tom van Woudenberg
2d7633c496
Fix link for Sphinx Metadata Figure in favourites.md
Updated the link for Sphinx Metadata Figure to point to the correct manual file format.
2025-12-08 20:08:47 +01:00
Tom van Woudenberg
a0636f0bc8
Update TeachBooks-Favourites dependency version
Updated the TeachBooks-Favourites dependency to a new version.
2025-12-08 20:05:50 +01:00
Tom van Woudenberg
45b20ffdc6 Update sphinx-iframes 2025-12-05 11:31:42 +01:00
Dennis den Ouden-van der Horst
5e55e84522
Merge pull request #225 from TeachBooks/test_metadata
Updates to fit with new notebook in figure-metadata
2025-12-03 14:29:39 +01:00
Tom van Woudenberg
73a4095358 Update _toc.yml 2025-12-03 12:38:47 +01:00
Tom van Woudenberg
0f48b93776 prepare for updates 2025-12-03 12:37:47 +01:00
Tom van Woudenberg
d42f4efa49 Merge branch 'test_metadata' of https://github.com/TeachBooks/manual into test_metadata 2025-12-03 12:31:18 +01:00
Tom van Woudenberg
c83987b8be Update requirements.txt 2025-12-03 12:30:49 +01:00
Tom van Woudenberg
9bdbb866dc
Change execute_notebooks setting to 'auto' 2025-12-03 12:19:19 +01:00
Tom van Woudenberg
6b868f3d8e Update _toc.yml 2025-12-03 12:14:00 +01:00
Tom van Woudenberg
a2eb698b21 Update _toc.yml 2025-12-03 12:03:07 +01:00
Tom van Woudenberg
b4b78f6eea Update requirements.txt 2025-12-03 11:59:27 +01:00
Tom van Woudenberg
91a861c307 fix 2025-12-03 11:59:17 +01:00
Tom van Woudenberg
8ce33ecfee test 2025-12-03 11:57:21 +01:00
Tom van Woudenberg
2a35f37935
Merge pull request #224 from TeachBooks/Tom-van-Woudenberg-patch-1
Update _toc.yml
2025-12-01 09:16:05 +01:00
Tom van Woudenberg
b4fbdd90b2
Update _toc.yml 2025-12-01 09:15:51 +01:00
Tom van Woudenberg
eb219bfa06
Add Sphinx Metadata Figure to favourites list 2025-12-01 09:02:37 +01:00
Tom van Woudenberg
57ac568c2e
Merge pull request #223 from TeachBooks/dependabot/pip/sphinx-metadata-figure-1.0.3
Bump sphinx-metadata-figure from 1.0.2 to 1.0.3
2025-12-01 08:51:22 +01:00
Tom van Woudenberg
49a5d1af6b
Merge pull request #222 from TeachBooks/dependabot/submodules/book/external/sphinx-iframes-b0fcde7
Bump book/external/sphinx-iframes from `d92bc03` to `b0fcde7`
2025-12-01 08:51:11 +01:00
dependabot[bot]
268ac7142e
Bump sphinx-metadata-figure from 1.0.2 to 1.0.3
Bumps [sphinx-metadata-figure](https://github.com/TeachBooks/Sphinx-Metadata-Figure) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/TeachBooks/Sphinx-Metadata-Figure/releases)
- [Commits](https://github.com/TeachBooks/Sphinx-Metadata-Figure/compare/v1.0.2...v1.0.3)

---
updated-dependencies:
- dependency-name: sphinx-metadata-figure
  dependency-version: 1.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-30 22:05:47 +00:00
dependabot[bot]
61b5773818
Bump book/external/sphinx-iframes from d92bc03 to b0fcde7
Bumps [book/external/sphinx-iframes](https://github.com/TeachBooks/sphinx-iframes) from `d92bc03` to `b0fcde7`.
- [Release notes](https://github.com/TeachBooks/sphinx-iframes/releases)
- [Commits](d92bc03af5...b0fcde7e89)

---
updated-dependencies:
- dependency-name: book/external/sphinx-iframes
  dependency-version: b0fcde7e8957babcbda79bf861f6c2e2885c0df4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-30 22:05:40 +00:00
Tom van Woudenberg
a27da88f79
Fix formatting in requirements.txt 2025-11-28 17:09:26 +01:00
Tom van Woudenberg
33613846f6
Update sphinx-metadata-figure version to 1.0.2 2025-11-28 16:28:51 +01:00
Tom van Woudenberg
02eeb024d5
Merge pull request #221 from TeachBooks/metadata-figure
Metadata figure
2025-11-28 15:26:08 +01:00
Tom van Woudenberg
130a5e3755
Add style settings for metadata figure placement 2025-11-28 15:16:16 +01:00
Dennis den Ouden-van der Horst
58ec1c78ad Update Sphinx Metadata Figure dependency
Replaces the git-based Sphinx-Metadata-Figure dependency with the PyPI package sphinx-metadata-figure version 1.0.0 in requirements.txt.
2025-11-28 14:31:47 +01:00
Tom van Woudenberg
256163c70b
Add external link to Sphinx-Metadata-Figure manual 2025-11-28 11:22:56 +01:00
Tom van Woudenberg
00c79afade
Update _config.yml 2025-11-28 11:22:19 +01:00
Tom van Woudenberg
0142fbfbfb
Update requirements.txt 2025-11-28 11:20:10 +01:00
15 changed files with 136 additions and 23 deletions

3
.gitignore vendored
View file

@ -139,4 +139,5 @@ book/.jupyterlite.doit.db
# TeachBooks
**.teachbooks/
book/_toc_with_local_paths.yml
book/_git/
book/_git/
book/conf.py

View file

@ -2,7 +2,7 @@ title: TeachBooks Manual
author: TeachBooks Development Team and TeachBooks users, built with <a href="https://teachbooks.io/">TeachBooks</a>, <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="license noopener noreferrer"">CC BY 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt=""></a>
execute:
execute_notebooks: 'off'
execute_notebooks: 'auto'
only_build_toc_files: true
@ -17,8 +17,8 @@ sphinx:
- teachbooks_favourites
- teachbooks_sphinx_grasple
- sphinx_apa_references
- sphinx_github_alerts
config:
language: en
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
thebe_config:
@ -45,6 +45,14 @@ sphinx:
macros:
"newcolor": ['\definecolor{newcolor}{RGB}{111, 29, 119}{\color{newcolor}#1}',1]
named_colors_custom_colors: {'onlylight':[165,21,160],'lightanddark':[45,180,117,204,158,110],'hyphen-color':[45,180,117,165,21,160],'attributiongrey':[150,150,150]}
metadata_figure_settings:
style:
placement: hide
license:
summaries: false
individual: false
nb_execution_includepatterns: "**/MANUAL.ipynb"
git_show_all_authors: true
teachbooks:
attribution_location: margin

View file

@ -0,0 +1,4 @@
/* Hide the default Jupyter Book author footer */
.component-author {
display: none;
}

View file

@ -88,6 +88,10 @@ parts:
- file: features/exercise.md
- external: https://github.com/TeachBooks/Sphinx-ref-graph/blob/manual/README.md
- external: https://github.com/TeachBooks/Sphinx-GitHub-Alerts/blob/main/README.md
- external: https://github.com/TeachBooks/Sphinx-Metadata-Figure/blob/main/MANUAL.ipynb
- external: https://github.com/TeachBooks/Sphinx-Gated-Directives/blob/main/MANUAL.md
- external: https://github.com/TeachBooks/TeachBooks-Questions/blob/main/MANUAL.md
- external: https://github.com/TeachBooks/TeachBooks-Fetch/blob/main/MANUAL.md
- file: features/visuals.md
sections:
- external: https://github.com/TeachBooks/Sphinx-Accessibility/blob/manual/README.md
@ -98,6 +102,7 @@ parts:
- file: features/apa
- file: external/Sphinx-Named-Colors/README.md
- external: https://github.com/TeachBooks/Sphinx-Dropdown-Toggle/blob/main/MANUAL.md
- external: https://github.com/TeachBooks/Sphinx-Sticky-Margin/blob/main/MANUAL.md
- file: features/students
sections:
- file: external/annotater/README.md

@ -1 +1 @@
Subproject commit c5cb27a87b193228c45edb95580f9ee2d82b27df
Subproject commit 99aeda40ae0cfa06eb290ba5c3a6b9b81eb3992d

@ -1 +1 @@
Subproject commit d92bc03af5f067453caf104a424e0cc0ebdbf04b
Subproject commit 2bc21b6174b8e7dbd15c862c219bd506e06f9d13

View file

@ -28,7 +28,7 @@ This page is useful for user type 3-5.
(draft-release)=
# Draft-Release Workflow
Often it is necessary to prepare, review and edit materials in parallel to material that is currently being used by students, or another target audience. This workflow enables an author to easily maintain separate versions of a book without having to repeatedly comment out lines of a table of contents or page when building different versions. It is also easy to implement in CI/CD settings (it is already implemented in the {ref}Deploy Book Workflow <deploy-book-workflow>`, which builds our TeachBooks).
Often it is necessary to prepare, review and edit materials in parallel to material that is currently being used by students, or another target audience. This workflow enables an author to easily maintain separate versions of a book without having to repeatedly comment out lines of a table of contents or page when building different versions. It is also easy to implement in CI/CD settings (it is already implemented in the {ref}`Deploy Book Workflow <deploy-book-workflow>`, which builds our TeachBooks).
```{admonition} Why is this useful?
:class: tip

View file

@ -30,18 +30,25 @@ TeachBooks Favourites is a Sphinx extension which collects all of TeachBooks' fa
- [Download link replacer](../external/Download-Link-Replacer/README.md)
- [Sphinx image inverter](../external/Sphinx-Image-Inverter/README.md)
- [Sphinx iframes](../external/sphinx-iframes/README.md)
- [Sphinx exercise (including TeachBooks contributions)](https://ebp-sphinx-exercise.readthedocs.io/en/latest/)
- [Sphinx exercise (from Executable Books including TeachBooks contributions)](https://ebp-sphinx-exercise.readthedocs.io/en/latest/)
- [Teachbooks Sphinx tippy](../external/teachbooks-sphinx-tippy/README.md)
- [Sphinx named colors](../external/Sphinx-Named-Colors/README.md)
- [Sphinx dropdown toggle](../_git/github.com_TeachBooks_Sphinx-Dropdown-Toggle/main/MANUAL.md)
- [Sphinx proof (including TeachBooks contributions)](https://sphinx-proof.readthedocs.io/en/latest/)
- [Sphinx proof (from Executable Books including TeachBooks contributions)](https://sphinx-proof.readthedocs.io/en/latest/)
- [Sphinx code examples](../_git/github.com_TeachBooks_sphinx-code-examples/main/MANUAL.ipynb)
- [Sphinx accessibility](../_git/github.com_TeachBooks_Sphinx-Accessibility/manual/README.md)
- [Sphinx toggle button (TeachBooks contribution to the original)](https://sphinx-togglebutton.readthedocs.io/en/latest/)
- [Sphinx toggle button (from Executable Books including TeachBooks contributions)](https://sphinx-togglebutton.readthedocs.io/en/latest/)
- [Notebook execution patterns](../_git/github.com_TeachBooks_Sphinx-NB-Execution-Patterns/Manual/README.md)
- [Sphinx Launch Buttons](../external/Sphinx-launch-buttons/README.md)
- [Sphinx External ToC (TeachBooks contribution to the original)](https://github.com/TeachBooks/sphinx-external-toc/blob/main/README.md)
- [Sphinx GitHub Alerts](../_git/github.com_TeachBooks_Sphinx-GitHub-Alerts/main/README.md)
- [Sphinx Metadata Figure](../_git/github.com_TeachBooks_Sphinx-Metadata-Figure/main/MANUAL.ipynb)
- [Sphinx last updated by git (from Matthias Geier, TeachBooks version of the original)](https://github.com/TeachBooks/sphinx-last-updated-by-git)
- [Sphinx Gated Directives](../_git/github.com_TeachBooks_Sphinx-Gated-Directives/main/MANUAL.md)
- [Teachbooks Zoomies](https://github.com/TeachBooks/TeachBooks-Zoomies/)
- [TeachBooks Questions](../_git/github.com_TeachBooks_TeachBooks-Questions/main/MANUAL.md)
- [Sphinx Sticky Margin](../_git/github.com_TeachBooks_Sphinx-Sticky-Margin/main/MANUAL.md)
- [TeachBooks Fetch](../_git/github.com_TeachBooks_TeachBooks-Fetch/main/MANUAL.md)
- [Sphinx to do (from core sphinx](https://www.sphinx-doc.org/en/master/usage/extensions/todo.html)
The extension [Open in new tab](https://pypi.org/project/sphinx-new-tab-link/) is nice, but is not compatible with all setups (dependency clash) so is not included in TeachBooks-Favourites.

View file

@ -16,15 +16,57 @@
"\n",
"# Interactive plots: plotly\n",
"\n",
"The use of the [plotly](https://plotly.com/python/getting-started/) package is an example which allows you to create HTML/Javascript widgets from python code without any knowledge on HTML/Javascript."
"The use of the [plotly](https://plotly.com/python/getting-started/) package is an example which allows you to create HTML/Javascript widgets from python code without any knowledge on HTML/Javascript. The example below is taken from the FEM-module by Frans van der Meer."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The example below is taken from the FEM-module by Frans van der Meer.\n",
"When using Plotly graphs, make sure the notebook is executed in Jupyter Lab / Jupyter Notebook for the figures to be shown in the book. Running the code in VS code might break the result in the book, although the output is visible in VS code. Alternatively, add the following lines of code to your notebook to have a valid output in the book as well:\n",
"If you want to create the plot during the build of the book, don't use `fig.show()` but use the code below:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"from IPython.display import HTML\n",
"\n",
"def show_plotly(fig):\n",
" # Use HTML when building book in CI environment\n",
" if os.environ.get(\"CI\") == \"true\":\n",
" return HTML(fig.to_html(include_plotlyjs=\"cdn\"))\n",
"\n",
" # Local execution in Jupyter Notebook / JupyterLab / VS Code\n",
" fig.show()\n",
"\n",
"....\n",
"\n",
"show_plotly(fig)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Make sure you have in your `_config.yml`:\n",
"\n",
"```yaml\n",
"execute:\n",
" execute_notebooks: \"auto\"\n",
"```\n",
"\n",
"Eventually in combination with [](../_git/github.com_TeachBooks_Sphinx-NB-Execution-Patterns/Manual/README.md)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Alternatively, you can run the notebook locally before building the book. This is not recommended for the combination with git because you will be committing binary output to the repository. When pre-generating Plotly graphs, make sure the notebook is executed in Jupyter Lab / Jupyter Notebook for the figures to be shown in the book. Running the code in VS code might break the result in the book, although the output is visible in VS code. Add the following lines of code to your notebook to have a valid output in the book as well:\n",
"\n",
"```python\n",
"import plotly.io as pio\n",

1
book/images/nothing.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>

After

Width:  |  Height:  |  Size: 67 B

View file

@ -9,26 +9,26 @@ This page is useful for user type 4-5.
The setup of tools and URLs is dependent on agreements you've made on [collaboration](./collab.md).
Choosing between GitHub and GitLab depends on multiple criteria. GitHub provides more functionalities, but you might prefer the TU Delft-closed GitLab system if you're a TU Delft employee.
Choosing between GitHub and GitLab depends on multiple criteria. GitHub provides more functionalities, but you might prefer the TU Delft(-closed) GitLab system if you're a TU Delft employee.
## Account
GitHub is owned by Microsoft and anyone can make an account. This allows anyone to interact with the source code of your book by posting issues, forking (duplicating while allowing to sync) your book and suggesting changes with pull requests.
For the TU-Delft closed GitLab system only TU Delft account holders can interact with the source code your book, making it not as open as GitHub: collaboration and reuse is inly pissible with manual exports of the source code. Individual external accounts can be requested for.
For the TU-Delft closed GitLab system, only TU Delft account holders can interact with the source code your book, making it not as open as GitHub: collaboration and reuse is only possible with manual exports of the source code. Individual external accounts can be requested for.
## Book URL
Github allows you to host your book on the GitHub server using GitHub pages (to be recognized by the `<organization/username>.github.io/<book>` url, for example the [template book](https://teachbooks.github.io/template/)), which takes all the steps of hosting out of your hands. Next to GitHub-provided URLs, you can set up a custom owned URL, although this requires some additional skills on a domain which you should own.
If you're part of TU Delft, you can put your book in the [TUDelft-Book organisation](https://github.com/tudelft-books), which allows you to host your book at `oit.tudelft.nl/<book>`. If you've a private book which is part of the [GitHub Enterprise TU Delft](https://github.com/enterprises/tudelft) and is using SSO, a random url is generated `<random>.github.io/<book>`. For courses we advise you to create a organization with the course name so that the URL represent that course.
If you're part of TU Delft, you can put your book in the [TUDelft-Book organisation](https://github.com/tudelft-books), which allows you to host your book at `oit.tudelft.nl/<book>`. If you've a private book which is part of the [GitHub Enterprise TU Delft](https://github.com/enterprises/tudelft) and is using SSO, a random url is generated `<random>.github.io/<book>`. For courses we advise you to create an organization with the course name so that the URL represent that course.
On TU Delft's GitLab you need a webserver, which was offered by TeachBooks in the past (to be recognized by the url `teachbooks.tudelft.nl/<book>`), and is still offered by the TU Delft OIT team (to be recognized by the url `interactivetextbooks.tudelft.nl/<book>`).
## Real-time editing book
Editing the book can happen both locally as online on GitHub/GitLab. If done locally, the book can be generated and viewed locally too (typically takes around 1 minute) but this requires you to be at least user type 4 or 5 depending on the book content. The built book can also be viewed online separate from the released version.
Editing the book can be done both locally and online on GitHub/GitLab. If done locally, the book can be generated and viewed locally too (typically takes around 1 minute) but this requires you to be at least user type 4 or 5 depending on the book content. The built book can also be viewed online separate from the released version.
On GitHub we developed a [automatic process which builds the book and publishes it online](../external/deploy-book-workflow/README.md) in a very flexible way (publication of multiple version of the book, insights in book building errors, parallel so fast build, custom urls in subdirectories). For a private repository, there is an extensive but limited amount of actions-minutes required for published your book. If this proves to be a limit, consider applying for [Teacher benefits](https://docs.github.com/en/education/explore-the-benefits-of-teaching-and-learning-with-github-education/github-education-for-teachers/about-github-education-for-teachers#github-education-features-for-teachers) or joining the [GitHub Enterprise of TU Delft](https://github.com/enterprises/tudelft).
On GitHub we developed an [automatic process which builds the book and publishes it online](../external/deploy-book-workflow/README.md) in a very flexible way (publication of multiple version of the book, insights in book building errors, parallel so fast build, custom urls in subdirectories). For a private repository, there is an extensive but limited amount of actions-minutes required for publishing your book. If this proves to be a limit, consider applying for [Teacher benefits](https://docs.github.com/en/education/explore-the-benefits-of-teaching-and-learning-with-github-education/github-education-for-teachers/about-github-education-for-teachers#github-education-features-for-teachers) or joining the [GitHub Enterprise of TU Delft](https://github.com/enterprises/tudelft).
On GitLab a webserver is required to process book-changes online. Both we and other people at TU Delft have a simplistic workflow which can be used when you're set up on those Git environments and webservers. This simplistic workflow doesn't build all branches, is not easily adaptable, doesn't cache environments, doesn't give a visual summary, and doesn't allow for parallel processes (for every build a runner needs to be assigned for which there's typically only one available). If you want to use GitLab but still want to make use of the GitHub workflow, you can [mirror your repository to GitHub](https://docs.gitlab.com/ee/user/project/repository/mirror/push.html#set-up-a-push-mirror-from-gitlab-to-github). For the TU Delft OIT webserver you’re required to publish your book more officially, it cannot be used for viewing your book online in an active editing-phase since constant copyright checks have to be performed. The amount of computing power available is dependent on how you set the server yourself.
For GitLab a webserver is required, if GitLab pages is not enabled, to process book-changes online. Both we and other people at TU Delft have a simplistic workflow which can be used when you're set up on those Git environments and webservers. This simplistic workflow doesn't build all branches, is not easily adaptable, doesn't cache environments, doesn't give a visual summary, and doesn't allow for parallel processes (for every build a runner needs to be assigned for which there's typically only one available). If you want to use GitLab but still want to make use of the GitHub workflow, you can [mirror your repository to GitHub](https://docs.gitlab.com/ee/user/project/repository/mirror/push.html#set-up-a-push-mirror-from-gitlab-to-github). For the TU Delft OIT webserver you’re required to publish your book more officially, it cannot be used for viewing your book online in an active editing-phase since constant copyright checks have to be performed. The amount of computing power available is dependent on how you set the server yourself.
## Setting up book repository and website
On GitHub you can start right away with a git environment and online book using our [template](../external/template/README.md) without the need for any webserver setup!

View file

@ -6,8 +6,10 @@ If you plan on maintaining only one public version, it is advisable to set `BEHA
To share the built book / website of old versions for your book on GitHub you have a few options:
- Create a branch for each version. When doing this, [the GitHub workflow](../external/deploy-book-workflow/README.md) will build it on GitHub pages. Here's a few tips:
- It's advised to use the version as branch name. In case of versions per academic year, you can just name each branch to the current academic year, this leads to the URL with the same academic year..
- It is recommended to update the primary branch as the `PRIMARY BRANCH` when using the [GitHub workflow](gh-workflow-settings) whenever a new version is considered to be the most primary one. This ensures that readers are redirected to a consistent URL, even when new versions of the book are added later.
- It's advised to use the version as branch name, making it very clear which branch to which website. In case of versions per academic year, you can just name each branch to the current academic year, this leads to the URL with the same academic year. In case of book which are more stable over year, you could consider a simpler v1.1. See the page on [TeachBooks versioning](./versioning_changelog.md) for more information about how to name versions (and thus branches).
- You might consider a draft version for each version, in which you collect contributions leading up to a new release of the non-draft versoin. It's advised to name the draft branches so that the link with the non-draft version is obvious. Furthermore, you might consider the [Draft-Release Workflow](../features/draft-release.md)
- Whenever a new version is considered to be the most primary one, it is recommended to update the branch `PRIMARY BRANCH` when using the [GitHub workflow](gh-workflow-settings). This ensures that readers which have visited your book before are redirected to a consistent URL, even when new versions of the book are added later. Furthermore, it revert new readers to the most primary one.
- Set the primary branch (or its draft branch) as the default branch in git, so that that branch is directly visible when people visit your repository. Furthermore, this is probably the branch where you'd like contributers to start from when forking / opening a pull request.
- Eventually, you can add old branches to the list of `BRANCHES_ARCHIVED` when using the [GitHub workflow](gh-workflow-settings) to include a banner on the page indicating its archived state. Alternatively, you can add a banner manually to `_config.yml`, as explained [here](../basic-features/banner.md).
- If you're using tags (as will be explained in [later](./versioning_changelog.md)), you can create a branch from a tag locally by running: `git branch <new_branch name> <tag/version>`.
- If you have many version of the book, at some point you might reach the 1 GB GitHub Pages limit. This is only expected for extremely large books with a lot of non-text-based (binary) content. To prevent going over that limit, store large content not used for building the website (like images) on an external server. This can be another GitHub repository or a (paid) object store.

View file

@ -207,3 +207,14 @@
url = {https://arxiv.org/abs/1301.3781},
}
@misc{TeachBooksLogo,
author = {Veronica Comin},
title = {The logo of TeachBooks.},
year = {2024},
date = {2024-11-13},
note = {License: CC BY},
url = {https://github.com/TeachBooks/logos_and_visualisations},
howpublished = {\url{https://github.com/TeachBooks/logos_and_visualisations}},
copyright = {© TeachBooks 2024},
}

View file

@ -1,8 +1,13 @@
teachbooks == 0.2.3
teachbooks == 0.2.7
sphinx-inline-tabs
git+https://github.com/TeachBooks/TeachBooks-Favourites
git+https://github.com/TeachBooks/TeachBooks-Favourites@all_authors
teachbooks-sphinx-grasple
sphinx-apa-references
# For executing Jupyter Notebooks
myst_nb
numpy
matplotlib

27
sphinx-autobuild.sh Normal file
View file

@ -0,0 +1,27 @@
# Deactivate any active conda environment
conda deactivate 2>/dev/null || true
# Clear conda environment variables
unset CONDA_DEFAULT_ENV CONDA_PROMPT_MODIFIER 2>/dev/null || true
# Create a Python virtual environment
python -m venv venv
# Activate the virtual environment
source venv/Scripts/activate
# Install required packages from requirements.txt and sphinx-autobuild
pip install -r requirements.txt sphinx-autobuild
# Initialize Jupyter Book configuration for the book directory
jupyter-book config sphinx book/
# Disable display of all git authors in Sphinx documentation
# by changing 'git_show_all_authors' from True to False in conf.py
sed -i 's/git_show_all_authors = True/git_show_all_authors = False/' book/conf.py
sed -i "s/external_toc_path = '_toc.yml'/external_toc_path = '_toc_with_local_paths.yml'/" book/conf.py
# Build and serve the Sphinx documentation with auto-reload
# Opens browser automatically and ignores build artifacts and Python files
sphinx-autobuild book book/_build/html --open-browser --ignore "book/_build/**" --ignore "*.py" --ignore "book/references.bib" --ignore "book/_toc_with_local_paths.yml" --pre-build "teachbooks build book/ --process-only"