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
8 changes: 4 additions & 4 deletions apply_css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ 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 '' '/general.css/a\
<link href="css_themes/general.css" rel="stylesheet" type="text/css" />
' "$html_file"
<link href="css_themes/general.css" rel="stylesheet" type="text/css" />
' "$html_file"
else
# Linux
sed -i "/doxygen.css/a\\
$CSS_LINK" "$html_file"
$CSS_LINK" "$html_file"
fi
echo "Injected CSS into: $html_file"
fi
Expand Down