From bcdcd3fdd0167be1423bfd4e7fad9885db5d862a Mon Sep 17 00:00:00 2001 From: Christian Kanesan Date: Tue, 28 May 2024 13:20:13 +0200 Subject: [PATCH] test --- .github/workflows/documentation.yaml | 2 +- docs/conf.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 78d1dd1..2fb013b 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -3,7 +3,7 @@ name: docs on: push: branches: - - main + - fix-doc-mock-eccodes jobs: build: diff --git a/docs/conf.py b/docs/conf.py index b484162..7032b52 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,12 +19,8 @@ import os import sys -import unittest.mock - -sys.modules["eccodes"] = unittest.mock.Mock() - # First-party -import meteodatalab # noqa: E402 +import meteodatalab sys.path.insert(0, os.path.abspath("..")) @@ -201,3 +197,5 @@ # If true, do not generate a @detailmenu in the "Top" node's menu. # texinfo_no_detailmenu = False + +autodoc_mock_imports = ["eccodes"]