Commit Graph

143 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
1bf138a8de Reverts to sed for blank line collapsing
Reverts the blank line collapsing script to using `sed` for better performance and reliability.

Fixes a typo in `.pre-commit-config.yaml` regarding `pass_filenames`.
2025-06-28 10:30:59 -04:00
Zeljko Hrcek
0cc15e1722 Create new callouts for slides/videos/exercises
Three new unnumbered callouts with corresponding icons have been created.
2025-06-26 22:02:37 +02:00
Vijay Janapa Reddi
bc7767210c Re-enables and configures section ID check
Re-enables the check-section-ids hook in pre-commit.
Changes the implementation to use `sed` instead of a custom
python script for collapsing blank lines. Configures the
section ID check to run without filename arguments and adds
arguments to run verification.
2025-06-23 12:47:31 -04:00
Zeljko Hrcek
95056d70fe Refine question and answer callouts to match Quarto defaults
- Redesigned custom quiz-question and quiz-answer callouts to visually align with native Quarto callouts in both HTML and PDF.
- Unified layout structure, improved corner rounding, border styling, and spacing.
- Adjusted colors for visual clarity and consistency with book style.
- Applied smaller text size to quiz callouts.
2025-06-23 14:39:07 +02:00
Vijay Janapa Reddi
5f234e0499 Adds pre-commit hook for header style check
Adds a pre-commit hook to detect and prevent inline-style Markdown headers.

The pre-commit configuration now includes a check that uses `grep` to
identify any lines in `.qmd` files that use inline-style headers, which
can cause rendering issues.  This change aims to enforce consistent
Markdown header formatting throughout the project.
2025-06-19 17:12:45 -04:00
Vijay Janapa Reddi
83ed7d03b4 Updates and adds section IDs to Markdown files.
Refactors the script to add missing section IDs and update existing ones that don't follow the correct format.

The script now also updates cross-references to reflect the changed section IDs.
2025-06-18 13:19:50 -04:00
Vijay Janapa Reddi
24fbd21d43 Add pre-commit config (manual only) 2025-06-18 08:54:50 -04:00
Vijay Janapa Reddi
d7cb714677 Adds hook to collapse extra blank lines
Adds a pre-commit hook to remove consecutive empty lines from qmd files.
This improves readability and consistency in the documents.
2025-06-17 01:18:17 -04:00
Vijay Janapa Reddi
98bfa677dd Standardizes pre-commit hook names
Updates pre-commit configuration to remove emojis
and standardize names for better readability.
2025-06-06 11:25:41 -04:00
Vijay Janapa Reddi
9f8d30e2aa Comments out unreferenced label check
Temporarily disables the check for unreferenced labels in the pre-commit configuration.
This is to allow for updates without being blocked by existing issues
identified by the script. It can be re-enabled later.
2025-06-02 00:33:07 -04:00
Vijay Janapa Reddi
26d874c59f Enhances pre-commit hooks for code quality
Improves code quality checks by adding emojis to hook names
for better readability and clarity in pre-commit outputs.

Updates the forbidden phrases check to only search for "Retry".
2025-06-01 15:46:14 -04:00
Vijay Janapa Reddi
e863f2cf1c Adds color to forbidden words grep
Improves readability of the "grep-forbidden-phrases" pre-commit hook
by adding color to the grep output. This highlights the matched
forbidden words in the output.
2025-06-01 15:22:36 -04:00
Vijay Janapa Reddi
f3b9078a79 Adds check for forbidden phrases in QMD files
Adds a pre-commit hook to scan QMD files
for potentially problematic phrases like "Retry" or "4o".

This helps ensure consistency and quality in the
documentation content.

WIP on 829-updated-responsible-ai-chapter
2025-06-01 14:48:01 -04:00
Zeljko Hrcek
3c00d1e564 Update chapter_8_training
Labeling and referencing in chapter 8.
2025-05-31 10:05:43 +02:00
Vijay Janapa Reddi
4a16d94fbe Adds check for macOS quarantined images
Adds a pre-commit hook that checks for quarantined images on macOS.
This prevents accidentally committing images that have quarantine flags set, which can cause issues for other users.
2025-05-27 17:09:12 -04:00
Zeljko Hrcek
5d951bce3a Disable pre-commit for GitHub Desktop (ci.skip) 2025-04-07 11:40:36 +02:00
Vijay Janapa Reddi
3168077bbc Updates hook name for clarity
Changes the hook name to be lowercase for better readability and consistency within the configuration file.
2025-04-03 11:29:54 -04:00
Vijay Janapa Reddi
3ab346758b Script to find any missing references
Anything defined as @fig @tbl, etc. that is not referenced in the text will raise an error, so there are no figures or sections or tables, etc., that are just dangling.
2025-03-28 11:31:34 -04:00
Vijay Janapa Reddi
a92c05355a ignore images 2025-03-24 23:07:46 -04:00
Vijay Janapa Reddi
962a3ee77a Setting up codespell 2025-03-23 17:17:34 -04:00
Vijay Janapa Reddi
7a43b82b6e spacing 2025-03-19 22:15:23 -04:00
Vijay Janapa Reddi
9f19dccd1f Updated processing 2025-03-19 21:09:37 -04:00
Vijay Janapa Reddi
02d9aeadb2 Fix precommit to make it compatible with EOF line (removed) 2025-03-19 16:25:46 -04:00
Vijay Janapa Reddi
c92c063822 fix tikz code bug 2025-03-19 13:57:07 -04:00
Vijay Janapa Reddi
322783f548 Precommit bibtex-tidy 2025-03-19 13:54:52 -04:00
Vijay Janapa Reddi
54bcff41e5 Adding bibtex-tidy 2025-03-19 13:15:25 -04:00
Vijay Janapa Reddi
2edcd11df2 remove verbose 2025-03-07 09:56:04 -05:00
Vijay Janapa Reddi
17516c1931 Use yml file 2025-03-04 06:46:52 -08:00
Vijay Janapa Reddi
257e86aa7f Fixing workflows to match pre-commit 2025-03-04 06:14:00 -08:00
Vijay Janapa Reddi
eae09231ec update to verbose pre-commit output 2025-03-02 09:44:43 -05:00
Vijay Janapa Reddi
c2fb62a893 Remove dead footnote 2025-02-18 17:44:30 -05:00
Vijay Janapa Reddi
2112005058 Adding a thing to clean up trailing space
Trailing spaces are not an issue in the website version, but in PDF version a simple extra space can create extra linebreak issues etc. -- esp. noticeable in bullet lists
2025-02-18 17:42:26 -05:00
Vijay Janapa Reddi
cb904640e0 lint fixes 2025-02-08 16:22:56 -05:00
Vijay Janapa Reddi
7f402ecccb trying to enable prettier 2025-02-08 15:50:41 -05:00
Vijay Janapa Reddi
bd8adb7daa Focus on lint 2025-02-08 15:49:59 -05:00
Vijay Janapa Reddi
e69b48b541 Fixing precommit 2025-02-08 15:20:25 -05:00
Vijay Janapa Reddi
f93ed7b4d4 pretty and markdown but quiet 2025-02-08 15:09:04 -05:00
Vijay Janapa Reddi
72558baca8 precommit + markdown linting 2025-02-08 14:39:33 -05:00
Vijay Janapa Reddi
cadf44a422 Updated it 2025-02-08 14:28:29 -05:00
Vijay Janapa Reddi
a66796ecc0 Remove trainling space thing 2025-02-06 15:49:58 -05:00
Vijay Janapa Reddi
6caf3d1363 Remove unwanted code 2025-02-05 22:42:32 -05:00
Zeljko Hrcek
e490bd0456 Summary - chapter1
Figure 1.5 has been updated.
2025-02-05 14:21:49 +01:00
Vijay Janapa Reddi
75720f9ee8 Update precheck to only run on qmd + bib files 2025-02-03 23:57:53 -05:00