Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build_sphinx_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Loading