mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-05 12:20:13 +02:00
Fix generated RST anchors for methods, signals and properties
This commit is contained in:
parent
7032c3353e
commit
9a4e54e1b7
@ -142,7 +142,7 @@ class RstCodeGenerator:
|
|||||||
else:
|
else:
|
||||||
access = "readable"
|
access = "readable"
|
||||||
res += [
|
res += [
|
||||||
".. _{title}:",
|
f".. _{title}:",
|
||||||
"",
|
"",
|
||||||
title,
|
title,
|
||||||
"^" * len(title),
|
"^" * len(title),
|
||||||
@ -218,7 +218,7 @@ class RstCodeGenerator:
|
|||||||
for m in iface.methods:
|
for m in iface.methods:
|
||||||
title = f"{iface.name}.{m.name}"
|
title = f"{iface.name}.{m.name}"
|
||||||
res += [
|
res += [
|
||||||
".. _{title}:",
|
f".. _{title}:",
|
||||||
"",
|
"",
|
||||||
title,
|
title,
|
||||||
"^" * len(title),
|
"^" * len(title),
|
||||||
@ -296,7 +296,7 @@ class RstCodeGenerator:
|
|||||||
for s in iface.signals:
|
for s in iface.signals:
|
||||||
title = f"{iface.name}::{s.name}"
|
title = f"{iface.name}::{s.name}"
|
||||||
res += [
|
res += [
|
||||||
".. _{title}:",
|
f".. _{title}:",
|
||||||
"",
|
"",
|
||||||
title,
|
title,
|
||||||
"^" * len(title),
|
"^" * len(title),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user