Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 22, 2025

Bumps sphinx-exercise from 1.0.1 to 1.2.1.

Release notes

Sourced from sphinx-exercise's releases.

v1.2.1

Bug Fixes

  • Fixed ValueError when std-ref class is not present during LaTeX/PDF builds (#82)
    • Added defensive check before removing std-ref from CSS classes
    • Prevents crashes in LaTeX/PDF builder where references don't have the std-ref class
  • Fixed flaky CI tests caused by matplotlib font cache warning in test environment

Installation

pip install sphinx-exercise==1.2.1

See v1.2.1 release notes for full details.

v1.2.0

This release introduces new configuration options for styling solutions that follow exercises, along with order validation to help maintain document structure consistency.

✨ New Features

Solution Title Styling Configuration

A new exercise_style configuration option allows you to customize how solution titles are displayed when solutions follow their exercises.

Configuration:

# In conf.py
exercise_style = "solution_follow_exercise"

Behavior:

  • When enabled: Solution titles show just "Solution" (simplified, no hyperlinks)
  • Default: Solution titles show "Solution to Exercise #.#" with clickable hyperlinks

Order Validation System

When exercise_style = "solution_follow_exercise" is enabled, sphinx-exercise validates that:

  • Solutions appear after their referenced exercises
  • Solutions are in the same document as their exercises
  • Provides helpful warnings with file paths and line numbers

👌 Improvements

  • Enhanced solution title styling for lecture-style content
  • Improved configuration naming for clarity
  • Cleaner code with removed redundant logic

📦 Installation

pip install --upgrade sphinx-exercise

... (truncated)

Changelog

Sourced from sphinx-exercise's changelog.

v1.2.1 (2025-11-17)

Fixes 🐛

  • Fixed ValueError: list.remove(x): x not in list when building LaTeX/PDF output (#82)
    • Added defensive check before removing 'std-ref' class in UpdateReferencesToEnumerated transform
    • The 'std-ref' class may not be present in all build scenarios (particularly LaTeX/PDF builds)
    • Fix ensures compatibility across different Sphinx builders and versions
  • Fixed flaky CI tests caused by matplotlib font cache warning appearing in test output
    • Added regex patterns to strip matplotlib font cache stderr messages from test regression fixtures

v1.2.0 (2025-11-05)

New ✨

  • Added exercise_style configuration option to control solution title styling (#81)
    • Set to "solution_follow_exercise" to simplify solution titles to just "Solution" (no hyperlinks, no exercise references)
    • Default is "" (empty string) which maintains the original behavior: "Solution to Exercise #.#" with clickable hyperlink
  • Added order validation system when exercise_style = "solution_follow_exercise" (#81)
    • Validates that solutions appear after their referenced exercises
    • Validates that solutions are in the same document as their exercises
    • Provides helpful warnings with file paths and line numbers
    • Warnings are prefixed with [sphinx-exercise] for clarity

Improved 👌

  • Enhanced solution title styling options for better UX in lecture-style content where solutions follow exercises
  • Improved configuration option naming for better clarity when used alongside other Sphinx extensions
  • Cleaner code in post_transforms.py with removed redundant title building logic

v1.1.1 (2025-10-23)

Improved 👌

  • Restored Python 3.10 support - Re-added compatibility with Python 3.10 as it remains actively supported until October 2026
  • Updated test matrix to include Python 3.10 with Sphinx 6, 7, and 8
  • Test matrix now covers 11 combinations (excludes Python 3.13 + Sphinx 6 due to deprecation warnings)
  • Note: Python 3.10 is limited to Sphinx 8.1.x (max 8.1.3) due to Sphinx 8.2+ requiring Python >=3.11. This is handled automatically in the test configuration.
  • Updated codecov integration to use Python 3.12 + Sphinx 8 baseline
  • Configured tokenless codecov uploads for public repository

v1.1.0 (2025-10-22)

New ✨

  • Added internationalization (i18n) support for 27 languages
  • Added translations for Chinese, Japanese, Korean, Arabic, Hindi, Turkish, and expanded existing language support
  • Extension now automatically detects Sphinx project language setting and displays appropriate translations

Improved 👌

... (truncated)

Commits
  • f4c9fd7 Fix flaky CI tests caused by matplotlib font cache warning
  • b96a0d2 Release v1.2.1
  • c434ee8 fix: check if 'std-ref' exists before removing from classes (#82)
  • b17bb0e Release v1.2.0
  • 8cf34d2 FEAT: Add solution_after_exercise style option (#81)
  • 6d7859f Update ReadTheDocs configuration to v2 format
  • a5a732f Fix cross-reference warning in v1.1.0 release docs
  • 27714e0 Fix GitHub Actions badge URL in README
  • 53c0a6b Restore Python 3.10 support (#80)
  • 73aee15 Release v1.1.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sphinx-exercise](https://github.com/executablebooks/sphinx-exercise) from 1.0.1 to 1.2.1.
- [Release notes](https://github.com/executablebooks/sphinx-exercise/releases)
- [Changelog](https://github.com/executablebooks/sphinx-exercise/blob/main/CHANGELOG.md)
- [Commits](executablebooks/sphinx-exercise@v1.0.1...v1.2.1)

---
updated-dependencies:
- dependency-name: sphinx-exercise
  dependency-version: 1.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added conda Pull requests that update conda code dependencies Pull requests that update a dependency file labels Dec 22, 2025
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit f591bcb
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6949fd81a47f27000861725e
😎 Deploy Preview https://deploy-preview-682--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

@github-actions github-actions bot temporarily deployed to pull request December 23, 2025 02:34 Inactive
@github-actions github-actions bot temporarily deployed to pull request December 23, 2025 02:34 Inactive
@mmcky mmcky merged commit aa301d8 into main Dec 23, 2025
8 checks passed
@mmcky mmcky deleted the dependabot/conda/sphinx-exercise-1.2.1 branch December 23, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conda Pull requests that update conda code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants