@@ -0,0 +1,1993 @@
+# Lint as: python3%0A# Copyright 2020 The TensorFlow Authors. All Rights Reserved.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#     http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A# ==============================================================================%0Ar%22%22%22Generate python docs for tf.lite.%0A%0A# How to run%0A%0A%60%60%60%0Apython build_docs.py --output_dir=/path/to/output%0A%60%60%60%0A%0A%22%22%22%0Aimport pathlib%0A%0Afrom absl import app%0Afrom absl import flags%0A%0Aimport tflite_model_maker%0Aimport tensorflow_examples%0A%0Afrom tensorflow_docs.api_generator import generate_lib%0A%0Aflags.DEFINE_string('output_dir', '/tmp/mm_api/',%0A                    'The path to output the files to')%0A%0Aflags.DEFINE_string('code_url_prefix',%0A                    'https://github.com/tensorflow/examples/blob/master/',%0A                    'The url prefix for links to code.')%0A%0Aflags.DEFINE_bool('search_hints', True,%0A                  'Include metadata search hints in the generated files')%0A%0Aflags.DEFINE_string('site_path', 'lite/api_docs/python',%0A                    'Path prefix in the _toc.yaml')%0A%0AFLAGS = flags.FLAGS%0A%0A%0Adef main(_):%0A  doc_generator = generate_lib.DocGenerator(%0A      root_title='TensorFlow Lite Model Maker',%0A      py_modules=%5B('tflite_model_maker', tflite_model_maker)%5D,%0A      code_url_prefix=FLAGS.code_url_prefix,%0A      base_dir=str(pathlib.Path(tensorflow_examples.__file__).parent),%0A      search_hints=FLAGS.search_hints,%0A      site_path=FLAGS.site_path,%0A      callbacks=%5B%5D)%0A%0A  doc_generator.build(output_dir=FLAGS.output_dir)%0A%0A%0Aif __name__ == '__main__':%0A app.run(main)%0A

Add api-docs generator script