Skip to content

Commit 7b372ce

Browse files
authored
Merge pull request #251 from davidhozic/develop
Readthedocs build fix
2 parents 3578813 + ade5e1b commit 7b372ce

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.readthedocs.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
version: 2
22
formats: []
33

4-
build:
5-
image: latest
6-
74
sphinx:
85
configuration: docs/source/conf.py
96
fail_on_warning: false
107

11-
python:
12-
version: "3.8"
13-
install:
14-
- method: pip
15-
path: .
16-
extra_requirements:
17-
- all
18-
- docs
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.8"
12+
jobs:
13+
pre_build:
14+
- pip install .[all] .[docs]
15+
- python3 ./docs/scripts/generate_autodoc.py

docs/source/conf.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818
sys.path.insert(0, os.path.abspath('../../src/'))
1919
sys.path.insert(0, os.path.abspath('.'))
2020

21-
def create_reference():
22-
"""
23-
Creates .rst files for class/function descriptions.
24-
"""
25-
file_dir = os.path.dirname(__file__)
26-
file_dir = file_dir.rstrip(os.path.basename(file_dir))
27-
file_dir = os.path.join(file_dir, "scripts/generate_autodoc.py")
28-
subprocess.run(f"{sys.executable} {file_dir}", shell=False)
2921

3022
# -- Project information -----------------------------------------------------
3123
project = 'Discord Advertisement Framework'
@@ -38,7 +30,6 @@ def create_reference():
3830
version = gh_release
3931
elif readthedocs_release is not None:
4032
version = readthedocs_release
41-
create_reference() # RTD does not run the makefile so hack is required
4233
else:
4334
version = "v0.0.1"
4435

0 commit comments

Comments
 (0)