Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Remove the fallback to parsing the HTML when `rtd_search_projects` is not set

Open
#297 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

Read src/sunpy_sphinx_theme/theme/sunpy/static/js/rtd_enhanced_search.js around lines 80-92, then inspect the Python theme configuration that now provides rtd_search_projects. Confirm the intended behavior when that setting is absent; done means the unnecessary HTML-parsing fallback is removed and the remaining search behavior matches the configuration.

Written by the indexing model from the issue text.

Description

Provide a general description of the issue or problem.

This section of the code:

https://github.com/sunpy/sunpy-sphinx-theme/blob/3961b64562b6ef46f24fc6ff95d882d0b5ea93c1/src/sunpy_sphinx_theme/theme/sunpy/static/js/rtd_enhanced_search.js#L80-L92

Isn't really needed now we have the Python theme configuration.

@slowe How would you recommend we remove this? I think we would need to just fallback to the original sphinx search? I can make the Python configuration raise an error, so it should be unlikely to hit this.

Dominant language
JavaScript
Stars
7
Forks
17
Avg merge
2d 8h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunpy/sunpy-sphinx-theme

All issues in sunpy/sunpy-sphinx-theme

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.