Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use the README.md file as main page in Doxygen

The documentation of Doxygen states, that I can use PHP Markdown Extra title labelling in a markdown file, but neither

# Main Page # {#mainpage} 

nor

# Main Page # {#index} 

works, but the label is not present in the output as plain text either. This is the very first line BTW.

Also I cannot reference to that page neither with the above labels, neither with the name of the file.

I also have a main.dox file that contains a \mainpage special command, but I also tried all the above with removing one slash before them (to make it only two).

I'm using Doxygen 1.8.2 (downloaded) and 1.8.1.1 (from MacPorts) for the task.

How can I achieve this then?

Also, how can I mark a markdown file as part of a specific language?

EDIT: i have enabled markdown support, and the file appears in the referenced pages.

like image 1000
Adam L. S. Avatar asked Nov 13 '12 20:11

Adam L. S.


People also ask

How do I add a main page in Doxygen?

To add content to the mainpage, use the doxygen special command \mainpage. To enhance the documentation you produce, there are a variety of doxygen special commands placed inside doxygen comments. For example, in the class description, note the doxygen special command \author.

Does doxygen support Markdown?

Including Markdown files as pagesDoxygen can process files with Markdown formatting.

What is readme Md used for?

README.md files are intended to provide orientation for engineers browsing your code, especially first-time users. The README.md is likely the first file a reader encounters when they browse a directory that contains your code. In this way, it acts as a landing page for the directory.

What does MD stand for README?

The default readme file contains the repository name and some basic instructions. The file format is 'md', which stands for Markdown documentation. It is a lightweight markup language that can be easily converted to text.


1 Answers

In the next release of doxygen (1.8.3) I plan to introduce a new configuration option USE_MDFILE_AS_MAINPAGE which can be used to specify a markdown page that is to be used as the main page. Then you can configure doxygen as follows:

INPUT                  = README.md other_sources USE_MDFILE_AS_MAINPAGE = README.md 

and it will work regardless of page's headings.

like image 62
doxygen Avatar answered Nov 23 '22 10:11

doxygen