From 83ffa6099c79fb3c15db2cd5f6b5e0ef2bec7b64 Mon Sep 17 00:00:00 2001 From: lvntky Date: Tue, 26 Nov 2024 12:00:56 +0300 Subject: [docs] updated actions --- .github/workflows/doxygen.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to '.github') 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 "Documentation generation failed" > docs/html/index.html - name: Setup GitHub Pages uses: actions/configure-pages@v3 -- cgit v1.2.3