File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2826done
You can’t perform that action at this time.
0 commit comments