diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2017-06-12 19:46:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2017-06-12 19:46:30 (GMT) |
commit | 38987846ec0752b8deee7bab69c7890aa861af00 (patch) | |
tree | ff42b9e7e5dca29b1b278dd6a4ac81161d8091af /src | |
parent | 88ff6e5931896a0798997a226e846e75a99f8802 (diff) | |
download | Doxygen-38987846ec0752b8deee7bab69c7890aa861af00.zip Doxygen-38987846ec0752b8deee7bab69c7890aa861af00.tar.gz Doxygen-38987846ec0752b8deee7bab69c7890aa861af00.tar.bz2 |
Avoid generating unused dir_* output files for non HTML output formats
Diffstat (limited to 'src')
-rw-r--r-- | src/dirdef.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp index 0a63c1e..b247ba7 100644 --- a/src/dirdef.cpp +++ b/src/dirdef.cpp @@ -998,7 +998,13 @@ void generateDirDocs(OutputList &ol) DirSDict::Iterator sdi(*Doxygen::directories); for (sdi.toFirst();(dir=sdi.current());++sdi) { + ol.pushGeneratorState(); + if (!dir->hasDocumentation()) + { + ol.disableAllBut(OutputGenerator::Html); + } dir->writeDocumentation(ol); + ol.popGeneratorState(); } if (Config_getBool(DIRECTORY_GRAPH)) { |