Skip to content

Commit af786d0

Browse files
authored
Merge pull request #7 from engine3d-dev/update_webpage
css script update
2 parents 2153570 + d091fa3 commit af786d0

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

apply_css.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ find "$HTML_DIR" -name "*.html" -type f | while read html_file; do
1414
# Check if the CSS link is already present
1515
if ! grep -q "$CSS_FILE" "$html_file"; then
1616
# Insert the custom CSS link after doxygen.css
17-
if [[ "$OSTYPE" == "darwin"* ]]; then
17+
# if [[ "$OSTYPE" == "darwin"* ]]; then
1818
# macOS
19-
sed -i '' '/doxygen.css/a\
20-
<link href="doxygen-custom.css" rel="stylesheet" type="text/css" />
21-
' "$html_file"
22-
else
23-
# Linux
24-
sed -i '/doxygen.css/a <link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
25-
fi
19+
sed -i '' '/doxygen.css/a\<link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
20+
# else
21+
# # Linux
22+
# sed -i '/doxygen.css/a <link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
23+
# fi
2624
echo "Injected CSS into: $html_file"
2725
fi
2826
done

0 commit comments

Comments
 (0)