Skip to content

Commit

Permalink
Merge pull request #251 from davidhozic/develop
Browse files Browse the repository at this point in the history
Readthedocs build fix
  • Loading branch information
davidhozic authored Dec 31, 2022
2 parents 3578813 + ade5e1b commit 7b372ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
19 changes: 8 additions & 11 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
version: 2
formats: []

build:
image: latest

sphinx:
configuration: docs/source/conf.py
fail_on_warning: false

python:
version: "3.8"
install:
- method: pip
path: .
extra_requirements:
- all
- docs
build:
os: ubuntu-22.04
tools:
python: "3.8"
jobs:
pre_build:
- pip install .[all] .[docs]
- python3 ./docs/scripts/generate_autodoc.py
9 changes: 0 additions & 9 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
sys.path.insert(0, os.path.abspath('../../src/'))
sys.path.insert(0, os.path.abspath('.'))

def create_reference():
"""
Creates .rst files for class/function descriptions.
"""
file_dir = os.path.dirname(__file__)
file_dir = file_dir.rstrip(os.path.basename(file_dir))
file_dir = os.path.join(file_dir, "scripts/generate_autodoc.py")
subprocess.run(f"{sys.executable} {file_dir}", shell=False)

# -- Project information -----------------------------------------------------
project = 'Discord Advertisement Framework'
Expand All @@ -38,7 +30,6 @@ def create_reference():
version = gh_release
elif readthedocs_release is not None:
version = readthedocs_release
create_reference() # RTD does not run the makefile so hack is required
else:
version = "v0.0.1"

Expand Down

0 comments on commit 7b372ce

Please sign in to comment.