mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Merge branch 'ebassi/rst-codegen-short-title' into 'main'
Shorten the title for D-Bus interface docs See merge request GNOME/glib!3793
This commit is contained in:
commit
fc3aad1661
@ -88,7 +88,7 @@ class MdCodeGenerator:
|
||||
f"Title: {iface.name} D-Bus Interface",
|
||||
f"Slug: {iface.name}",
|
||||
"",
|
||||
"# " + iface.name,
|
||||
"# " + iface.name_without_prefix,
|
||||
"",
|
||||
"## Description",
|
||||
"",
|
||||
|
@ -82,12 +82,13 @@ class RstCodeGenerator:
|
||||
|
||||
def _generate_header(self, iface):
|
||||
"""Generates the header and preamble of the document."""
|
||||
header_len = len(iface.name)
|
||||
iface_name = iface.name_without_prefix
|
||||
header_len = len(iface_name)
|
||||
res = [
|
||||
f".. _{iface.name}:",
|
||||
"",
|
||||
"=" * header_len,
|
||||
iface.name,
|
||||
iface_name,
|
||||
"=" * header_len,
|
||||
"",
|
||||
"-----------",
|
||||
|
Loading…
Reference in New Issue
Block a user