Skip to content

Commit ce28d66

Browse files
committed
Add Read the Dics config
1 parent c5e32bb commit ce28d66

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.readthedocs.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.12"
10+
jobs:
11+
post_checkout:
12+
- git fetch --unshallow
13+
post_install:
14+
- python setup.py build
15+
16+
sphinx:
17+
configuration: doc/src/conf.py
18+
19+
python:
20+
install:
21+
- requirements: .rtd-require

.rtd-require

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
git-props
2+
pytest >=3.7.0
3+
setuptools
4+
sphinx_rtd_theme

doc/src/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
# full list see the documentation:
77
# http://www.sphinx-doc.org/en/master/config
88

9+
from pathlib import Path
10+
import sys
11+
12+
maindir = Path(__file__).resolve().parent.parent.parent
13+
buildlib = maindir / "build" / "lib"
14+
sys.path[0] = str(buildlib)
15+
sys.dont_write_bytecode = True
16+
917
import pytest_dependency
1018

1119
# -- Project information -----------------------------------------------------

0 commit comments

Comments
 (0)