Skip to content

Commit be45133

Browse files
authored
Bump doc version and automatize css fix in theme.js (#519)
1 parent 3c162b7 commit be45133

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/build_sphinx_documentation.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ jobs:
6161
mkdir build/
6262
sphinx-build -b html -a -E source/ build/
6363
64+
- name: Fix JS file
65+
continue-on-error: true
66+
run: |
67+
# Define the file path
68+
FILE="docs/sphinx/build/_static/js/theme.js"
69+
70+
# Check if the file exists
71+
if [[ -f "$FILE" ]]; then
72+
# Use sed to perform the replacement in-place
73+
sed -i 's/\.wy-menu-vertical ul/\.wy-menu-vertical li > ul/g' "$FILE"
74+
echo "Replacement done in $FILE"
75+
else
76+
echo "File not found: $FILE"
77+
exit 1
78+
fi
79+
6480
- name: Zip Documentation
6581
run: |
6682
# Create a zip file of the documentation

.readthedocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ build:
1313
os: "ubuntu-22.04"
1414
commands:
1515
- mkdir --parents $READTHEDOCS_OUTPUT/html/
16-
- wget https://github.com/sofa-framework/SofaPython3/releases/download/v24.12.00-doc-generation/SofaPython3_v24.12.00_docs.zip
16+
- wget https://github.com/sofa-framework/SofaPython3/releases/download/v25.06.00-doc-generation/SofaPython3_v25.06.00_docs.zip
1717
- mkdir docUnzipped/
18-
- unzip SofaPython3_v24.12.00_docs.zip -d docUnzipped/
19-
- cp --recursive docUnzipped/SofaPython3_v24.12.00_docs/* $READTHEDOCS_OUTPUT/html/
18+
- unzip SofaPython3_v25.06.00_docs.zip -d docUnzipped/
19+
- cp --recursive docUnzipped/SofaPython3_v25.06.00_docs/* $READTHEDOCS_OUTPUT/html/
2020
- ls $READTHEDOCS_OUTPUT/html/

0 commit comments

Comments
 (0)