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 744755 - doxygen ignores main header in mainpage when using markdown
doxygen ignores main header in mainpage when using markdown
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: documentation
1.8.9
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2015-02-18 19:44 UTC by Acki
Modified: 2018-07-30 09:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example for behaviour described in comment. (3.13 KB, application/x-compressed-tar)
2015-05-20 11:15 UTC, Artur R. Czechowski
Details

Description Acki 2015-02-18 19:44:12 UTC
The first header in the mainpage will not be displayed when output is HTML.
Instead it will be display the default title: "$project_name Documentation"

The feature is described here: www.stack.nl/~dimitri/doxygen/manual/markdown.html#md_page_header

Doesn't work with the 1.8.9 version of doxygen

Also labeling of subheaders will make them disappear within the mainpage.
Comment 1 Acki 2015-02-18 19:47:27 UTC
I forgot to say the mainpage is an *.md file, so I set the option:

USE_MDFILE_AS_MAINPAGE =main_page.md

The header is in format like in the docu:
My Main Page  {#mainpage}
============
Comment 2 Artur R. Czechowski 2015-05-20 11:15:46 UTC
Created attachment 303653 [details]
Example for behaviour described in comment.

Generally, behaviour of USE_MDFILE_AS_MAINPAGE is hard to determine. One would assume, that in example given in attachment, on the mainpage I would see the string "This is main md file". Unfortunately, there is nothing.

However, when you run following command to add md files in subdirectories:

for p in foo bar baz; do echo "this is readme.md in $p" > $p/readme.md; done

and rerun the doxygen, the "this is readme.md in foo" appears on the main page. Also the warning appears during processing:

/tmp/md/bar/readme.md:1: warning: found more than one \mainpage comment block! Skipping this block.

It get worse when you are starting to use the @addtogroup in the file.

So, generally, however USE_MDFILE_AS_MAINPAGE is a neat idea and I would like to use it in my project, it's hardly usable at all.

What I ask for is to make it simple: value of this parameter is just a path to the file to incorporate into main page. That's all.
Comment 3 André Klapper 2018-07-30 09:59:29 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!