summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLevent Kaya <levent.kaya@codefirst.io>2024-11-28 01:12:33 +0300
committerLevent Kaya <levent.kaya@codefirst.io>2024-11-28 01:12:33 +0300
commit6049625ef4b5fe2b67d3c8c5f7aab9e8e0e2528f (patch)
tree9a864ce64c80f53ebf6ce9248bfe3f32e74a4def /.github/workflows
parent324d87cf794d230cc9e4e4533b364c6e79131a2f (diff)
[ci] fix
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docs.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 41a7cea..d36a8a8 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -33,16 +33,22 @@ jobs:
# 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/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
+ # Ensure output directory exists
+ mkdir -p ./docs/public/docs/html
+
# Set homepage to README.md
echo "USE_MDFILE_AS_MAINPAGE = README.md" >> Doxyfile
- # Configure Doxygen Awesome theme with dark mode
+ # Configure Doxygen Awesome theme
echo "HTML_EXTRA_STYLESHEET = doxygen-awesome/doxygen-awesome.css doxygen-awesome/doxygen-awesome-dark-mode.css" >> Doxyfile
- echo "HTML_COLORSTYLE = DARK" >> Doxyfile
+
+ # Remove unsupported HTML_COLORSTYLE tag
+ # Instead, enable dark mode via CSS
+ echo "HTML_HEADER = doxygen-awesome/doxygen-awesome-darkmode-toggle.js" >> Doxyfile
- name: Generate Documentation
run: doxygen Doxyfile
@@ -52,5 +58,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
- publish_dir: ./public/docs/html
+ publish_dir: ./docs/public/docs/html
force_orphan: true \ No newline at end of file