Skip to content

Commit 5288333

Browse files
committed
fix
1 parent ab77e16 commit 5288333

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.readthedocs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ build:
1313
post_checkout:
1414
# Copy the appropriate conf.py based on git branch/tag
1515
- |
16-
CURRENT_VERSION="${READTHEDOCS_VERSION_NAME}"
1716
echo "Building documentation for version: $CURRENT_VERSION"
1817
1918
# Check if this is a v2 version (latest, stable, or tags starting with v2)
20-
if [[ "$CURRENT_VERSION" == "latest" ]] || [[ "$CURRENT_VERSION" == stable* ]] || [[ "$CURRENT_VERSION" == v2* ]] || [[ "$CURRENT_VERSION" == *version2* ]]; then
19+
if [[ "$CURRENT_VERSION" == "v2" ]]; then
2120
echo "Building brainpy-version2 documentation"
2221
mkdir -p docs_build
2322
cp -r docs_version2/* docs_build/

0 commit comments

Comments
 (0)