|
47 | 47 | if (-not (Get-Command doxygen -ErrorAction SilentlyContinue)) {
|
48 | 48 | choco install doxygen.portable -y
|
49 | 49 | }
|
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 |
51 | 76 |
|
52 | 77 | # Step 7: Upload documentation as an artifact
|
53 | 78 | - name: Upload documentation
|
|
0 commit comments