From 558cd55b63892b217f7d2eb95f41c639f389f971 Mon Sep 17 00:00:00 2001 From: Erik Holum Date: Tue, 16 Jan 2024 16:29:06 -0500 Subject: [PATCH] Ignore MoveIt and MoveIt Core Packages from docs Imports (#859) --- .github/workflows/deploy.yml | 7 ++----- conf.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7e00c8dae..b0e30a0eeb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,8 +56,6 @@ jobs: image: ${{ matrix.container }} steps: - uses: actions/checkout@v4 - with: - ref: 'main' - name: Install Python dependencies run: | @@ -91,11 +89,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: 'main' - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' cache: 'pip' - name: Install Python dependencies @@ -108,7 +105,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 diff --git a/conf.py b/conf.py index 3d945b4e6d..2ca1a9ad12 100644 --- a/conf.py +++ b/conf.py @@ -254,6 +254,16 @@ 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", + ] autodoc_typehints = "signature"