File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 22
22
$> python build_docs.py
23
23
"""
24
24
25
- import os
26
25
import pathlib
27
26
import re
28
27
import textwrap
29
28
import typing
30
29
31
-
32
30
from absl import app
33
31
from absl import flags
34
32
48
46
49
47
from tensorflow_docs .api_generator import generate_lib
50
48
from tensorflow_docs .api_generator import public_api
49
+ from tensorflow_docs .api_generator import parser
51
50
52
51
import yaml
53
52
74
73
"where to find the project code" ,
75
74
)
76
75
76
+ parser .ITEMS_TEMPLATE = textwrap .dedent (
77
+ """\
78
+ <tr>
79
+ <td>
80
+
81
+ {name}{anchor}
82
+
83
+ </td>
84
+ <td>
85
+
86
+ {description}
87
+
88
+ </td>
89
+ </tr>"""
90
+ )
91
+
92
+ parser .TEXT_TEMPLATE = textwrap .dedent (
93
+ """\
94
+ <tr class="alt">
95
+ <td colspan="2">
96
+
97
+ {text}
98
+
99
+ </td>
100
+ </tr>"""
101
+ )
102
+
77
103
78
104
def gen_api_docs ():
79
105
"""Generates api docs for the generative-ai package."""
You can’t perform that action at this time.
0 commit comments