Skip to content

Commit

Permalink
Merge pull request #10 from WilliamOtieno/develop
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
WilliamOtieno authored Dec 31, 2023
2 parents 6ab554d + ae2dcfa commit f59bfd0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: source/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
12 changes: 11 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,22 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

extensions = [
'sphinx.ext.autodoc', # Automatically document members
'sphinx.ext.napoleon', # Support for Google-style docstrings
]


templates_path = ['_templates']
exclude_patterns = []

from pathlib import Path
import os
import sys

BASE_DIR = Path(__file__).resolve().parent.parent
sys.path.insert(0, os.path.abspath(BASE_DIR))

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down

0 comments on commit f59bfd0

Please sign in to comment.