Skip to content

Commit 27da4e3

Browse files
committed
doxygen winows fixed
1 parent c7d1621 commit 27da4e3

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/windows-build.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,32 @@ jobs:
4747
if (-not (Get-Command doxygen -ErrorAction SilentlyContinue)) {
4848
choco install doxygen.portable -y
4949
}
50-
doxygen Doxyfile
50+
51+
# Create docs directory if it doesn't exist
52+
New-Item -ItemType Directory -Force -Path docs
53+
54+
# Update Doxyfile for Windows environment
55+
$doxyfile = Get-Content Doxyfile -Raw
56+
$doxyfile = $doxyfile -replace 'INPUT\s*=\s*/cpp_tutorials/src', 'INPUT = src'
57+
$doxyfile = $doxyfile -replace 'OUTPUT_DIRECTORY\s*=\s*\.', 'OUTPUT_DIRECTORY = docs'
58+
$doxyfile = $doxyfile -replace 'OUTPUT_TEXT_DIRECTION\s*=\s*None', '# OUTPUT_TEXT_DIRECTION = None'
59+
$doxyfile = $doxyfile -replace 'HTML_TIMESTAMP\s*=\s*NO', '# HTML_TIMESTAMP = NO'
60+
$doxyfile = $doxyfile -replace 'FORMULA_TRANSPARENT\s*=\s*YES', '# FORMULA_TRANSPARENT = YES'
61+
$doxyfile = $doxyfile -replace 'LATEX_SOURCE_CODE\s*=\s*NO', '# LATEX_SOURCE_CODE = NO'
62+
$doxyfile = $doxyfile -replace 'LATEX_TIMESTAMP\s*=\s*NO', '# LATEX_TIMESTAMP = NO'
63+
$doxyfile = $doxyfile -replace 'RTF_SOURCE_CODE\s*=\s*NO', '# RTF_SOURCE_CODE = NO'
64+
$doxyfile = $doxyfile -replace 'DOCBOOK_PROGRAMLISTING\s*=\s*NO', '# DOCBOOK_PROGRAMLISTING = NO'
65+
$doxyfile = $doxyfile -replace 'CLASS_DIAGRAMS\s*=\s*YES', '# CLASS_DIAGRAMS = YES'
66+
$doxyfile = $doxyfile -replace 'DOT_FONTNAME\s*=\s*Helvetica', '# DOT_FONTNAME = Helvetica'
67+
$doxyfile = $doxyfile -replace 'DOT_FONTSIZE\s*=\s*10', '# DOT_FONTSIZE = 10'
68+
$doxyfile = $doxyfile -replace 'DOT_TRANSPARENT\s*=\s*NO', '# DOT_TRANSPARENT = NO'
69+
$doxyfile = $doxyfile -replace 'HAVE_DOT\s*=\s*YES', 'HAVE_DOT = NO'
70+
71+
# Write updated Doxyfile
72+
$doxyfile | Out-File -FilePath Doxyfile.windows -Encoding UTF8
73+
74+
# Run Doxygen with updated config
75+
doxygen Doxyfile.windows
5176
5277
# Step 7: Upload documentation as an artifact
5378
- name: Upload documentation

0 commit comments

Comments
 (0)