summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlvntky <klevent1903@gmail.com>2024-11-26 12:00:56 +0300
committerlvntky <klevent1903@gmail.com>2024-11-26 12:00:56 +0300
commit83ffa6099c79fb3c15db2cd5f6b5e0ef2bec7b64 (patch)
tree5ae2af55a0e879dd3c08cf60499f15ab5ea00b0a
parent06064d75eb74c621df0f0ce0e6ced8ed352e2112 (diff)
[docs] updated actions
-rw-r--r--.github/workflows/doxygen.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml
index 7cddae9..c1c156f 100644
--- a/.github/workflows/doxygen.yml
+++ b/.github/workflows/doxygen.yml
@@ -29,7 +29,7 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update
- sudo apt-get install -y doxygen graphviz
+ sudo apt-get install -y doxygen graphviz ghostscript
- name: Install Python dependencies
run: |
@@ -40,6 +40,14 @@ jobs:
run: |
git clone https://github.com/mosra/m.css.git
+ - name: Prepare m.css stylesheets
+ run: |
+ # Compile m.css stylesheets
+ cd m.css/css
+ python3 -m pip install rcssmin
+ python3 ../documentation/css.py
+ cd ../..
+
- name: Generate Doxyfile
run: |
doxygen -g Doxyfile
@@ -61,7 +69,7 @@ jobs:
sed -i 's/DOT_IMAGE_FORMAT = png/DOT_IMAGE_FORMAT = svg/' Doxyfile
# m.css and additional configurations
- echo "HTML_EXTRA_STYLESHEET = m.css/css/m-dark.compiled.css m.css/css/m-documentation.compiled.css" >> Doxyfile
+ echo "HTML_EXTRA_STYLESHEET = $GITHUB_WORKSPACE/m.css/css/m-dark.compiled.css $GITHUB_WORKSPACE/m.css/css/m-documentation.compiled.css" >> Doxyfile
echo "GENERATE_LATEX = NO" >> Doxyfile
echo "INTERACTIVE_SVG = YES" >> Doxyfile
echo "EXTRACT_ALL = YES" >> Doxyfile
@@ -78,6 +86,13 @@ jobs:
- name: Process Documentation with m.css
run: |
python m.css/documentation/doxygen.py Doxyfile
+ continue-on-error: true # Allow workflow to continue if m.css processing fails
+
+ - name: Ensure Documentation Exists
+ run: |
+ # Fallback if m.css processing fails
+ [ -d "docs/html" ] || mkdir -p docs/html
+ [ -f "docs/html/index.html" ] || echo "<html><body>Documentation generation failed</body></html>" > docs/html/index.html
- name: Setup GitHub Pages
uses: actions/configure-pages@v3