Skip to content

Commit 8f4cc21

Browse files
MarkDaoustcopybara-github
authored andcommitted
Move script to avoid name conflicts
PiperOrigin-RevId: 438150870 Change-Id: Ic4199c0273597a71a8ea86ba9f74dcfb4c35da2c
1 parent 4764b6a commit 8f4cc21

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ py_library(
3333
)
3434

3535
py_binary(
36-
name = "build_docs",
37-
srcs = ["build_docs.py"],
36+
name = "build_api_docs",
37+
srcs = ["tools/build_api_docs.py"],
3838
)
3939

4040
py_binary(

build_docs.py renamed to tools/build_api_docs.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from absl import flags
2020
import tensorflow_compression as tfc
2121
from tensorflow_docs.api_generator import generate_lib
22+
from tensorflow_docs.api_generator import public_api
2223

2324

2425
_OUTPUT_DIR = flags.DEFINE_string(
@@ -43,12 +44,9 @@ def gen_api_docs():
4344
py_modules=[("tfc", tfc)],
4445
base_dir=os.path.dirname(tfc.__file__),
4546
code_url_prefix=_CODE_URL_PREFIX.value,
46-
private_map=dict(
47-
tfc=["python"],
48-
),
4947
search_hints=_SEARCH_HINTS.value,
5048
site_path=_SITE_PATH.value,
51-
)
49+
callbacks=[public_api.explicit_package_contents_filter])
5250
doc_generator.build(_OUTPUT_DIR.value)
5351
print("Output docs to: ", _OUTPUT_DIR.value)
5452

0 commit comments

Comments
 (0)