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 751783 - Creating master xml document documentation is a bit lacking
Creating master xml document documentation is a bit lacking
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.25
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-01 14:28 UTC by Jeremy Whiting
Modified: 2015-07-02 23:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Whiting 2015-07-01 14:28:11 UTC
The documentation at https://developer.gnome.org/gtk-doc-manual/unstable/metafiles_master.html.en mentions how to create the document and the header but doesn't do into much detail about how the rest of the document should/could be written. For example:

Nothing is mentioned about how to add auto generated documentation for objects like this:
 <xi:include href="xml/foo-version.xml"/>
 <xi:include href="xml/foo-component.xml"/>
Comment 1 Philip Withnall 2015-07-01 14:36:38 UTC
See also: bug #743182 and bug #742580 for ways to (slightly) simplify the top-level XML file.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2015-07-01 16:21:57 UTC
Jeremy, since gtkdoc-1.23 gtkdoc add generated optional parts in commented form, so that you just have to un-comment them if you like to have them.

Besides for all regular sections, gtkdoc-check will notify you if there is a xml file that is generated but not included from the doc.

In the long-run we could add an option to gtkdoc-mkdb to *always* regenerate the master-doc. In order to get there, bug #743182 surely helps, but we also need a way to customize how the doc is structures (e.g. add a "@in_section: foo" tag so that one can group sections into chapters.
Comment 3 Philip Withnall 2015-07-01 17:36:30 UTC
(In reply to Stefan Sauer (gstreamer, gtkdoc dev) from comment #2)
> (e.g. add a "@in_section: foo" tag so that one can group sections into chapters.

I would be very much in favour of something like this — I’m a big fan of Mallard’s declarative, auto-linking approach, and I think it would work well for gtk-doc too. Bonus points if the syntax and semantics for it match Mallard’s. :-D
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2015-07-01 20:14:39 UTC
Just to make sure we don't side track too much
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2015-07-01 20:15:25 UTC
Let me know if I missed something:

commit dc713a5336936c3eb57f5d45abc3023cc6e9de96
Author: Stefan Sauer <ensonic@users.sf.net>
Date:   Wed Jul 1 22:13:42 2015 +0200

    help: improve docs about editing the master xml document
    
    Fixes #751783
Comment 6 Philip Withnall 2015-07-02 23:00:19 UTC
(In reply to Stefan Sauer (gstreamer, gtkdoc dev) from comment #4)
> Just to make sure we don't side track too much

Thanks! I copied my comments about Mallard to bug #646094.