diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index b86ead99f..ab3fa95ba 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -26,13 +26,15 @@ jobs: pip3 install sphinx pip3 install sphinx-rtd-theme git checkout --orphan gh-pages - rm -rf * + shopt -s extglob + rm -rf !("pyproject.toml") # we need this file for correct version extraction git fetch git reset - git clean -fdx + git clean -fdx -n --exclude="!pyproject.toml" git checkout ${{ github.sha }} -- batchflow docs cd docs make html + rm ../pyproject.toml - name: Push docs if: github.event_name == 'pull_request' diff --git a/batchflow/__init__.py b/batchflow/__init__.py index d26271946..0ff522317 100644 --- a/batchflow/__init__.py +++ b/batchflow/__init__.py @@ -19,7 +19,7 @@ from .notifier import Notifier, notifier from .named_expr import NamedExpression, B, L, C, F, V, M, D, R, W, P, PP, I, eval_expr from .dsindex import DatasetIndex, FilesIndex -from .decorators import action, any_action_failed, mjit, deprecated, apply_parallel +from .decorators import action, any_action_failed, mjit, deprecated, apply_parallel, parallel, inbatch_parallel from .exceptions import SkipBatchException, EmptyBatchSequence, StopPipeline from .run_notebook import run_notebook from .sampler import Sampler, ConstantSampler, NumpySampler, HistoSampler, ScipySampler diff --git a/docs/conf.py b/docs/conf.py index ec757cb54..b42efa573 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -91,11 +91,11 @@ def setup(app): intersphinx_mapping = { 'python': ('https://docs.python.org/3', None), - 'numpy': ('http://docs.scipy.org/doc/numpy/', None), - 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), - 'pandas': ('http://pandas-docs.github.io/pandas-docs-travis/', None), + 'numpy': ('https://numpy.org/doc/stable/', None), + 'scipy': ('https://docs.scipy.org/doc/scipy/', None), + 'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None), } -autodoc_mock_imports = ['torch'] +autodoc_mock_imports = ['torch', 'torchvision'] viewcode_follow_imported_members = True # Output file base name for HTML help builder.