Skip to content

Commit 0f0a96d

Browse files
committed
fixes 563
Change-Id: Ifb9743822c744845aac4deea9963a0c6e6389362
1 parent c8eadc4 commit 0f0a96d

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

docs/build_docs.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@
2222
$> python build_docs.py
2323
"""
2424

25-
import os
2625
import pathlib
2726
import re
2827
import textwrap
2928
import typing
3029

31-
3230
from absl import app
3331
from absl import flags
3432

@@ -48,6 +46,7 @@
4846

4947
from tensorflow_docs.api_generator import generate_lib
5048
from tensorflow_docs.api_generator import public_api
49+
from tensorflow_docs.api_generator import parser
5150

5251
import yaml
5352

@@ -74,6 +73,33 @@
7473
"where to find the project code",
7574
)
7675

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+
77103

78104
def gen_api_docs():
79105
"""Generates api docs for the generative-ai package."""

0 commit comments

Comments
 (0)