Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions apply_css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ find "$HTML_DIR" -name "*.html" -type f | while read html_file; do
# Check if the CSS link is already present
if ! grep -q "$CSS_FILE" "$html_file"; then
# Insert the custom CSS link after doxygen.css
if [[ "$OSTYPE" == "darwin"* ]]; then
# if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
sed -i '' '/doxygen.css/a\
<link href="doxygen-custom.css" rel="stylesheet" type="text/css" />
' "$html_file"
else
# Linux
sed -i '/doxygen.css/a <link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
fi
sed -i '' '/doxygen.css/a\<link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
# else
# # Linux
# sed -i '/doxygen.css/a <link href="doxygen-custom.css" rel="stylesheet" type="text/css" />' "$html_file"
# fi
echo "Injected CSS into: $html_file"
fi
done
Expand Down