Add API report setup.

PiperOrigin-RevId: 375742844
This commit is contained in:
A. Unique TensorFlower 2021-05-25 10:49:11 -07:00
parent a03374be6c
commit 331a2911ac

View file

@ -34,6 +34,9 @@ flags.DEFINE_string('site_path', 'responsible_ai/privacy/api_docs/python/',
'The location of the doc setin the site.')
flags.DEFINE_bool('search_hints', True,
'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
@ -53,6 +56,7 @@ def gen_api_docs():
site_path=FLAGS.site_path,
search_hints=FLAGS.search_hints,
private_map={},
gen_report=FLAGS.gen_report,
# This callback cleans up a lot of aliases caused by internal imports.
callbacks=[public_api.explicit_package_contents_filter])