diff --git a/.gitignore b/.gitignore
index 0372b60c8006d19087abcea5ffdb9767a640c36f..6ae5baeccbd1e7549f12007114414a2ae50f15c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,4 +24,6 @@ Firmware.sublime-workspace
 Images/*.bin
 Images/*.px4
 mavlink/include/mavlink/v0.9/
-NuttX
\ No newline at end of file
+/NuttX
+/Documentation/doxy.log
+/Documentation/html/
\ No newline at end of file
diff --git a/Documentation/Doxyfile b/Documentation/Doxyfile
index fd997baaa0369431933eb3e6e81d663871475fc7..f45fe8b2118f5d369022e7ed23e4096132ac6d9b 100644
--- a/Documentation/Doxyfile
+++ b/Documentation/Doxyfile
@@ -599,9 +599,7 @@ RECURSIVE              = YES
 # excluded from the INPUT source files. This way you can easily exclude a
 # subdirectory from a directory tree whose root is specified with the INPUT tag.
 
-EXCLUDE                = ../dist/ \
-						 ../docs/html/ \
-						 html
+EXCLUDE                = ../src/mathlib/CMSIS
 
 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or
 # directories that are symbolic links (a Unix filesystem feature) are excluded