diff options
-rw-r--r-- | tensorflow/tools/docs/substitute_links.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/tools/docs/substitute_links.py b/tensorflow/tools/docs/substitute_links.py index 698bee7fba..848aa6d186 100644 --- a/tensorflow/tools/docs/substitute_links.py +++ b/tensorflow/tools/docs/substitute_links.py @@ -61,6 +61,10 @@ def _main(input_dir, output_dir): full_in_path = os.path.join(dirpath, base_name) suffix = os.path.relpath(path=full_in_path, start=input_dir) full_out_path = os.path.join(output_dir, suffix) + if not base_name.endswith('.md'): + print('Copying non-md file %s...' % suffix) + open(full_out_path, 'w').write(open(full_in_path).read()) + continue if dirpath.endswith('/api_guides/python'): print('Processing Python guide %s...' % base_name) md_string = tag_updater.process(full_in_path) |