mirror of https://github.com/nucypher/nucypher.git
commit
3365e12b29
|
@ -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):
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix rtd build after #2477 and #2489
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue