[Docs] Update `EnumDocumenter` for newer Sphinx (#8914)
authorAndres Noetzli <andres.noetzli@gmail.com>
Mon, 27 Jun 2022 21:57:05 +0000 (14:57 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 21:57:05 +0000 (21:57 +0000)
commitad425c0bc9931c09f615cd55585aa6f78206a847
treee61385dcedeb95a2c4a1a9af2efc832a65a7f7d1
parentb71fcbb8aa09fdd14142a3349615f4eaea491c91
[Docs] Update `EnumDocumenter` for newer Sphinx (#8914)

The `no_docstring` argument of
`sphinx.ext.autodoc.Documenter.add_content()` has been
[deprecated](https://www.sphinx-doc.org/en/master/changes.html) since
Sphinx 3.4.0 (released in December 2020). It seems that newer Sphinx
versions have removed that argument, which breaks our `EnumDocumenter`
(e.g., see the following
[example](https://github.com/cvc5/cvc5/runs/7081097179?check_suite_focus=true)).
This commit updates our use of
`sphinx.ext.autodoc.Documenter.add_content()`.
docs/ext/autoenum.py