Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/KarrLab/wc_rules
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsekar committed Nov 14, 2017
2 parents 69c801c + 1693023 commit 1e084d7
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
working_directory: /root/project
docker:
- image: karrlab/build:0.0.7
- image: karrlab/build:0.0.10
steps:
- checkout

Expand Down
9 changes: 9 additions & 0 deletions docs/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ About
----------------------
License
----------------------

The software is released under the MIT license

.. literalinclude:: ../LICENSE
Expand All @@ -12,9 +13,17 @@ The software is released under the MIT license
----------------------
Development team
----------------------

This package was developed by the `Karr Lab <http://www.karrlab.org/>`_ at the Icahn School of Medicine at Mount Sinai in New York, USA.

----------------------
Acknowledgements
----------------------

This work was supported by a National Science Foundation INSPIRE award [grant number 1649014].

----------------------
Questions and comments
----------------------

Please contact the `Karr Lab <http://www.karrlab.org/>`_ with any questions or comments.
38 changes: 37 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosectionlabel',
'sphinx.ext.coverage',
'sphinx.ext.imgconverter',
'sphinx.ext.linkcode',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinx.ext.todo',
'sphinxcontrib.bibtex',
'sphinxcontrib.googleanalytics',
'sphinxcontrib.spelling',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -121,6 +127,36 @@
todo_include_todos = False


# -- section/figure/table numbering options -------------------------------
numfig = True
numfig_format = {
'figure': 'Figure %s',
'table': 'Table %s',
'code-block': 'Listing %s',
'section': 'Section %s',
}


# -- image converter options ----------------------------------------------
image_converter_args = [
'-density', '150',
'-quality', '00',
]


# -- linkcode options -----------------------------------------------------
def linkcode_resolve(domain, info):
if domain != 'py':
return None
if not info['module']:
return None
rel_filename = info['module'].replace('.', '/')
if os.path.isfile(os.path.join(os.path.dirname(__file__), '..', rel_filename + '.py')):
return "https://github.com/KarrLab/wc_rules/blob/master/{}.py".format(rel_filename)
else:
return "https://github.com/KarrLab/wc_rules/blob/master/{}/__init__.py".format(rel_filename)


# -- napoleon options -----------------------------------------------------
napoleon_google_docstring = True
napoleon_numpy_docstring = False
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Contents

.. toctree::
:maxdepth: 3
:numbered:

installation.rst
API documentation <source/modules.rst>
about.rst
references.rst
Empty file added docs/references.bib
Empty file.
6 changes: 6 additions & 0 deletions docs/references.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
References
==========

.. bibliography:: references.bib
:encoding: latex+latin
:style: unsrt
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ configparser
networkx
git+https://github.com/KarrLab/obj_model.git#egg=obj_model
robpol86-sphinxcontrib-googleanalytics
Sphinx
six
Sphinx >= 1.6
sphinx_rtd_theme
sphinxcontrib-bibtex
sphinxcontrib-spelling

0 comments on commit 1e084d7

Please sign in to comment.