Install the package for the readthedocs build (#1853)
Some checks failed
CI / Perform Lint Checks (3.15) (push) Has been cancelled
CodeQL Checks / Analyze (python) (push) Has been cancelled
CI / Python 3.11 on macos-latest (push) Has been cancelled
CI / Python 3.12 on macos-latest (push) Has been cancelled
CI / Python 3.13 on macos-latest (push) Has been cancelled
CI / Python 3.14 on macos-latest (push) Has been cancelled
CI / Python 3.15 on macos-latest (push) Has been cancelled
CI / Python 3.11 on ubuntu-latest (push) Has been cancelled
CI / Python 3.12 on ubuntu-latest (push) Has been cancelled
CI / Python 3.13 on ubuntu-latest (push) Has been cancelled
CI / Python 3.14 on ubuntu-latest (push) Has been cancelled
CI / Python 3.15 on ubuntu-latest (push) Has been cancelled
CI / Python 3.11 on windows-latest (push) Has been cancelled
CI / Python 3.12 on windows-latest (push) Has been cancelled
CI / Python 3.13 on windows-latest (push) Has been cancelled
CI / Python 3.14 on windows-latest (push) Has been cancelled
CI / Python 3.15 on windows-latest (push) Has been cancelled
Stale / stale (push) Has been cancelled

This commit is contained in:
Zedas
2026-11-23 22:01:41 +01:00
committed by GitHub
parent 347ce1ba9b
commit fd81d62a1a
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ formats: all
sphinx: sphinx:
configuration: docs/source/conf.py configuration: docs/source/conf.py
fail_on_warning: true
build: build:
@@ -13,6 +14,6 @@ build:
jobs: jobs:
install: install:
- pip install --upgrade pip - pip install --upgrade pip
- pip install --group 'docs' - pip install . --group 'docs'
pre_build: pre_build:
- python -m sphinx -b linkcheck docs/source/ $READTHEDOCS_OUTPUT/linkcheck - python -m sphinx -b linkcheck docs/source/ $READTHEDOCS_OUTPUT/linkcheck

View File

@@ -12,6 +12,7 @@
# #
import os import os
import sys import sys
from importlib.metadata import version as package_version
sys.path.insert(0, os.path.abspath("..")) # Will find modules in the docs parent sys.path.insert(0, os.path.abspath("..")) # Will find modules in the docs parent
@@ -21,6 +22,8 @@ sys.path.insert(0, os.path.abspath("..")) # Will find modules in the docs paren
project = "python-kasa" project = "python-kasa"
copyright = "2020, python-kasa developers" copyright = "2020, python-kasa developers"
author = "python-kasa developers" author = "python-kasa developers"
release = package_version("python-kasa")
version = release
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------