Commit 0644f386 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣

Merge branch 'fix-getter-links' into 'master'

Fix generated getter and setter links

See merge request ebassi/gi-docgen!19
parents 65a5d92d 183f3757
......@@ -230,7 +230,7 @@ class TemplateProperty:
return setter_func
func_name = setter_func.replace(namespace.symbol_prefix[0] + '_', '')
func_name = func_name.replace(t.symbol_prefix + '_', '')
href = f"method.{t.name}.{func_name}"
href = f"method.{t.name}.{func_name}.html"
return Markup(f"<a href=\"{href}\"><code>{setter_func}</code></a>")
def transform_get_attribute(namespace, prop, getter_func):
......@@ -246,7 +246,7 @@ class TemplateProperty:
return getter_func
func_name = getter_func.replace(namespace.symbol_prefix[0] + '_', '')
func_name = func_name.replace(t.symbol_prefix + '_', '')
href = f"method.{t.name}.{func_name}"
href = f"method.{t.name}.{func_name}.html"
return Markup(f"<a href=\"{href}\"><code>{getter_func}</code></a>")
ATTRIBUTE_NAMES = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment