Skip to contentSkip to conversation

doc: rebuild all Sphinx guides

PATCH In review Thomas Monjalon 2 participants 4 messages Feb 7, 2023 – Feb 14, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: rebuild all Sphinx guides

On some systems, Sphinx is lazy enough to not recompile an RST file, even if it contains a link pointing to a file which has been removed.

In order to detect such broken links,
the option "-a" is used to always rebuild all.

---
 doc/guides/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/guides/meson.build +1 -1
index 03b8bee567..51f81da2e3 100644
@@ -7,7 +7,7 @@ if not sphinx.found()
     subdir_done()
 endif
 
-extra_sphinx_args = []
+extra_sphinx_args = ['-a']
 if get_option('werror')
     extra_sphinx_args += '-W'
 endif
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Monjalon

On some systems, Sphinx is lazy enough to not recompile an RST file, even if it contains a link pointing to a file which has been removed.

In order to detect such broken links,
the option "-a" is used to always rebuild all.

I can't reproduce such behavior, but the principle looks ok to me and I did not notice a difference in terms of time spending generating the documentation.

Quoted 2 lines

We have no guide describing Sphinx, I'd rather update this patch title like "doc: rebuild all guides with Sphinx".

Signature · 1 line
David Marchand
#2 lore raw

07/02/2023 09:54, David Marchand:

Quoted 11 lines · Thomas Monjalon
Quoted 6 lines

On some systems, Sphinx is lazy enough to not recompile an RST file, even if it contains a link pointing to a file which has been removed.

In order to detect such broken links,
the option "-a" is used to always rebuild all.

I can't reproduce such behavior, but the principle looks ok to me and I did not notice a difference in terms of time spending generating the documentation.

I think your system behaves with -a option forced somewhere.

Quoted 4 lines
Quoted 1 line

We have no guide describing Sphinx, I'd rather update this patch title like "doc: rebuild all guides with Sphinx".

Yes

Quoted 1 line
author Applied
#3 lore raw

07/02/2023 10:09, Thomas Monjalon:

Quoted 13 lines

07/02/2023 09:54, David Marchand:

Quoted 11 lines · Thomas Monjalon
Quoted 6 lines

On some systems, Sphinx is lazy enough to not recompile an RST file, even if it contains a link pointing to a file which has been removed.

In order to detect such broken links,
the option "-a" is used to always rebuild all.

I can't reproduce such behavior, but the principle looks ok to me and I did not notice a difference in terms of time spending generating the documentation.

Quoted 10 lines

I think your system behaves with -a option forced somewhere.

Quoted 4 lines
Quoted 1 line

We have no guide describing Sphinx, I'd rather update this patch title like "doc: rebuild all guides with Sphinx".

Yes

Quoted 1 line

Applied