summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevent Kaya <levent.kaya@codefirst.io>2024-11-27 02:00:43 +0300
committerLevent Kaya <levent.kaya@codefirst.io>2024-11-27 02:00:43 +0300
commit176dcb62b2964bb1bf1377add6b3c54ca4dbf468 (patch)
tree897a77f08aa28f7216b46ac7bbf2ce08c436bc69
parent0da6fd4b2a992a36c111d822341dd7d90f3fd2f0 (diff)
[ci] gh-pages use m.css
-rw-r--r--.github/workflows/doxygen.yml25
1 files changed, 17 insertions, 8 deletions
diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml
index b1273c9..3428a9b 100644
--- a/.github/workflows/doxygen.yml
+++ b/.github/workflows/doxygen.yml
@@ -1,4 +1,4 @@
-name: Generate and Deploy Doxygen Documentation
+name: Generate and Deploy Doxygen Documentation with m.css
on:
push:
@@ -14,13 +14,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- # Step 2: Install Doxygen and dependencies
- - name: Install Doxygen and Python
+ # Step 2: Install Doxygen, Python, and required dependencies
+ - name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz python3 python3-pip
pip3 install --upgrade pip
- pip3 install mkdocs
+ pip3 install git+https://github.com/mosra/m.css.git
# Step 3: Download m.css theme
- name: Download m.css
@@ -44,14 +44,23 @@ jobs:
echo "GENERATE_MAN = NO" >> Doxyfile
echo "GENERATE_RTF = NO" >> Doxyfile
echo "QUIET = YES" >> Doxyfile
- echo "HTML_EXTRA_STYLESHEET = docs/m.css/css/m-dark.css" >> Doxyfile
- echo "HTML_EXTRA_FILES = docs/m.css" >> Doxyfile
+ echo "EXTENSION_MAPPING = md=markdown" >> Doxyfile
+ echo "MARKDOWN_SUPPORT = YES" >> Doxyfile
- # Step 5: Run Doxygen
+ # Step 5: Run Doxygen to generate raw HTML files
- name: Run Doxygen
run: doxygen Doxyfile
- # Step 6: Deploy to GitHub Pages
+ # Step 6: Process HTML with m.css
+ - name: Apply m.css
+ run: |
+ python3 docs/m.css/documentation/doxygen.py \
+ --input docs/html \
+ --output docs/html \
+ --site-root . \
+ --deploy
+
+ # Step 7: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with: