Skip to content

Commit 3be755a

Browse files
committed
Readthedocs build fix
1 parent 353a0f3 commit 3be755a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/docs-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323

2424
- name: Set up poetry
2525
uses: Gr1N/setup-poetry@v9
26+
with:
27+
poetry-version: "2.1.1"
2628

2729
- name: Configure poetry
2830
run: poetry config virtualenvs.in-project true

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import sys
2+
from pathlib import Path
3+
4+
ROOT_DIR = Path(__file__).resolve().parents[1]
5+
sys.path.insert(0, str(ROOT_DIR))
6+
17
import openapi_schema_validator
28

39
project = "openapi-schema-validator"

0 commit comments

Comments
 (0)