sphinx-doc / sphinx-doc/sphinx

Allow to specify a directory to include in html_static_path

Open
#10,499 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:enhancement
Dominant language
Python
Stars
8k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Currently one can specify a directory so that its contents are recursively included in html_static_path, or a specific file to be included. In some cases it would be useful to be able to specify a directory to be included (itself, not just its contents). As far as I can see, there is no way to do that at the moment.

This came up during the recent upgrade to mathjax 3 in sagemath: https://trac.sagemath.org/ticket/25833

Contributor guide

Open the contributing guide

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.

Research direction

Start by tracing how the html_static_path configuration is processed and how existing static files and directories are tested. Add a regression test covering inclusion of the directory itself, using the MathJax 3 upgrade context as an example, and verify the generated documentation contains the directory at the requested path.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.