GNOME Bugzilla – Bug 749577
Allow multiple namespaces
Last modified: 2018-05-22 13:10:05 UTC
The --name-space argument to gtkdoc-mkdb should allow specifying multiple namespaces, for libraries that have them in the same shared object. For instance: Cally is a sub-API inside the Clutter shared library. A simple solution would be to accept multiple `--name-space` arguments and make the $NAME_SPACE variable an array; then, iterate over every element of the array when doing matching.
Can't you build two separate documentation books - one for each library?
No, the whole idea is to have all the documentation in one place, to minimize cross-linking.
I had a quick look at the code, it would need a bit more work on the index. Should the be one unified index or one index per namespace? The whole file-naming scheme as used now does not support different indexes. If it is a unified index, it could be confusing, since we drop the namespace (so that gtk_window_new is under 'w' and not'g').
Ping?
I haven't really thought about the multiple index, and indeed it's a problem. One symbol index per namespace would probably be enough, but I'm afraid of the explosion of per-version indices. Maybe this whole idea is a bit meh and I should split off the Cally API reference back again…
-- 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/32.