sphinx-doc / sphinxcontrib-django

This is a sphinx extension which improves the documentation of Django apps.
https://pypi.org/project/sphinxcontrib-django/
Apache License 2.0
43 stars 25 forks source link

When empty string is in Text.Choices enum, than rendering generates a warning, that will be an error in many configuration #41

Closed insspb closed 1 year ago

insspb commented 1 year ago

I have enums, where first enum database value is empty string (common 'not specified'). For such places with current configuration sphinx will generate a warning: CRITICAL: Unexpected section title or transition.

If user like me have an option -W, than rendering will be not finished.

I will PR fix for this.