27 nov. 2016 kl. 11:51 skrev Stephen R. van den Berg <
srb@cuci.nl>:
Pontus ??stlund wrote:
I saw the refdoc on the Pike site is somewhat broken. The plan is to
port the new refdoc layout in 8.1 to 8.0, and I'm working on that as
we speak. But in order to make that work I need to add the standalone
It appears that @[...] does not generate a clickable href anymore in your
new code.
You are absolutely right, but I'm not 100% sure that has anything to do with the new layout, but I'm unsure.
It seems that when resolve_reference is called in atutodoc_to_html (which actually calls my_resolve_reference in autodoc_to_split_html) the second argument (xml_node->get_attributes()) is always an empty mapping. When I looked in the XML file the doc is built from I see:
<doc>
<text>
<p>Test if
<ref>set_options()</ref>
will be linked to from
<ref>a</ref>
?</p>
</text>
<group>
<param name="a"/>
<text>
<p>Just a parameter</p>
</text>
</group>
</doc>
The <ref/>-nodes doesn't contain any info about their targets. I don't know if this is supposed to be like this and that the targets are resolved later or not, but it doesn't look like it from what I can see? So the problem seems to be related to when the modref.xml is generated rahter than when the refdoc pages are built. Or am I totally wrong here?
Regards
-----------------------------
Pontus Östlund
Developer • Roxen AB
+46 70-662 81 69