Skip to content

Commit 9fa7a6e

Browse files
committed
fix(docs): update version check in documentation build script to include stable versions
1 parent 38afc2a commit 9fa7a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build:
1717
echo "Building documentation for version: $CURRENT_VERSION"
1818
1919
# Check if this is a v2 version (branch/tag starts with v2 or contains version2)
20-
if [[ "$CURRENT_VERSION" == v2* ]] || [[ "$CURRENT_VERSION" == *version2* ]]; then
20+
if [[ "$CURRENT_VERSION" == stable* ]] || [[ "$CURRENT_VERSION" == v2* ]] || [[ "$CURRENT_VERSION" == *version2* ]]; then
2121
echo "Building brainpy-version2 documentation"
2222
mkdir -p docs_build
2323
cp -r docs_version2/* docs_build/

0 commit comments

Comments
 (0)