summaryrefslogtreecommitdiffstats
path: root/src/dirdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-06-12 19:46:30 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-06-12 19:46:30 (GMT)
commit38987846ec0752b8deee7bab69c7890aa861af00 (patch)
treeff42b9e7e5dca29b1b278dd6a4ac81161d8091af /src/dirdef.cpp
parent88ff6e5931896a0798997a226e846e75a99f8802 (diff)
downloadDoxygen-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/dirdef.cpp')
-rw-r--r--src/dirdef.cpp6
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))
{