doc: fix build with Sphinx 4
PATCH 1/1 doc: fix build with Sphinx 4
Sphinx 4.0 became stricter with permalink configuration:
"html_add_permalinks has been deprecated since v3.5.0. Please use html_permalinks and html_permalinks_icon instead. "
The new variable is used while keeping compatibility with older Sphinx versions.
--- doc/guides/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
doc/guides/conf.py +4 -1
@@ -31,7 +31,10 @@ project = 'Data Plane Development Kit' html_logo = '../logo/DPDK_logo_vertical_rev_small.png' latex_logo = '../logo/DPDK_logo_horizontal_tag.png' -html_add_permalinks = "" +if LooseVersion(sphinx_version) >= LooseVersion('3.5'): + html_permalinks = False +else: + html_add_permalinks = "" html_show_copyright = False highlight_language = 'none'
Signature · 1 line
2.31.1
10/05/2021 22:48, Thomas Monjalon:
Quoted 8 lines
Sphinx 4.0 became stricter with permalink configuration:
"html_add_permalinkshas been deprecated since v3.5.0. Please usehtml_permalinksandhtml_permalinks_iconinstead. "The new variable is used while keeping compatibility with older Sphinx versions.
Adding Cc: [email protected]
Quoted 1 line
Signed-off-by Thomas Monjalon <[email protected]>
I would like to merge this patch today because I have Sphinx 4 and it is annoying for testing doc build.
Quoted 19 lines
--- doc/guides/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)doc/guides/conf.py +4
-1@@ -31,7 +31,10 @@ project = 'Data Plane Development Kit' html_logo = '../logo/DPDK_logo_vertical_rev_small.png' latex_logo = '../logo/DPDK_logo_horizontal_tag.png' -html_add_permalinks = "" +if LooseVersion(sphinx_version) >= LooseVersion('3.5'): + html_permalinks = False +else: + html_add_permalinks = "" html_show_copyright = False highlight_language = 'none'
David Marchand
Reviewed-byQuoted 8 lines · Thomas Monjalon
10/05/2021 22:48, Thomas Monjalon:
Quoted 6 lines
Sphinx 4.0 became stricter with permalink configuration:
"html_add_permalinkshas been deprecated since v3.5.0. Please usehtml_permalinksandhtml_permalinks_iconinstead. "
Quoted 6 lines
Quoted 2 lines
The new variable is used while keeping compatibility with older Sphinx versions.
Adding Cc: [email protected]
Quoted 1 line
Signed-off-by Thomas Monjalon <[email protected]>
Tested with fc32 and (bleeding edge) 4.0.0 sphinx.
Signature · 1 line
David Marchand
Thomas Monjalon
Applied11/05/2021 15:25, David Marchand:
Quoted 12 lines · Thomas Monjalon
Quoted 11 lines
10/05/2021 22:48, Thomas Monjalon:
Quoted 8 lines
Sphinx 4.0 became stricter with permalink configuration:
"html_add_permalinkshas been deprecated since v3.5.0. Please usehtml_permalinksandhtml_permalinks_iconinstead. "The new variable is used while keeping compatibility with older Sphinx versions.
Quoted 6 lines
Quoted 3 lines
Adding Cc: [email protected]
Quoted 1 line
Signed-off-by Thomas Monjalon <[email protected]>Tested with fc32 and (bleeding edge) 4.0.0 sphinx.
Reviewed-by David Marchand <[email protected]>
Applied
Quoted 10 lines · Thomas Monjalon
Sphinx 4.0 became stricter with permalink configuration:
"html_add_permalinkshas been deprecated since v3.5.0. Please usehtml_permalinksandhtml_permalinks_iconinstead. "The new variable is used while keeping compatibility with older Sphinx versions.
Signed-off-by Thomas Monjalon <[email protected]>