Skip to content

Commit 70e8f3e

Browse files
committed
fix(docs): add echo statements for DOC_BUILD_VERSION during documentation build
1 parent 0f83125 commit 70e8f3e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.readthedocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,27 @@ build:
1515
- |
1616
if [ "$PROJECT_VERSION" = "brainpy-version2" ]; then
1717
echo "PROJECT_VERSION is: $PROJECT_VERSION"
18+
echo "DOC_BUILD_VERSION is: $DOC_BUILD_VERSION"
1819
echo "Building brainpy-version2 documentation"
1920
mkdir -p docs_build
2021
cp -r docs_version2/* docs_build/
2122
else
23+
echo "DOC_BUILD_VERSION is: $DOC_BUILD_VERSION"
2224
echo "PROJECT_VERSION is: $PROJECT_VERSION"
2325
echo "Building standard brainpy documentation"
2426
mkdir -p docs_build
2527
cp -r docs/* docs_build/
28+
29+
if [ "$DOC_BUILD_VERSION" = "v2" ]; then
30+
echo "DOC_BUILD_VERSION is: $DOC_BUILD_VERSION"
31+
echo "Building brainpy-version2 documentation"
32+
mkdir -p docs_build
33+
cp -r docs_version2/* docs_build/
34+
else
35+
echo "DOC_BUILD_VERSION is: $DOC_BUILD_VERSION"
36+
echo "Building standard brainpy documentation"
37+
mkdir -p docs_build
38+
cp -r docs/* docs_build/
2639
fi
2740
2841
# Build documentation using the copied conf.py

0 commit comments

Comments
 (0)