diff --git a/.readthedocs.yml b/.readthedocs.yml index b4c2da9..c78dbf7 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,6 +2,11 @@ version: 2 python: version: 3.6 + install: + - method: pip + path: . + extra_requirements: + - docs build: image: latest diff --git a/docs/source/conf.py b/docs/source/conf.py index 78715f6..5b36714 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -30,6 +30,7 @@ from recommonmark.parser import CommonMarkParser # ones. extensions = [ 'sphinx.ext.autodoc', + 'sphinx_autodoc_typehints' 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', @@ -255,21 +256,21 @@ htmlhelp_basename = 'PyMISPdoc' # -- Options for LaTeX output --------------------------------------------- latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples diff --git a/setup.py b/setup.py index 2ceebea..a546fb2 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,8 @@ setup( extras_require={'fileobjects': ['lief>=0.8', 'python-magic'], 'neo': ['py2neo'], 'openioc': ['beautifulsoup4'], - 'virustotal': ['validators']}, + 'virustotal': ['validators'], + 'docs': ['sphinx-autodoc-typehints']}, tests_require=[ 'jsonschema', 'python-magic',