Skip to content

Commit 77c27a0

Browse files
committed
Configure Read the Docs builds
1 parent 792b034 commit 77c27a0

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

‎.readthedocs.yaml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.12"
7+
8+
sphinx:
9+
configuration: docs/conf.py
10+
fail_on_warning: true
11+
12+
python:
13+
install:
14+
- method: pip
15+
path: .
16+
extra_requirements:
17+
- docs

‎docs/conf.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Sphinx configuration for pycodify."""
2-
import os
2+
33
import sys
4+
from importlib import import_module
45
from pathlib import Path
56

67
# Add source to path
@@ -10,8 +11,8 @@
1011
project = "pycodify"
1112
copyright = "2024, Tristan Simas"
1213
author = "Tristan Simas"
13-
version = "0.1"
14-
release = "0.1.3"
14+
release = import_module("pycodify").__version__
15+
version = ".".join(release.split(".")[:2])
1516

1617
# General configuration
1718
extensions = [

0 commit comments

Comments
 (0)