summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2019-10-03 22:40:16 +0200
committerDave Andreoli <dave@gurumeditation.it>2019-10-03 22:40:16 +0200
commit5c94f62b6d9173d9238ef905291d62181b3381e1 (patch)
tree46ba2aba3139b29a2c12dc0304d0903c9d4bf7ea /src/scripts
parentb12f07e52bf5d16595cc3ef120ecdc8c203437fc (diff)
Pyolian gendoc: make links to functions actually work
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/gendoc/doc_class.template6
-rw-r--r--src/scripts/gendoc/doc_macros.include11
2 files changed, 8 insertions, 9 deletions
diff --git a/src/scripts/gendoc/doc_class.template b/src/scripts/gendoc/doc_class.template
index 92e7b5b04b..14f1f568a1 100644
--- a/src/scripts/gendoc/doc_class.template
+++ b/src/scripts/gendoc/doc_class.template
@@ -57,8 +57,8 @@ ${OBJECT_STATIC_CONTENT(obj=cls, section='description')}$
57 57
58<!--(for impl in cls.implements)--> 58<!--(for impl in cls.implements)-->
59 <!--(if impl.is_property)--> 59 <!--(if impl.is_property)-->
60{{anchor:${impl.short_name}$}}
60${IMPLEMENT_FULL(impl=impl, cls=cls)}$ 61${IMPLEMENT_FULL(impl=impl, cls=cls)}$
61\\
62 <!--(end)--> 62 <!--(end)-->
63<!--(else)--> 63<!--(else)-->
64No properties defined in this class. 64No properties defined in this class.
@@ -68,8 +68,8 @@ No properties defined in this class.
68 68
69<!--(for impl in cls.implements)--> 69<!--(for impl in cls.implements)-->
70 <!--(if impl.is_method)--> 70 <!--(if impl.is_method)-->
71{{anchor:${impl.short_name}$}}
71${IMPLEMENT_FULL(impl=impl, cls=cls)}$ 72${IMPLEMENT_FULL(impl=impl, cls=cls)}$
72\\
73 <!--(end)--> 73 <!--(end)-->
74<!--(else)--> 74<!--(else)-->
75No methods defined in this class. 75No methods defined in this class.
@@ -103,4 +103,6 @@ No extensions defined in this class.
103 <!--(end)--> 103 <!--(end)-->
104| ''${ev.name}$'' | ${BEST_SUMMARY(obj=ev)}$ ${OBJECT_SCOPE(obj=ev)}$ ${EVENT_TAGS}$ | ${TYPE_LINK(type=ev.type) if ev.type else 'None'}$ | 104| ''${ev.name}$'' | ${BEST_SUMMARY(obj=ev)}$ ${OBJECT_SCOPE(obj=ev)}$ ${EVENT_TAGS}$ | ${TYPE_LINK(type=ev.type) if ev.type else 'None'}$ |
105 <!--(end)--> 105 <!--(end)-->
106<!--(else)-->
107No events defined in this class.
106<!--(end)--> 108<!--(end)-->
diff --git a/src/scripts/gendoc/doc_macros.include b/src/scripts/gendoc/doc_macros.include
index 507693179a..9fb07d2ea4 100644
--- a/src/scripts/gendoc/doc_macros.include
+++ b/src/scripts/gendoc/doc_macros.include
@@ -167,12 +167,9 @@ interface#!
167 <!--(for n in func.class_.namespaces)--> 167 <!--(for n in func.class_.namespaces)-->
168:${n.lower()}$#! 168:${n.lower()}$#!
169 <!--(end)--> 169 <!--(end)-->
170 <!--(if func.type == Eolian_Function_Type.METHOD)--> 170:${func.class_.short_name}$#!
171:method#! 171#${func.short_name}$#!
172 <!--(else)--> 172|${func.short_name}$]]
173:property#!
174 <!--(end)-->
175:${func.short_name}$|${func.short_name}$]]
176<!--(end)--> 173<!--(end)-->
177#!############################################################################## 174#!##############################################################################
178#!#### FUNC_SCOPE(func) ###################################################### 175#!#### FUNC_SCOPE(func) ######################################################
@@ -305,7 +302,7 @@ ${', ' if i else ''}$#!
305 <!--(end)--> 302 <!--(end)-->
306 <!--(end)--> 303 <!--(end)-->
307) #! 304) #!
308${IMPLEMENT_TAGS}$ #! 305${IMPLEMENT_TAGS(impl=impl)}$ #!
309 <!--(if impl.is_method)--> 306 <!--(if impl.is_method)-->
310 <!--(if impl.function.method_return_type)--> 307 <!--(if impl.function.method_return_type)-->
311 => //${impl.function.method_return_type.short_name}$// #! 308 => //${impl.function.method_return_type.short_name}$// #!