diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f953262f58..502831e788 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -93,7 +93,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' cache: 'pip' - name: Install Python dependencies @@ -106,7 +106,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7' + ruby-version: '3' # TODO (peterdavidfagan): don't hardcode branches for downloads - name: Download Rolling Artifacts @@ -139,9 +139,9 @@ jobs: # TODO(henningkayser): fix hack for using python api artifact in multiversion - name: Build multiversion run: | - cp build/html/main/doc/api/python_api/api.html . # backup artifact html + cp -r build/html/main/doc/api/python_api/ . # backup artifact html make multiversion - cp -f api.html build/html/main/doc/api/python_api/ # restore artifact html + cp -rf python_api/ build/html/main/doc/api/ # restore artifact html - name: Upload pages artifact uses: actions/upload-pages-artifact@v2 diff --git a/conf.py b/conf.py index 60c53ea848..5e64be6e38 100644 --- a/conf.py +++ b/conf.py @@ -251,6 +251,17 @@ doxylink = {"cpp_api": ("build/html/api/MoveIt.tag", "api/html")} add_function_parentheses = True +# Needed to support previous versions that did not include python bindings +try: + import moveit +except Exception as e: + autodoc_mock_imports = [ + "moveit", + "moveit.core", + "moveit.planning", + "moveit.servo_client", + ] + class RedirectFrom(Directive):