Skip to content

Commit

Permalink
Avoid truncated class links
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 15, 2024
1 parent f8d342f commit a33111f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/make_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def ltr_tag(v):
"""

MODULE_TOC_MAX_COLUMN_SIZES = [100, 300]
MODULE_TOC_MAX_COLUMN_SIZES = [300, 500]


def extract_summary(doc: str) -> str:
Expand Down Expand Up @@ -278,7 +278,8 @@ def generate_docs():
summary = ""
if class_doc:
summary = extract_summary(class_doc)
row_contents = [f":doc:`{class_name}`", summary or ""]
row_contents = [f"`{class_name} <{class_name}.html>`_",
summary or '']
package_custom_toc += make_table_row(row_contents)

package_index.write(
Expand Down

0 comments on commit a33111f

Please sign in to comment.