From 57a7fe8520e5d2e952d104fa780a70a41548156f Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Thu, 8 Oct 2026 17:46:56 +0800 Subject: [PATCH] Add the Doxyfile for the Day 21 repository Adopted from the base: it reads src/, writes build/doxygen and fails on any warning. Only the project brief (day 21) differs. Task: MIL-001#5 Closes #5 --- Doxyfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Doxyfile diff --git a/Doxyfile b/Doxyfile new file mode 100644 index 0000000..88925a3 --- /dev/null +++ b/Doxyfile @@ -0,0 +1,37 @@ +# Doxygen configuration for the snake game (Python sources in src/). +# +# Build: doxygen Doxyfile +# Output: build/doxygen/index.html +# +# Only the settings that differ from the Doxygen defaults are listed. A warning +# (for example an undocumented public item) fails the build. + +DOXYFILE_ENCODING = UTF-8 +PROJECT_NAME = "Snake Game" +PROJECT_BRIEF = "Snake game from Udemy's 100 Days of Code (day 21)" +OUTPUT_DIRECTORY = build +HTML_OUTPUT = doxygen + +# Python sources are documented with Doxygen commands in docstrings and in +# "##" comments. +OPTIMIZE_OUTPUT_JAVA = YES +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO + +INPUT = src +FILE_PATTERNS = *.py +RECURSIVE = YES +SOURCE_BROWSER = YES + +GENERATE_HTML = YES +GENERATE_LATEX = NO +HAVE_DOT = NO + +QUIET = YES +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_IF_INCOMPLETE_DOC = YES +# NO: with YES, Doxygen also asks for an @return on every "-> None" function. +WARN_NO_PARAMDOC = NO +WARN_AS_ERROR = FAIL_ON_WARNINGS