[Enhancement]: requirements.txt is missing several Sphinx extensions used in conf.py
Type of Enhancement
Adding/improving 'Further Reading' resources
Relevant Page(s) URL (if applicable)
https://discover-cookbook.numfocus.org/#versions
Current Content Snippet (Optional, but helpful)
requirements.txt is missing several Sphinx extensions used in conf.py
Proposed Enhancement / Suggestion
Update the requirements.txt file to include all Sphinx extensions currently used in conf.py. Several required dependencies are missing, which can lead to build errors and confusion for contributors. Adding these dependencies will make the setup process smoother, more reliable, and beginner-friendly.
Rationale & Expected Impact
This enhancement is valuable because the current requirements.txt file does not list several Sphinx extensions that are actively used in conf.py. As a result, new contributors, maintainers, or anyone trying to build the documentation locally may encounter build errors, missing features, or confusing warnings.
By explicitly adding all required dependencies, the setup process becomes more reliable, predictable, and beginner-friendly. It reduces friction for first-time contributors and ensures that the documentation builds consistently across different environments.
Additional Resources / Further Reading
- Sphinx documentation: https://www.sphinx-doc.org/
- Jupyter Book documentation: https://jupyterbook.org/
- sphinx-copybutton: https://sphinx-copybutton.readthedocs.io/
- sphinx-design: https://sphinx-design.readthedocs.io/
- sphinx-togglebutton: https://sphinx-togglebutton.readthedocs.io/
- sphinx-book-theme: https://sphinx-book-theme.readthedocs.io/
Contribution
- [x] I agree to follow the DISCOVER Cookbook's Code of Conduct and Contributing Guidelines.
- [x] I would be willing to draft a pull request to implement this enhancement.
Hi, I’m a newcomer and GSoC aspirant. I’d like to work on this issue—may I take it up?
Hi! I’ve opened a pull request addressing this issue: #452. Looking forward to your feedback.
Hi! I’m a first-year BTech student learning Python and open source. I’d like to work on this issue by identifying the Sphinx extensions used in conf.py and adding any missing ones to requirements.txt. Please let me know if I can proceed. Thanks!
@sanchalitorpe-source All checks have failed 4 failing checks
@amishamehta99 All checks have failed 4 failing checks
Hi..can i contribute in this issue? please let me know
Hi @mayank2295!
I've opened PR #480 to fix this issue.
Summary of changes:
- Added
sphinx-copybutton>=0.5.2,<1.0.0 - Added
sphinx-togglebutton>=0.3.2,<1.0.0 - Added
sphinx-design>=0.5.0,<1.0.0
Testing: I've verified in a fresh virtual environment that:
- These packages were missing before the fix
- All three extensions install successfully after updating
requirements.txt - The extensions can be imported without errors:
>>> import sphinx_copybutton #
>>> import sphinx_togglebutton #
>>> import sphinx_design #
The PR includes detailed testing evidence and follows semantic versioning for the version constraints.
Please let me know if you'd like any adjustments! Happy to iterate based on feedback.