[pyAgrum] calling new sphinx configuration from <act doc pyAgrum>

parent 5ceac4cd
......@@ -40,6 +40,7 @@ def callSphinx(current):
notif("Sphinxing pyAgrum")
safe_cd(current, "wrappers")
safe_cd(current, "pyAgrum")
safe_cd(current, "doc")
safe_cd(current, "sphinx")
commande = 'make html'
if not current['dry_run']:
......
......@@ -5,8 +5,8 @@
SPHINXOPTS = -c . -a -E -w sphinx_warnings.txt
SPHINXBUILD = python3 `which sphinx-build`
PAPER =
BUILDDIR = ..
AGRUMBUILDDIR = $(BUILDIR)
BUILDDIR = ../../../build/release/wrappers/pyAgrum/docs
AGRUMBUILDDIR = "{agrum}/build/release/wrappers/pyAgrum/docs"
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
......
......@@ -38,6 +38,8 @@ import sys
import matplotlib
matplotlib.use('agg') # work around for tkinter.file_dialog not found
sys.path.insert(0, os.path.abspath('../../../../build/release/wrappers/'))
extensions = [
'sphinx.ext.autodoc',
#'sphinx.ext.todo',
......@@ -516,7 +518,7 @@ def process_signature(app, what, name, obj, options, signature, return_annotatio
def skip(app, what, name, obj, skip, options):
exclusions = ('__weakref__', '__ne__', '__eq__','__str__','__init__', # special-members
'__doc__', '__module__', '__dict__', # undoc-members
'__swig_destroy__', '_s', # swig members
'__swig_destroy__', '_s', # swig members
'clone', # special gum members
)
exclude = name in exclusions
......
......@@ -36,7 +36,7 @@ def processeNotebook(notebook_filename):
except CellExecutionError as e:
res=""
print("Error")
errs = 1
err = 1
print("-" * 60)
traceback.print_exc(file=sys.stdout)
print("-" * 60)
......@@ -53,10 +53,11 @@ for filename in glob.glob("../notebooks/*.ipynb"):
startTime = time.time()
#for notebook_filename in sorted(list):
# errs+=processeNotebook(notebook_filename)
executor = concurrent.futures.ProcessPoolExecutor(10)
executor = concurrent.futures.ProcessPoolExecutor(None)
futures = [executor.submit(processeNotebook, notebook_filename) for notebook_filename in sorted(list)]
concurrent.futures.wait(futures)
errs=sum([f.result() for f in futures])
elapsedTime = time.time() - startTime
print()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment