Add API report setup.
PiperOrigin-RevId: 375742844
This commit is contained in:
parent
a03374be6c
commit
331a2911ac
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,9 @@ flags.DEFINE_string('site_path', 'responsible_ai/privacy/api_docs/python/',
|
||||||
'The location of the doc setin the site.')
|
'The location of the doc setin the site.')
|
||||||
flags.DEFINE_bool('search_hints', True,
|
flags.DEFINE_bool('search_hints', True,
|
||||||
'Include metadata search hints in the generated files.')
|
'Include metadata search hints in the generated files.')
|
||||||
|
flags.DEFINE_bool('gen_report', False,
|
||||||
|
('Generate an API report containing the health of the'
|
||||||
|
'docstrings of the public API.'))
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
@ -53,6 +56,7 @@ def gen_api_docs():
|
||||||
site_path=FLAGS.site_path,
|
site_path=FLAGS.site_path,
|
||||||
search_hints=FLAGS.search_hints,
|
search_hints=FLAGS.search_hints,
|
||||||
private_map={},
|
private_map={},
|
||||||
|
gen_report=FLAGS.gen_report,
|
||||||
# This callback cleans up a lot of aliases caused by internal imports.
|
# This callback cleans up a lot of aliases caused by internal imports.
|
||||||
callbacks=[public_api.explicit_package_contents_filter])
|
callbacks=[public_api.explicit_package_contents_filter])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue