summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLevent Kaya <levent.kaya@codefirst.io>2024-11-28 01:09:59 +0300
committerLevent Kaya <levent.kaya@codefirst.io>2024-11-28 01:09:59 +0300
commit324d87cf794d230cc9e4e4533b364c6e79131a2f (patch)
tree2264e02e6880be06fbfdf9ecd12e0dd5cfad3430 /.github
parent7dfce776c8677cec06efc2d91e9391402f6bd88c (diff)
[ci] fix
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docs.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 5e85f11..41a7cea 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -26,23 +26,23 @@ jobs:
run: |
git clone https://github.com/jothepro/doxygen-awesome-css.git doxygen-awesome
- - name: Create Doxyfile
+ - name: Create and Configure Doxyfile
run: |
doxygen -g Doxyfile
- # Customize Doxyfile settings
- sed -i 's/PROJECT_NAME = "My Project"/PROJECT_NAME = "fbgl"/g' Doxyfile
- sed -i 's/PROJECT_NUMBER =/PROJECT_NUMBER = 0.1.0/g' Doxyfile
- sed -i 's/OUTPUT_DIRECTORY =/OUTPUT_DIRECTORY = docs/g' Doxyfile
- sed -i 's/INPUT =/INPUT = fbgl.h README.md/g' Doxyfile
- sed -i 's/HTML_OUTPUT = html/HTML_OUTPUT = ./public/docs/html/g' Doxyfile
+ # Customize Doxyfile settings with proper sed escaping
+ sed -i 's/PROJECT_NAME *=.*$/PROJECT_NAME = "fbgl"/g' Doxyfile
+ sed -i 's/PROJECT_NUMBER *=.*$/PROJECT_NUMBER = 0.1.0/g' Doxyfile
+ sed -i 's/OUTPUT_DIRECTORY *=.*$/OUTPUT_DIRECTORY = docs/g' Doxyfile
+ sed -i 's/INPUT *=.*$/INPUT = fbgl.h README.md/g' Doxyfile
+ sed -i 's/HTML_OUTPUT *=.*$/HTML_OUTPUT = .\/public\/docs\/html/g' Doxyfile
# Set homepage to README.md
- echo "USE_MDFILE_AS_MAINPAGE = README.md" >> Doxyfile
+ echo "USE_MDFILE_AS_MAINPAGE = README.md" >> Doxyfile
- # Configure Doxygen Awesome theme
- echo "HTML_EXTRA_STYLESHEET = doxygen-awesome/doxygen-awesome.css" >> Doxyfile
- echo "HTML_COLORSTYLE = LIGHT" >> Doxyfile
+ # Configure Doxygen Awesome theme with dark mode
+ echo "HTML_EXTRA_STYLESHEET = doxygen-awesome/doxygen-awesome.css doxygen-awesome/doxygen-awesome-dark-mode.css" >> Doxyfile
+ echo "HTML_COLORSTYLE = DARK" >> Doxyfile
- name: Generate Documentation
run: doxygen Doxyfile