Skip to content

Sphinx docs may not be compatible with html_context #54

@nutjob4life

Description

@nutjob4life

🐛 Describe the bug

When building documentation with the template-repo-python, the docs/source/conf.py specifies a html_context. However, the html_context feature is available only with Sphinx ≥ 0.5. The setup.cfg doesn't give a version specification for sphinx. Depending on your virtual environment and the system Python from whence it came, it may use an older version of Sphinx that's incompatible.

The setup.cfg should stipulate a higher version of Sphinx.

(Actually, the fact there are no version specifications for any of the dependencies listed is a version-maximizing dependency confusion attack just waiting to happen 😮)

📜 To Reproduce

  • Install sphinx on Windows:
pip install -U sphinx
  • run sphinx-quickstart to generate make files
  • copy make.bat to docs folder of a newly created repo (with "template-repo-python" template).
  • run make.bat html
  • open build/html/index.html
  • The page looks wrong. No CSS are applied.

🕵️ Expected behavior

Good clean HTML docs.

📚 Version of Software Used

Windows:

C:\>sphinx-build --version
sphinx-build 4.4.0
C:\>sphinx-quickstart --version
sphinx-quickstart 4.4.0 

pip list:

Sphinx       4.4.0

🩺 Test Data / Additional context

N/A.

🏞Screenshots

sphinx-no-css

🖥 System Info

Windows 10 (21H2)


🦄 Related requirements

⚙️ Engineering Details

This issue can be fixed by using html_css_files :

html_css_files = [
    'theme_overrides.css',
]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions