File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ py_library(
33
33
)
34
34
35
35
py_binary (
36
- name = "build_docs " ,
37
- srcs = ["build_docs .py" ],
36
+ name = "build_api_docs " ,
37
+ srcs = ["tools/build_api_docs .py" ],
38
38
)
39
39
40
40
py_binary (
Original file line number Diff line number Diff line change 19
19
from absl import flags
20
20
import tensorflow_compression as tfc
21
21
from tensorflow_docs .api_generator import generate_lib
22
+ from tensorflow_docs .api_generator import public_api
22
23
23
24
24
25
_OUTPUT_DIR = flags .DEFINE_string (
@@ -43,12 +44,9 @@ def gen_api_docs():
43
44
py_modules = [("tfc" , tfc )],
44
45
base_dir = os .path .dirname (tfc .__file__ ),
45
46
code_url_prefix = _CODE_URL_PREFIX .value ,
46
- private_map = dict (
47
- tfc = ["python" ],
48
- ),
49
47
search_hints = _SEARCH_HINTS .value ,
50
48
site_path = _SITE_PATH .value ,
51
- )
49
+ callbacks = [ public_api . explicit_package_contents_filter ] )
52
50
doc_generator .build (_OUTPUT_DIR .value )
53
51
print ("Output docs to: " , _OUTPUT_DIR .value )
54
52
You can’t perform that action at this time.
0 commit comments