Re: [PATCH 8/8] docs: remove extra conf.py files

From
Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Date
2019-07-15 07:57:23
Also in
alsa-devel, dri-devel, linux-crypto, linux-doc, linux-sh, lkml, netdev
Reply to
Markus Heiser, 2019-07-15
Em Mon, 15 Jul 2019 08:16:54 +0200
Markus Heiser [off-list ref] escreveu:
Hi Mauro,

sorry, I havn't tested your patch, but one question ...

Am 14.07.19 um 17:10 schrieb Mauro Carvalho Chehab:
quoted
Now that the latex_documents are handled automatically, we can
remove those extra conf.py files.  
We need these conf.py also for compiling books' into HTML.  For this
the tags.add("subproject") is needed.  Should we realy drop this feature?

-- Markus --
You're right: adding "subproject" tags is needed for html. Folding this
to patch 7/8 makes both htmldocs and pdfdocs to work with SPHINXDIRS
without the need of a per-subdir conf.py.

Regards,
Mauro
diff --git a/Documentation/sphinx/load_config.py b/Documentation/sphinx/load_config.py
index 75f527ff4c95..e4a04f367b41 100644
--- a/Documentation/sphinx/load_config.py
+++ b/Documentation/sphinx/load_config.py
@@ -51,3 +51,7 @@ def loadConfig(namespace):
             execfile_(config_file, config)
             del config['__file__']
             namespace.update(config)
+        else:
+            config = namespace.copy()
+            config['tags'].add("subproject")
+            namespace.update(config)
Thanks,
Mauro
Thread (4 messages) 4 messages, 2 authors, last reply 2019-07-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help