Skip to content

Commit 0564092

Browse files
committed
Merge branch 'main' into dev
2 parents 635071e + 4649cbd commit 0564092

File tree

8 files changed

+27
-25
lines changed

8 files changed

+27
-25
lines changed

.github/workflows/multiversion-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
cd ./repo/docsrc
4545
make clean
46-
make docs-sequential
46+
make production-docs-sequential
4747
4848
- name: Checkout gh-pages-dev
4949
uses: actions/checkout@v3

.github/workflows/test-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
cd ./docsrc
3333
make clean
34-
make local
34+
make local-docs
3535
- name: Clean up
3636
run: |
3737
cd ./docsrc

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,17 @@ You can re-build the for your local state with:
171171

172172
```bash
173173
cd docsrc
174-
make clean && make local
174+
make clean && make local-docs
175175
# in case of issues, try `make clean-all`
176176
```
177177

178178
Note that files ignored by git (i.e., listed in `.gitignore`) are not included in the documentation.
179179

180-
We also provide a multi-version documentation. To generate it, run
180+
We also provide a multi-version documentation, which renders the branches `main` and `stable-legacy`. To generate it, run
181181

182182
```bash
183183
cd docsrc
184-
make clean && make docs
184+
make clean && make production-docs
185185
```
186186

187187
This will create and cache virtual environments for the build at `docsrc/.docs_venvs`.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ More tutorials are always welcome! Please consider making a pull request if you
6363

6464
## Install
6565

66-
BayesFlow is available to install via pip:
66+
BayesFlow v2 is not yet installable via PyPI, but you can use the following command to install the latest version of the `main` branch:
6767

6868
```bash
69-
pip install bayesflow
69+
pip install git+https://github.com/bayesflow-org/bayesflow.git
7070
```
7171

72+
If you encounter problems with this or require more control, please refer to the instructions to install from source below.
73+
74+
Note: `pip install bayesflow` will install the v1 version of BayesFlow.
75+
7276
### Backend
7377

7478
To use BayesFlow, you will also need to install one of the following machine learning backends.

docsrc/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
.PHONY: docs-sequential
2-
docs-sequential:
1+
.PHONY: production-docs-sequential
2+
production-docs-sequential:
33
@sphinx-polyversion --sequential poly.py
44
@echo 'Copying docs to ../docs'
55
@rm -rf ../docs/*
66
@cp -a _build_polyversion/. ../docs
77
@cp .nojekyll ../docs/.nojekyll
88
@rm -rf _build_polyversion
99

10-
.PHONY: docs
11-
docs:
10+
.PHONY: production-docs
11+
production-docs:
1212
@sphinx-polyversion poly.py
1313
@echo 'Copying docs to ../docs'
1414
@rm -rf ../docs/*
1515
@cp -a _build_polyversion/. ../docs
1616
@cp .nojekyll ../docs/.nojekyll
1717
@rm -rf _build_polyversion
1818

19-
.PHONY: local
20-
local:
19+
.PHONY: local-docs
20+
local-docs:
2121
@sphinx-polyversion --local poly.py
2222
@echo 'Copying docs to ../docs'
2323
@rm -rf ../docs/*

docsrc/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
To install the necessary dependencies, please run `pip install -e .[docs]` in the root directory.
66
You can then do the following (inside the `docsrc` directory):
77

8-
1. `make local`: Generate the docs for the current local state
9-
2. `make docs`: Build the docs for branches and tags specified in `poly.py` in sequential fashion. Virtual environments are cached (run `make clean-all` to delete)
10-
3. `make docs-sequential`: As `make docs`, but versions are built sequentially, and the build environment is deleted after each build (see below for details)
8+
1. `make local-docs`: Generate the docs for the current local state
9+
2. `make production-docs`: Build the docs for branches and tags specified in `poly.py` in a parallel fashion. Virtual environments are cached (run `make clean-all` to delete)
10+
3. `make production-docs-sequential`: As `make production-docs`, but versions are built sequentially, and the build environment is deleted after each build (see below for details)
1111
4. `make view-docs`: Starts a local webserver to display the content of `../docs`
1212

1313
The docs will be copied to `../docs`.
@@ -69,7 +69,7 @@ By setting the `--sequential` flag in the `sphinx-polyversion` call, a
6969
resource-constrained approach is chosen. Builds are sequential, and the
7070
virtual environment is deleted after the build. This overcomes the disk space
7171
limitations in the GitHub actions, at the cost of slightly higher built times.
72-
This is used in `make docs-sequential`.
72+
This is used in `make production-docs-sequential`.
7373

7474
### Internals
7575

docsrc/make.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ echo.Warning: This make.bat was not tested. If you encounter errors, please
88
echo.refer to Makefile and open an issue.
99

1010
if "%1" == "" goto help
11-
if "%1" == "docs" goto docs
12-
if "%1" == "docs-sequential" goto docssequential
13-
if "%1" == "local" goto local
11+
if "%1" == "production-docs" goto docs
12+
if "%1" == "production-docs-sequential" goto docssequential
13+
if "%1" == "local-docs" goto localdocs
1414
if "%1" == "clean" goto clean
1515
if "%1" == "clean-all" goto cleanall
1616
if "%1" == "view-docs" goto viewdocs
1717

1818
:help
19-
echo.Please specify a command (local, docs, docs-sequential, clean, clean-all)
19+
echo.Please specify a command (local-docs, production-docs, production-docs-sequential, clean, clean-all)
2020
goto end
2121

22-
:docssequential
22+
:localdocs
2323
sphinx-polyversion --local poly.py
2424
echo.Copying docs to ../docs
2525
del /q /s ..\docs\*

docsrc/source/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ More tutorials are always welcome! Please consider making a pull request if you
6464
6565
.. tab-item:: pip
6666
67-
.. code-block:: bash
68-
69-
pip install bayesflow
67+
The v2 version is not available on PyPI yet, please install from source.
7068
7169
.. tab-item:: source
7270

0 commit comments

Comments
 (0)