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 634116 - custom layout does not always honor visibility attribute in the index
custom layout does not always honor visibility attribute in the index
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
1.7.2-SVN
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2010-11-05 20:02 UTC by Daniel Franke
Modified: 2018-07-30 10:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Franke 2010-11-05 20:02:49 UTC
In an attempt to work around PR611413 [Ambiguous header: Modules (i.e. Classes) vs. Modules (i.e. Groups)], I had a look at the LAYOUT_FILE.

As I understand it, this should provide the means to relabel some headings, in particular the modules/namespaces ones.

I generated a layout file with `doxygen -l` and modified it to:

  <tab type="modules" visible="yes" title="Groups"/>

After rebuilding the documentation, 
 (a) the main page has the "Groups" label in the TOC
 (b) the INDEX has the "Groups" label
 (c) when clicking the link to modules.html, the caption is "Modules", not "Groups"
 (d) likewise in the QHC output, the tree item has the caption "Modules"

Same holds for namespaces and possibly for other sections.
Comment 1 Jake Colman 2010-12-20 14:07:27 UTC
The TreeView panel has the same issue in that it displays "Modules" instead of "Groups".
Comment 2 Dimitri van Heesch 2010-12-20 21:06:42 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 3 Daniel Franke 2010-12-25 18:05:26 UTC
(In reply to comment #2)
> Confirmed. Should be fixed in the next subversion update.

Not fully.
I do get the proper heading now, so that's already an improvement. However, the modules page now reads:
-- 8< --
Groups

Here is a list of all modules:
[...]
-- 8< --
Here, "Groups" is the changed title. Is it possible to omit the intro? Or have it parametrized?



Second, the visibility of at least these elements is not taken into account:
  <navindex>
    <tab type="namespaces" visible="yes" title="">
      <tab type="namespaces" visible="yes" title="MODULEs"/>
      <tab type="namespacemembers" visible="no" title=""/>
    </tab>
    <tab type="classes" visible="yes" title="">
      <tab type="classes" visible="yes" title="Derived TYPEs"/>
      <tab type="classindex" visible="no" title=""/>                 
      <tab type="classmembers" visible="no" title=""/>
    </tab>

Even with visible="no", they are still listed and if the title is changed, the modified title is shown (tested with QCH output only).
Comment 4 Dimitri van Heesch 2011-01-03 19:01:33 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.3. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.
Comment 5 Daniel Franke 2011-01-09 00:42:14 UTC
Reopen. In r753, comment #3 still applies.
Comment 6 Dimitri van Heesch 2011-01-09 08:43:33 UTC
In 1.7.3 I've added the "intro" attribute to the relevant tab tags. This can be used to customize the introduction texts.

Can you check if this solves your problem?
Comment 7 Daniel Franke 2011-01-09 12:20:28 UTC
(In reply to comment #6)
> In 1.7.3 I've added the "intro" attribute to the relevant tab tags. This can be
> used to customize the introduction texts.
> 
> Can you check if this solves your problem?

Regenerated the layout file, got the intro-tags. Assuming that they expect yes|no parameters, I set them accordingly, but can't observe any difference. For this:

    <tab type="namespaces" visible="yes" title="">
      <tab type="namespaces" visible="yes" title="xxxModules" intro="yes"/>
      <tab type="namespacemembers" visible="no" title="xxxModuleMembersxxx" intro="no"/>
    </tab>

I still see both entries in the menu on the left, named "xxxModules" and "xxxModuleMembersxxx" respectively. However, the latter should not be there.
Comment 8 Dimitri van Heesch 2011-01-09 12:32:28 UTC
Hi Daniel,

The "intro" attribute can be used to specify the text used as an introduction on the page, i.e. the "Here is a list of all modules" line. 
Empty means the default text, so it is NOT a yes/no parameter, but an alternative text.

I overlooked the second part of your observation; that visibility="no" does not work, which is indeed still a problem.
Comment 9 Daniel Franke 2011-01-09 17:11:10 UTC
(In reply to comment #8)
> The "intro" attribute can be used to specify the text used as an introduction
> on the page, i.e. the "Here is a list of all modules" line. 
> Empty means the default text, so it is NOT a yes/no parameter, but an
> alternative text.

Ah, yes, that makes sense. I wondered. Yes, that works - thanks! :)
Comment 10 André Klapper 2018-07-30 10:53:24 UTC
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to 

   https://github.com/doxygen/doxygen/issues

All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github.

Hence I am closing this GNOME Bugzilla ticket.
Please use the corresponding ticket in Github instead. Thanks a lot!