vprusso/toqito

Sphinx build error: `ppt_distinguishability`

Closed this issue · 1 comments

As noticed in #440, some errors are raised in state_opt/ppt_distinguishability when make clean html is used.

This appears to be some kind of a docstring formatting issue or some incompatibility with AutoAPI.

https://sphinx-autoapi.readthedocs.io/en/latest/index.html

/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:121: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:125: ERROR: Unexpected indentation.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:126: WARNING: Block quote ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:127: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:128: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:133: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:137: ERROR: Unexpected indentation.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:138: WARNING: Block quote ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:142: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:143: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:158: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:162: ERROR: Unexpected indentation.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:163: WARNING: Block quote ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:167: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:168: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:173: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:177: ERROR: Unexpected indentation.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:179: WARNING: Block quote ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:181: ERROR: Unexpected indentation.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:182: WARNING: Block quote ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:186: WARNING: Definition list ends without a blank line; unexpected unindent.
/toqito/docs/autoapi/state_opt/ppt_distinguishability/index.rst:187: WARNING: Definition list ends without a blank line; unexpected unindent.

Interestingly, the lines for the build error changed from yesterday.

image

Now, the errors are from some lines in the docstring of the main function and code in primal_problem.

Edit: If I get rid of the stuff under math in primal_problem and dual_problem, there are no build errors at all.