Skip to content

Commit

Permalink
Merge pull request #168 from pytest-dev/fix-readthedocs
Browse files Browse the repository at this point in the history
Fix documentation on readthedocs.io
  • Loading branch information
youtux committed Jun 11, 2022
2 parents 0f0c7c1 + ff4fbfb commit 44959e3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3"

sphinx:
configuration: docs/conf.py
formats:
- epub
- pdf
- htmlzip

python:
install:
- method: pip
path: .
9 changes: 5 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

import os
import sys
from importlib import metadata

sys.path.insert(0, os.path.abspath(".."))

import pytest_factoryboy

# -- General configuration -----------------------------------------------------

Expand Down Expand Up @@ -53,9 +53,10 @@
# built documents.
#
# The short X.Y version.
version = pytest_factoryboy.__version__

version = metadata.version("pytest-factoryboy")
# The full version, including alpha/beta/rc tags.
release = pytest_factoryboy.__version__
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -96,7 +97,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "default"
html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down

0 comments on commit 44959e3

Please sign in to comment.