Fix docs code listing for flags [skip ci]

This commit is contained in:
Reuben Morais 2021-08-19 18:25:02 +02:00
parent 392f4dbb25
commit ad7335db0e
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Below you can find the definition of all command-line flags supported by the tra
Flags Flags
----- -----
.. literalinclude:: ../training/coqui_stt_training/util/flags.py .. literalinclude:: ../training/coqui_stt_training/util/config.py
:language: python :language: python
:linenos: :linenos:
:lineno-match: :lineno-match:

View File

@ -215,6 +215,7 @@ class _SttConfig(Coqpit):
) )
sys.exit(1) sys.exit(1)
# sphinx-doc: training_ref_flags_start
train_files: List[str] = field( train_files: List[str] = field(
default_factory=list, default_factory=list,
metadata=dict( metadata=dict(
@ -722,6 +723,7 @@ class _SttConfig(Coqpit):
help="the number of trials to run during hyperparameter optimization." help="the number of trials to run during hyperparameter optimization."
), ),
) )
# sphinx-doc: training_ref_flags_end
def initialize_globals_from_cli(): def initialize_globals_from_cli():