Closed kloczek closed 2 years ago
https://github.com/sphinx-doc/sphinx/issues/9432 was closed and deemed not a Sphinx bug. I think this issue is a close duplicate of https://github.com/spatialaudio/nbsphinx/issues/483
Could you test if this NotImplementedError
appears with other versions of Sphinx, without changing the nbsphinx dependency? I would find it very weird if it only happened with 4.0.3.
Also, 4.1.0 had a couple of regressions and you might want to wait for 4.1.1.
nbsphinx
author here.
I've never used the manpage builder, so I wouldn't be surprised if nbsphinx
doesn't work with it.
This is indeed similar to https://github.com/spatialaudio/nbsphinx/issues/483.
If you want to make the manpage builder work with nbsphinx
, please make a PR. I'm happy to help if I can, but I won't implement it myself.
Those warnings are not man roff outpt specyfic
[tkloczko@barrel LibCST-0.3.20]$ /usr/bin/python3 setup.py build_sphinx -b html --build-dir build/sphinx
running build_sphinx
Running Sphinx v4.1.2
making output directory... done
[autosummary] generating autosummary for: best_practices.rst, codemods.rst, codemods_tutorial.rst, experimental.rst, helpers.rst, index.rst, matchers.rst, matchers_tutorial.ipynb, metadata.rst, metadata_tutorial.ipynb, motivation.rst, nodes.rst, parser.rst, scope_tutorial.ipynb, tutorial.ipynb, visitors.rst, why_libcst.rst
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 17 source files that are out of date
updating environment: [new config] 17 added, 0 changed, 0 removed
reading sources... [100%] why_libcst
/home/tkloczko/rpmbuild/BUILD/LibCST-0.3.20/libcst/metadata/full_repo_manager.py:docstring of libcst.metadata.full_repo_manager.FullRepoManager.__init__:7: WARNING: Field list ends without a blank line; unexpected unindent.
/home/tkloczko/rpmbuild/BUILD/LibCST-0.3.20/libcst/metadata/full_repo_manager.py:docstring of libcst.metadata.full_repo_manager.FullRepoManager.__init__:10: WARNING: Unexpected indentation.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] why_libcst
generating indices... genindex done
copying notebooks ... [100%] tutorial.ipynb
highlighting module code... [100%] libcst.metadata.wrapper
writing additional pages... search done
copying images... [100%] _static/img/python_scopes.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 2 warnings.
You can check all formats by:
for i in html dirhtml singlehtml htmlhelp qthelp devhelp epub applehelp latex man texinfo text gettext doctest linkcheck xml pseudoxml; do /usr/bin/python3 setup.py build_sphinx -b $i --build-dir build/sphinx; done
About PR .. sorry but I have no idea how to fix that.
Those warnings just complain about the docstring formatting. You should indent broken lines (those starting with :class:
), then the warnings should go away.
I think this issue is the same with #749. With the landing of #750, this issue can be closed now.
Yep
At the moment sphinx 4.0.3 fails on building
LibCST
documentation so I've opened https://github.com/sphinx-doc/sphinx/issues/9432 however in that ticket there are some warnings as well