File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments