diff --git a/.github/workflows/build_sphinx_documentation.yml b/.github/workflows/build_sphinx_documentation.yml index fae060720..a6efc27dd 100644 --- a/.github/workflows/build_sphinx_documentation.yml +++ b/.github/workflows/build_sphinx_documentation.yml @@ -61,6 +61,22 @@ jobs: mkdir build/ sphinx-build -b html -a -E source/ build/ + - name: Fix JS file + continue-on-error: true + run: | + # Define the file path + FILE="docs/sphinx/build/_static/js/theme.js" + + # Check if the file exists + if [[ -f "$FILE" ]]; then + # Use sed to perform the replacement in-place + sed -i 's/\.wy-menu-vertical ul/\.wy-menu-vertical li > ul/g' "$FILE" + echo "Replacement done in $FILE" + else + echo "File not found: $FILE" + exit 1 + fi + - name: Zip Documentation run: | # Create a zip file of the documentation diff --git a/.readthedocs.yml b/.readthedocs.yml index 99190ab33..c7c88acd8 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,8 +13,8 @@ build: os: "ubuntu-22.04" commands: - mkdir --parents $READTHEDOCS_OUTPUT/html/ - - wget https://github.com/sofa-framework/SofaPython3/releases/download/v24.12.00-doc-generation/SofaPython3_v24.12.00_docs.zip + - wget https://github.com/sofa-framework/SofaPython3/releases/download/v25.06.00-doc-generation/SofaPython3_v25.06.00_docs.zip - mkdir docUnzipped/ - - unzip SofaPython3_v24.12.00_docs.zip -d docUnzipped/ - - cp --recursive docUnzipped/SofaPython3_v24.12.00_docs/* $READTHEDOCS_OUTPUT/html/ + - unzip SofaPython3_v25.06.00_docs.zip -d docUnzipped/ + - cp --recursive docUnzipped/SofaPython3_v25.06.00_docs/* $READTHEDOCS_OUTPUT/html/ - ls $READTHEDOCS_OUTPUT/html/