Merge pull request #2492 from vzotova/fix-rtd-part2

Continued fix rtd build
pull/2498/head
K Prasch 2021-01-04 12:29:37 -08:00 committed by GitHub
commit 3365e12b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -265,8 +265,13 @@ def run_apidoc(_):
def run_solidity_apidoc(_):
source_dir = Path(__file__).parent.resolve()
script = source_dir.parent.parent / 'scripts' / 'solidity_doc' / 'generate_doc.py'
subprocess.call(['python', str(script)])
scripts_dir = source_dir.parent.parent / 'scripts'
install_script = scripts_dir / 'installation' / 'install_solc.py'
subprocess.call(['python', str(install_script)])
doc_script = scripts_dir / 'solidity_doc' / 'generate_doc.py'
subprocess.call(['python', str(doc_script)])
def setup(app):

View File

@ -0,0 +1 @@
Fix rtd build after #2477 and #2489

View File

@ -31,7 +31,8 @@ from pathlib import Path
def get_solc_config_path() -> Path:
nucypher = Path('nucypher').absolute()
# Note: This script is sensitive to the working directory.
nucypher = Path(__file__).parent.parent.parent.resolve() / 'nucypher'
config_path = nucypher / 'blockchain' / 'eth' / 'sol' / '__conf__.py'
return config_path