Skip to content

Commit 2239641

Browse files
committed
dot added
1 parent 731065d commit 2239641

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/windows-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,23 @@ jobs:
4040
if ("${{ matrix.configuration }}" -eq "Debug") { cmake --build --preset ninja-multi-debug }
4141
if ("${{ matrix.configuration }}" -eq "Release") { cmake --build --preset ninja-multi-release }
4242
43-
# Step 6: Generate Doxygen documentation
43+
# Step 6: Generate Doxygen documentation
4444
- name: Generate Doxygen documentation
4545
run: |
4646
# Install Doxygen if not available
4747
if (-not (Get-Command doxygen -ErrorAction SilentlyContinue)) {
4848
choco install doxygen.portable -y
4949
}
5050
51+
# Install Graphviz (dot tool) for diagrams
52+
choco install graphviz -y
53+
5154
# Create docs directory if it doesn't exist
5255
New-Item -ItemType Directory -Force -Path docs
5356
5457
# Update Doxyfile for Windows environment
5558
$doxyfile = Get-Content Doxyfile -Raw
56-
$doxyfile = $doxyfile -replace '/cpp_tutorials/src', 'src'
57-
$doxyfile = $doxyfile -replace '/cpp_tutorials/docs', 'docs'
59+
$doxyfile = $doxyfile -replace 'INPUT\s*=\s*/cpp_tutorials/src', 'INPUT = src'
5860
$doxyfile = $doxyfile -replace 'OUTPUT_DIRECTORY\s*=\s*\.', 'OUTPUT_DIRECTORY = docs'
5961
$doxyfile = $doxyfile -replace 'OUTPUT_TEXT_DIRECTION\s*=\s*None', '# OUTPUT_TEXT_DIRECTION = None'
6062
$doxyfile = $doxyfile -replace 'HTML_TIMESTAMP\s*=\s*NO', '# HTML_TIMESTAMP = NO'
@@ -67,7 +69,8 @@ jobs:
6769
$doxyfile = $doxyfile -replace 'DOT_FONTNAME\s*=\s*Helvetica', '# DOT_FONTNAME = Helvetica'
6870
$doxyfile = $doxyfile -replace 'DOT_FONTSIZE\s*=\s*10', '# DOT_FONTSIZE = 10'
6971
$doxyfile = $doxyfile -replace 'DOT_TRANSPARENT\s*=\s*NO', '# DOT_TRANSPARENT = NO'
70-
$doxyfile = $doxyfile -replace 'HAVE_DOT\s*=\s*YES', 'HAVE_DOT = NO'
72+
$doxyfile = $doxyfile -replace 'HAVE_DOT\s*=\s*YES', 'HAVE_DOT = YES'
73+
$doxyfile = $doxyfile -replace 'DOT_PATH\s*=', 'DOT_PATH = C:\\ProgramData\\chocolatey\\bin'
7174
7275
# Write updated Doxyfile
7376
$doxyfile | Out-File -FilePath Doxyfile.windows -Encoding UTF8

0 commit comments

Comments
 (0)