-
Notifications
You must be signed in to change notification settings - Fork 18
Comparing changes
Open a pull request
base repository: executablebooks/sphinx-togglebutton
base: v0.3.2
head repository: executablebooks/sphinx-togglebutton
compare: v0.4.4
- 12 commits
- 79 files changed
- 7 contributors
Commits on Nov 23, 2023
-
docs/use: Also document
toggle-shown(#55)- This is not shown anywhere except the readme, and I just spent more than a short time looking for this option, so adding it to save everyone time. I haven't tried hard to keep it organized, but git grep says that `toggle-shown` is not anywhere in docs/.
Configuration menu - View commit details
-
Copy full SHA for fd75840 - Browse repository at this point
Copy the full SHA fd75840View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d7041f - Browse repository at this point
Copy the full SHA 0d7041fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a356c2 - Browse repository at this point
Copy the full SHA 0a356c2View commit details
Commits on Dec 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f468ca6 - Browse repository at this point
Copy the full SHA f468ca6View commit details
Commits on Sep 12, 2024
-
A11y: set aria-expanded to the toggle button. (#61)
* A11y: set aria-expanded to the toggle button. Closes Quansight-Labs/czi-scientific-python-mgmt#77 * run linter/prettify
Configuration menu - View commit details
-
Copy full SHA for 9a8272d - Browse repository at this point
Copy the full SHA 9a8272dView commit details
Commits on Feb 24, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f301181 - Browse repository at this point
Copy the full SHA f301181View commit details
Commits on Jan 14, 2026
-
👌 IMPROVE: Add i18n support & general improvements (#66)
* Add i18n support and translations for togglebutton Introduces internationalization for Sphinx-ToggleButton by adding translation infrastructure, updating config values to use translated strings, and including translation files (.json, .po, .mo) for multiple languages. Updates MANIFEST.in to package translation assets and adjusts .gitignore to allow .mo files. Also adds a conversion script for generating locale files from JSON. * Include translation files in package data Added translation-related files and directories to the package_data section in setup.py to ensure they are included in the distribution. This supports proper packaging and deployment of translation resources. * Sync toggle button hints with external state changes Adds functions to synchronize toggle button hints and aria-expanded attributes with the current state. Introduces a MutationObserver to update button hints when toggle item classes change, ensuring external extensions or DOM changes are reflected in the UI. * Preserve existing IDs for admonition toggle items Update togglebutton.js to use an admonition's existing ID if present, instead of always generating a new one. This prevents overwriting custom or pre-existing IDs on admonition elements. * Refactor sphinx_togglebutton/__init__.py for readability Improved code formatting and structure for better readability and maintainability. Added blank lines for separation, split long function calls, and enhanced consistency in function definitions and configuration setup. * Refactor formatting in setup.py and _convert.py Improves code readability by reformatting lists and dictionary values in setup.py and breaking up a long path assignment in _convert.py. No functional changes were made. * Reorder imports for consistency and PEP8 compliance Imports in setup.py, __init__.py, and _convert.py were reordered to follow PEP8 guidelines and improve readability. No functional changes were made. * Refactor formatting and remove unused import Reformatted code for better readability in docs/conf.py and sphinx_togglebutton/__init__.py by expanding lists and function calls over multiple lines. Removed unused 'os' import from setup.py. * Add i18n support and document toggle button languages Updated CHANGELOG, README, and docs to document new internationalization support for toggle button texts. Added a list of supported languages and instructions for configuring language in Sphinx. Also mentioned new functions for dynamic hint updates and a fix for using existing admonition IDs. * Specify Sphinx configuration path in readthedocs.yml Added the 'sphinx.configuration' key to explicitly set the path to the Sphinx config file as 'docs/conf.py' for Read the Docs builds. * Update changelog with details on toggle hint functions Expanded the changelog entry for syncToggleHint and syncAllToggleHints to clarify that these functions allow automatic updating of button hint text when the open or closed state changes.
Configuration menu - View commit details
-
Copy full SHA for 5f4c8f7 - Browse repository at this point
Copy the full SHA 5f4c8f7View commit details -
🚀 RELEASE: version 0.4.0 (#69)
Update package version to 0.4.0 and changelog to reflect the new release date. Prepares the project for the 0.4.0 release.
Configuration menu - View commit details
-
Copy full SHA for aa94ac0 - Browse repository at this point
Copy the full SHA aa94ac0View commit details -
Bump version to 0.4.1 and update release workflow (#70)
Updated the GitHub Actions test workflow to use Python 3.11 instead of 3.8. Incremented the package version to 0.4.1 and updated the changelog to reflect the workflow change.
Configuration menu - View commit details
-
Copy full SHA for b869f69 - Browse repository at this point
Copy the full SHA b869f69View commit details -
Update to v0.4.2 and improve packaging metadata (#71)
Bump version to 0.4.2. Enhance setup.cfg with full metadata and dependencies, and simplify setup.py to only call setup().
Configuration menu - View commit details
-
Copy full SHA for 20245cb - Browse repository at this point
Copy the full SHA 20245cbView commit details -
* Update to v0.4.2 and improve packaging metadata Bump version to 0.4.2. Enhance setup.cfg with full metadata and dependencies, and simplify setup.py to only call setup(). * Bump version to 0.4.3 and update tests workflow Updated the GitHub Actions tests workflow to specify the packages_dir for PyPI publishing. Updated CHANGELOG for version 0.4.3 and incremented the package version in __init__.py.
Configuration menu - View commit details
-
Copy full SHA for 9465032 - Browse repository at this point
Copy the full SHA 9465032View commit details -
Update release workflow and bump version to 0.4.4 (#73)
Upgraded GitHub Actions versions and corrected build commands in tests.yml for improved reliability. Updated CHANGELOG and bumped package version to 0.4.4.
Configuration menu - View commit details
-
Copy full SHA for ec20337 - Browse repository at this point
Copy the full SHA ec20337View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.2...v0.4.4