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`.
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.
- 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.
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.
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.
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.
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".
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.
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
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.
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.
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