File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 25
25
from absl import app
26
26
from absl import flags
27
27
28
- import tensorflow_docs
28
+ import tensorflow_docs . api_generator
29
29
from tensorflow_docs .api_generator import generate_lib
30
30
from tensorflow_docs .api_generator import public_api
31
31
@@ -67,10 +67,10 @@ def gen_api_docs():
67
67
68
68
doc_generator = generate_lib .DocGenerator (
69
69
root_title = PROJECT_FULL_NAME ,
70
- # Replace `tensorflow_docs` with your module, here.
71
- py_modules = [(PROJECT_SHORT_NAME , tensorflow_docs )],
72
- # Replace `tensorflow_docs` with your module, here.
73
- base_dir = os .path .dirname (tensorflow_docs .__file__ ),
70
+ # Replace `tensorflow_docs.api_generator ` with your module, here.
71
+ py_modules = [(PROJECT_SHORT_NAME , tensorflow_docs . api_generator )],
72
+ # Replace `tensorflow_docs.api_generator ` with your module, here.
73
+ base_dir = os .path .dirname (tensorflow_docs .api_generator . __file__ ),
74
74
code_url_prefix = _URL_PREFIX .value ,
75
75
search_hints = _SEARCH_HINTS .value ,
76
76
site_path = _SITE_PATH .value ,
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
# ==============================================================================
15
15
"""tensorflow_docs is a package for generating python api-reference docs."""
16
-
17
- from __future__ import absolute_import
18
- from __future__ import division
19
- from __future__ import print_function
20
-
21
- from tensorflow_docs import api_generator
You can’t perform that action at this time.
0 commit comments