* [dpdk-dev] [PATCH] doc: fix build with Sphinx 4
@ 2021-05-10 20:48 Thomas Monjalon
2021-05-11 12:41 ` Thomas Monjalon
2021-05-11 12:50 ` Bruce Richardson
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Monjalon @ 2021-05-10 20:48 UTC (permalink / raw)
To: dev
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.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/conf.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/guides/conf.py b/doc/guides/conf.py
index ec59aeae7e..c22caaa247 100644
--- a/doc/guides/conf.py
+++ b/doc/guides/conf.py
@@ -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'
--
2.31.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: fix build with Sphinx 4
2021-05-10 20:48 [dpdk-dev] [PATCH] doc: fix build with Sphinx 4 Thomas Monjalon
@ 2021-05-11 12:41 ` Thomas Monjalon
2021-05-11 13:25 ` David Marchand
2021-05-11 12:50 ` Bruce Richardson
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2021-05-11 12:41 UTC (permalink / raw)
To: dev; +Cc: Thomas Monjalon
10/05/2021 22:48, Thomas Monjalon:
> 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.
Adding Cc: stable@dpdk.org
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
I would like to merge this patch today because I have Sphinx 4
and it is annoying for testing doc build.
> ---
> doc/guides/conf.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/doc/guides/conf.py b/doc/guides/conf.py
> index ec59aeae7e..c22caaa247 100644
> --- a/doc/guides/conf.py
> +++ b/doc/guides/conf.py
> @@ -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'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: fix build with Sphinx 4
2021-05-11 12:41 ` Thomas Monjalon
@ 2021-05-11 13:25 ` David Marchand
2021-05-11 14:58 ` Thomas Monjalon
0 siblings, 1 reply; 5+ messages in thread
From: David Marchand @ 2021-05-11 13:25 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Tue, May 11, 2021 at 2:41 PM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 10/05/2021 22:48, Thomas Monjalon:
> > 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.
>
> Adding Cc: stable@dpdk.org
>
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested with fc32 and (bleeding edge) 4.0.0 sphinx.
Reviewed-by: David Marchand <david.marchand@redhat.com>
--
David Marchand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: fix build with Sphinx 4
2021-05-11 13:25 ` David Marchand
@ 2021-05-11 14:58 ` Thomas Monjalon
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2021-05-11 14:58 UTC (permalink / raw)
To: David Marchand; +Cc: dev, bruce.richardson
11/05/2021 15:25, David Marchand:
> On Tue, May 11, 2021 at 2:41 PM Thomas Monjalon <thomas@monjalon.net> wrote:
> >
> > 10/05/2021 22:48, Thomas Monjalon:
> > > 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.
> >
> > Adding Cc: stable@dpdk.org
> >
> > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
>
> Tested with fc32 and (bleeding edge) 4.0.0 sphinx.
> Reviewed-by: David Marchand <david.marchand@redhat.com>
Applied
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: fix build with Sphinx 4
2021-05-10 20:48 [dpdk-dev] [PATCH] doc: fix build with Sphinx 4 Thomas Monjalon
2021-05-11 12:41 ` Thomas Monjalon
@ 2021-05-11 12:50 ` Bruce Richardson
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2021-05-11 12:50 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Mon, May 10, 2021 at 10:48:07PM +0200, Thomas Monjalon wrote:
> 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.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-11 14:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 20:48 [dpdk-dev] [PATCH] doc: fix build with Sphinx 4 Thomas Monjalon
2021-05-11 12:41 ` Thomas Monjalon
2021-05-11 13:25 ` David Marchand
2021-05-11 14:58 ` Thomas Monjalon
2021-05-11 12:50 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).