Commit c6dc069a authored by Christian Hergert's avatar Christian Hergert

cleanup aliases

parent c778481e
#######
Aliases
#######
{{require GObject version "2.0"}}
{{require Girst version "1.0"}}
{{Girst.title1("Aliases")}}
{{for alias in namespace.get_children_typed(Girst.Alias)}}
.. c:type:: {{alias.c_type}}
.. _C:{{alias.c_type}}:
{{if alias.has_child_typed(Girst.Doc)}}
{{Girst.title2(alias.c_type)}}
{{alias.first_typed(Girst.Doc).to_c(" ")}}
{{end}}
{{if alias.version}}
{{if alias.has_child_typed(Girst.Doc)}}
{{alias.first_typed(Girst.Doc).to_c(" ")}}
.. versionadded:: {{alias.version}}
{{end}}
{{if alias.stability == "Unstable"}}
.. warning:: Method is currently considered unstable.
{{end}}
{{if alias.deprecated}}
.. csv-table::
:widths: 1, 100
.. deprecated:: {{alias.deprecated_version}}
{{if alias.shadowed_by}}
{{if container}}
Shadowed by: :ref:`{{container.c_type}}.{{alias.shadowed_by}}`
{{else}}
Shadowed by: :ref:`{{alias.shadowed_by}}`
{{if alias.has_child_typed(Girst.Type)}}
{{alias_of=alias.first_typed(Girst.Type)}}
"Alias of","{{Girst.clink_full(alias_of.get_lhs_ctype(), alias_of, "")}}"
{{end}}
{{if alias.version}}
"Added in","{{alias.version}}"
{{end}}
{{if alias.has_child_typed(Girst.DocDeprecated)}}
{{Girst.one_line(alias.first_typed(Girst.DocDeprecated).inner_text, "c")}}
{{if alias.stability}}
"Stability","{{alias.stability}}"
{{end}}
{{if alias.deprecated_version}}
"Deprecated since","{{alias.deprecated_version}}"
{{else if alias.deprecated}}
"Deprecated","Yes"
{{end}}
{{if alias.introspectable == "0"}}
.. note:: {{alias.c_type}} is not introspectable.
"Introspectable","No"
{{end}}
{{end}}
{{end}}
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