Skip to content

Commit

Permalink
Add Read the Dics config
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Dec 30, 2023
1 parent c5e32bb commit ce28d66
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
post_checkout:
- git fetch --unshallow
post_install:
- python setup.py build

sphinx:
configuration: doc/src/conf.py

python:
install:
- requirements: .rtd-require
4 changes: 4 additions & 0 deletions .rtd-require
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git-props
pytest >=3.7.0
setuptools
sphinx_rtd_theme
8 changes: 8 additions & 0 deletions doc/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

from pathlib import Path
import sys

maindir = Path(__file__).resolve().parent.parent.parent
buildlib = maindir / "build" / "lib"
sys.path[0] = str(buildlib)
sys.dont_write_bytecode = True

import pytest_dependency

# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit ce28d66

Please sign in to comment.