Skip to content

pip-compile totaly ignore sphinx-notfound-page from conf.py #239

Closed
@Hierosme

Description

@Hierosme

Best sphinx publication warning a lot about fixe version of package use for generate the documentation.
For that pip-compile is the way.

Unfortunatlly i have to add sphinx-notfound-page because the commande

pip-compile --extra=doc --output-file=docs/requirements.txt pyproject.toml

Do not add sphinx-notfound-page inside docs/requirements.txt .txt

Here my conf.py import;

extensions = [
    'sphinx.ext.autodoc',
    'autoapi.extension',
    'sphinx.ext.intersphinx',
    'sphinx.ext.coverage',
    'sphinx.ext.doctest',
    'sphinx.ext.extlinks',
    'notfound.extension',
    'sphinxemoji.sphinxemoji',
]

The workarround is to declare pyproject.toml

[project.optional-dependencies]
doc = [
    "sphinx-rtd-theme",
    "sphinxemoji",
    "sphinx-autoapi",
    "sphinx-notfound-page",
]

I dont know why sphinx do not detect sphinx-notfound-page from conf.py

I dont know if a issue should be open on sphinx project or if a file should be edit inside sphinx-notfound-page project.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions