]> gcc.gnu.org Git - gcc.git/commitdiff
sphinx: include todolist only if INCLUDE_TODO env. set
authorMartin Liska <mliska@suse.cz>
Sun, 13 Nov 2022 14:16:12 +0000 (15:16 +0100)
committerMartin Liska <mliska@suse.cz>
Sun, 13 Nov 2022 15:41:36 +0000 (16:41 +0100)
It is confusing that 'Indexes and tables' contains TODO. One gets
Index by clicking to the Index link.

PR web/107643

ChangeLog:

* doc/baseconf.py: Set include_todo tag if INCLUDE_TODO env
is set.
* doc/indices-and-tables.rst: Use include_todo tag.

doc/baseconf.py
doc/indices-and-tables.rst

index 8021a101e77144693c94af8a0a8df1c874d759c2..c91675d3d049e82bffe351c3327c6aed19ab4979 100644 (file)
@@ -51,6 +51,7 @@ gcc_REVISION = read_file('REVISION')
 VERSION_PACKAGE = os.getenv('VERSION_PACKAGE')
 BUGURL = os.getenv('BUGURL')
 MONOCHROMATIC = os.getenv('MONOCHROMATIC')
+INCLUDE_TODO = os.getenv('INCLUDE_TODO')
 
 YEAR = time.strftime('%Y')
 
@@ -215,6 +216,8 @@ def set_common(name, module):
     if gcc_DEVPHASE == 'experimental':
         module['todo_include_todos'] = True
         module['tags'].add('development')
+    if INCLUDE_TODO:
+        module['tags'].add('include_todo')
 
     html_theme_options['source_edit_link'] = f'https://gcc.gnu.org/onlinedocs/{name}' \
                                              '/_sources/{filename}.txt'
index 56b33139280a5038ac53d46e65eeab39a13899ac..0f4cd2fdc289914527f560d0207cf46586d0b73e 100644 (file)
@@ -5,7 +5,7 @@
 
   :ref:`genindex`
 
-  .. only:: development
+  .. only:: include_todo
 
     TODO
     ----
This page took 0.066629 seconds and 5 git commands to generate.