New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix building docs on Debian Bullseye #1602
Conversation
When building docs with man pages (`--enable-manpages-in-doc`) the following issues exists: * Sphinx refdomain=None no longer works. In a previous fix (commit 388c0b6) refdomain=None was introduced. However this emits a deprecation warning on pre Debian Bullseye (i.e. Ubuntu Focal) and no longer works on Bullseye. Fix this by setting refdomain=std: RemovedInSphinx20Warning: Invalid pendig_xref node detected. :doc: reference should have refdomain=std attribute. * On Bullseye an other deprecation warning is emitted and no longer works the old way. Fixing this as suggested in the warning: RemovedInSphinx40Warning: app.add_lexer() API changed; Please give lexer class instead of instance Signed-off-by: Sascha Lucas <sascha_lucas@web.de>
OK. It builds on Bullseye, but nothing else:
I need to investigate further on a fix depended on the sphinx version. |
According to Sphinx changelog[1] add_lexer() takes a Lexer class instead of instance since 2.1.0 [1] https://www.sphinx-doc.org/en/master/changes.html Signed-off-by: Sascha Lucas <sascha_lucas@web.de>
friendly ping @iustin |
Maybe also backport to 3.0? Or target it directly and "upmerge", like in the days of yore... |
Sorry for the late reply, I don't have much time nowadays. This seems very straightforward, thank you. |
Thank you @iustin. @mbakke: I've tagged this PR for backport to 3.0, since this would ease my tests for Debian Bullseye. And last but not least ganeti docs should be generated on Bullseye next time. |
When building docs with man pages (`--enable-manpages-in-doc`) the following issues exists: * Sphinx refdomain=None no longer works. In a previous fix (commit 388c0b6) refdomain=None was introduced. However this emits a deprecation warning on pre Debian Bullseye (i.e. Ubuntu Focal) and no longer works on Bullseye. Fix this by setting refdomain=std: RemovedInSphinx20Warning: Invalid pendig_xref node detected. :doc: reference should have refdomain=std attribute. * On Bullseye an other deprecation warning is emitted and no longer works the old way. Fixing this as suggested in the warning, while keeping support for sphinx before 2.1.0: RemovedInSphinx40Warning: app.add_lexer() API changed; Please give lexer class instead of instance Signed-off-by: Sascha Lucas <sascha_lucas@web.de>
When building docs with man pages (`--enable-manpages-in-doc`) the following issues exists: * Sphinx refdomain=None no longer works. In a previous fix (commit 388c0b6) refdomain=None was introduced. However this emits a deprecation warning on pre Debian Bullseye (i.e. Ubuntu Focal) and no longer works on Bullseye. Fix this by setting refdomain=std: RemovedInSphinx20Warning: Invalid pendig_xref node detected. :doc: reference should have refdomain=std attribute. * On Bullseye an other deprecation warning is emitted and no longer works the old way. Fixing this as suggested in the warning, while keeping support for sphinx before 2.1.0: RemovedInSphinx40Warning: app.add_lexer() API changed; Please give lexer class instead of instance Signed-off-by: Sascha Lucas <sascha_lucas@web.de> (cherry picked from commit 40c4390)
When building docs with man pages (`--enable-manpages-in-doc`) the following issues exists: * Sphinx refdomain=None no longer works. In a previous fix (commit 388c0b6) refdomain=None was introduced. However this emits a deprecation warning on pre Debian Bullseye (i.e. Ubuntu Focal) and no longer works on Bullseye. Fix this by setting refdomain=std: RemovedInSphinx20Warning: Invalid pendig_xref node detected. :doc: reference should have refdomain=std attribute. * On Bullseye an other deprecation warning is emitted and no longer works the old way. Fixing this as suggested in the warning, while keeping support for sphinx before 2.1.0: RemovedInSphinx40Warning: app.add_lexer() API changed; Please give lexer class instead of instance Signed-off-by: Sascha Lucas <sascha_lucas@web.de> (cherry picked from commit 40c4390)
When building docs with man pages (`--enable-manpages-in-doc`) the following issues exists: * Sphinx refdomain=None no longer works. In a previous fix (commit 388c0b6) refdomain=None was introduced. However this emits a deprecation warning on pre Debian Bullseye (i.e. Ubuntu Focal) and no longer works on Bullseye. Fix this by setting refdomain=std: RemovedInSphinx20Warning: Invalid pendig_xref node detected. :doc: reference should have refdomain=std attribute. * On Bullseye an other deprecation warning is emitted and no longer works the old way. Fixing this as suggested in the warning, while keeping support for sphinx before 2.1.0: RemovedInSphinx40Warning: app.add_lexer() API changed; Please give lexer class instead of instance Signed-off-by: Sascha Lucas <sascha_lucas@web.de>
When building docs with man pages (
--enable-manpages-in-doc
) the following issues exists: