-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Discussed in #11176
Originally posted by equetzal October 9, 2024
So, I've been working on setting doxygen on a large project, and I have encountered an interesting situation where I'm not sure how to solve. This project has lot of directories, where each directory contains projects, libraries, components, etc. Each directory does have a README.md file that briefly describes the content of the directory. This means that my project has more than 50 readme files.
Usually, doxygen process all the README.md files as a "page", so it creates an entry in the related pages using the title of the H1 header. So, for Doxygen to process this markdown file as a directory description I've been adding \dir to the markdown file; something like this:
\dir
# Some Title
Some description of this directory.This properly archives the result of making the content of the readme file to be included in the directory description. However, it keeps the 'page' in the related pages with the title README and its content being blank. This result in over 50 blank pages called "README", which I cannot \subpage because there's no anchor/reference to it.
Other solution that I tried was to use the USE_MDFILE_AS_MAINPAGE set to README.md, this kind of 'merge' all the contents of the readme files into a single page, and because of the \dir directive, the result is not having the "README" pages in the related pages, while keeping the directory description. But the problem with this is that the actual mainpage gets discarded as multiple \mainpage directives are found, and my index.html is basically blank, which is also not ideal for the use that we have for the landing page.
Is there a way to achieve the result of processing all the README files as directory-level descriptions, while keeping a specific markdown file for the index?