• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンc64fd69420fd153f9fb16a603ff0a711fbde8335 (tree)
日時2022-11-14 00:41:36
作者Martin Liska <mliska@suse...>
コミッターMartin Liska

ログメッセージ

sphinx: include todolist only if INCLUDE_TODO env. set

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.

変更サマリ

差分

--- a/doc/baseconf.py
+++ b/doc/baseconf.py
@@ -51,6 +51,7 @@ gcc_REVISION = read_file('REVISION')
5151 VERSION_PACKAGE = os.getenv('VERSION_PACKAGE')
5252 BUGURL = os.getenv('BUGURL')
5353 MONOCHROMATIC = os.getenv('MONOCHROMATIC')
54+INCLUDE_TODO = os.getenv('INCLUDE_TODO')
5455
5556 YEAR = time.strftime('%Y')
5657
@@ -215,6 +216,8 @@ def set_common(name, module):
215216 if gcc_DEVPHASE == 'experimental':
216217 module['todo_include_todos'] = True
217218 module['tags'].add('development')
219+ if INCLUDE_TODO:
220+ module['tags'].add('include_todo')
218221
219222 html_theme_options['source_edit_link'] = f'https://gcc.gnu.org/onlinedocs/{name}' \
220223 '/_sources/{filename}.txt'
--- a/doc/indices-and-tables.rst
+++ b/doc/indices-and-tables.rst
@@ -5,7 +5,7 @@
55
66 :ref:`genindex`
77
8- .. only:: development
8+ .. only:: include_todo
99
1010 TODO
1111 ----