File tree Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 11version : 2
22formats : []
33
4- build :
5- image : latest
6-
74sphinx :
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
Original file line number Diff line number Diff line change 1818sys .path .insert (0 , os .path .abspath ('../../src/' ))
1919sys .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 -----------------------------------------------------
3123project = 'Discord Advertisement Framework'
@@ -38,7 +30,6 @@ def create_reference():
3830 version = gh_release
3931elif readthedocs_release is not None :
4032 version = readthedocs_release
41- create_reference () # RTD does not run the makefile so hack is required
4233else :
4334 version = "v0.0.1"
4435
You can’t perform that action at this time.
0 commit comments