After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728283 - Linking to a section in a DocBook file is broken
Linking to a section in a DocBook file is broken
Status: RESOLVED OBSOLETE
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-15 18:29 UTC by Volker Sobek (weld)
Modified: 2018-05-22 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Volker Sobek (weld) 2014-04-15 18:29:14 UTC
While looking at the remaining non-markdown links in the glib docs (the .h files still have some) I stumbled across this: All links of the form

<link linkend="extending-gio">Extending GIO</link>

seem to be broken for many versions (at least in every version available at https://developer.gnome.org/gio/).

In the current 2.40.x version it became obvious since in the .h files these links are not converted to markdown links yet (so they show up literally with '<link...' while in previous versions the link was just ignored during the doc generation since it didn't exist. 

The errors when generating the docs look like:
html/GVfs.html:350: warning: no link for: 'extending-gio' -> (Extending GIO).
Comment 1 Volker Sobek (weld) 2014-04-15 18:31:20 UTC
<chapter id="extending-gio"> is here: https://git.gnome.org/browse/glib/tree/docs/reference/gio/overview.xml#n523
Comment 2 Philip Withnall 2017-10-05 14:09:46 UTC
This looks like a gtk-doc bug: linking to an ID from a DocBook file seems to be broken.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2017-10-05 16:28:46 UTC
I am quite busy right now. If I get a patch for gtk-doc with a test case I'll take a look. Or at least more detail - like what ends up in the html (no link at all?)
Comment 4 Philip Withnall 2017-10-09 08:40:39 UTC
I won’t be able to write a patch, but here are some details.

Markdown (for example, from G_PROXY_EXTENSION_POINT_NAME, https://git.gnome.org/browse/glib/tree/gio/gproxy.h#n39):

/**
 * G_PROXY_EXTENSION_POINT_NAME:
 *
 * Extension point for proxy functionality.
 * See [Extending GIO][extending-gio].
 *
 * Since: 2.26
 */

Generated HTML (no link, just the link text):

<div class="refsect2">
<a name="G-PROXY-EXTENSION-POINT-NAME:CAPS"></a><h3>G_PROXY_EXTENSION_POINT_NAME</h3>
<pre class="programlisting">#define G_PROXY_EXTENSION_POINT_NAME "gio-proxy"
</pre>
<p>Extension point for proxy functionality.
See Extending GIO.</p>
<p class="since">Since: <a class="link" href="api-index-2-26.html#api-index-2.26">2.26</a></p>
</div>

The `extending-gio` anchor is defined in a DocBook file:
https://git.gnome.org/browse/glib/tree/docs/reference/gio/overview.xml#n577
Comment 5 GNOME Infrastructure Team 2018-05-22 13:08:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk-doc/issues/27.