DISCOVER-Cookbook icon indicating copy to clipboard operation
DISCOVER-Cookbook copied to clipboard

[Enhancement]: requirements.txt is missing several Sphinx extensions used in conf.py

Open mayank2295 opened this issue 10 months ago • 7 comments

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

mayank2295 avatar Jan 13 '26 17:01 mayank2295

Hi, I’m a newcomer and GSoC aspirant. I’d like to work on this issue—may I take it up?

amishamehta99 avatar Jan 14 '26 21:01 amishamehta99

Hi! I’ve opened a pull request addressing this issue: #452. Looking forward to your feedback.

amishamehta99 avatar Jan 14 '26 22:01 amishamehta99

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!

sanchalitorpe13 avatar Jan 15 '26 05:01 sanchalitorpe13

@sanchalitorpe-source All checks have failed 4 failing checks

mayank2295 avatar Jan 29 '26 19:01 mayank2295

@amishamehta99 All checks have failed 4 failing checks

mayank2295 avatar Jan 29 '26 19:01 mayank2295

Hi..can i contribute in this issue? please let me know

Adrija-verse avatar Feb 05 '26 14:02 Adrija-verse

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:

  1. These packages were missing before the fix
  2. All three extensions install successfully after updating requirements.txt
  3. 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.

Adrija-verse avatar Feb 05 '26 15:02 Adrija-verse