-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation tooling #41
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,11 @@ Credits | |
Development Lead | ||
---------------- | ||
|
||
* Justin Kiggens <[email protected]> | ||
* Justin Kiggins <[email protected]> | ||
|
||
Contributors | ||
------------ | ||
|
||
* Nicholas Cain <[email protected]> | ||
* Michael Oliver <[email protected]> | ||
* Sahar Manavi <[email protected]> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.. _api_ref: | ||
|
||
.. currentmodule:: neuroglia | ||
|
||
API reference | ||
============= | ||
|
||
.. _spike_api: | ||
|
||
Spike transformers | ||
------------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
spike.Binner | ||
spike.Smoother | ||
nwb.SpikeTablizer | ||
|
||
.. _trace_api: | ||
|
||
Trace transformers | ||
------------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
trace.Binarizer | ||
trace.EdgeDetector | ||
trace.WhenTrueFinder | ||
calcium.OASISInferer | ||
calcium.MedianFilterDetrend | ||
calcium.SavGolFilterDetrend | ||
calcium.EventRescale | ||
|
||
|
||
.. _event_api: | ||
|
||
Event transformers | ||
------------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
event.PeriEventSpikeSampler | ||
event.PeriEventTraceSampler | ||
|
||
.. _tensor_api: | ||
|
||
Tensor transformers | ||
------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
tensor.ResponseReducer |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
sys.path.insert(0, project_root) | ||
|
||
import neuroglia | ||
import sphinx_bootstrap_theme | ||
|
||
# -- General configuration --------------------------------------------- | ||
|
||
|
@@ -40,7 +41,14 @@ | |
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | ||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] | ||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.viewcode', | ||
'sphinx.ext.autosummary', | ||
# 'numpydoc', | ||
'sphinx.ext.napoleon', | ||
'sphinx_gallery.gen_gallery', | ||
] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
@@ -56,7 +64,7 @@ | |
|
||
# General information about the project. | ||
project = u'neuroglia' | ||
copyright = u"2017, Nicholas Cain" | ||
copyright = u"2017, Allen Institute for Brain Science" | ||
|
||
# The version info for the project you're documenting, acts as replacement | ||
# for |version| and |release|, also used in various other places throughout | ||
|
@@ -106,17 +114,50 @@ | |
# documents. | ||
#keep_warnings = False | ||
|
||
sphinx_gallery_conf = { | ||
# path to your examples scripts | ||
'examples_dirs': '../examples', | ||
# path where to save gallery generated examples | ||
'gallery_dirs': 'gallery', | ||
# #directory where function granular galleries are stored | ||
'backreferences_dir': 'generated', | ||
# | ||
# # Modules for which function level galleries are created. In | ||
# # this case sphinx_gallery and numpy in a tuple of strings. | ||
# 'doc_module': ('neuroglia',), | ||
'download_section_examples': False, | ||
'default_thumb_file': '/local1/astrocytes-jsnyder.jpg', | ||
'min_reported_time': 10, | ||
} | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
html_theme = 'default' | ||
# html_theme = 'alabaster' | ||
html_theme = 'bootstrap' | ||
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() | ||
|
||
# Theme options are theme-specific and customize the look and feel of a | ||
# theme further. For a list of options available for each theme, see the | ||
# documentation. | ||
#html_theme_options = {} | ||
# html_theme_options = {} | ||
|
||
html_theme_options = { | ||
'source_link_position': "footer", | ||
'bootswatch_theme': "yeti", # https://bootswatch.com/ | ||
'navbar_sidebarrel': False, | ||
'bootstrap_version': "3", | ||
'navbar_links': [ | ||
("Introduction", "introduction"), | ||
("Examples",'examples'), | ||
("API", "api"), | ||
], | ||
|
||
} | ||
|
||
|
||
|
||
# Add any paths that contain custom themes here, relative to this directory. | ||
#html_theme_path = [] | ||
|
@@ -153,7 +194,17 @@ | |
#html_use_smartypants = True | ||
|
||
# Custom sidebar templates, maps document names to template names. | ||
#html_sidebars = {} | ||
# html_sidebars = {} | ||
# html_sidebars = { | ||
# '**': [ | ||
# 'about.html', | ||
# 'navigation.html', | ||
# '' | ||
# # 'relations.html', | ||
# 'searchbox.html', | ||
# # 'donate.html', | ||
# ] | ||
# } | ||
|
||
# Additional templates that should be rendered to pages, maps page names | ||
# to template names. | ||
|
@@ -190,6 +241,20 @@ | |
# Output file base name for HTML help builder. | ||
htmlhelp_basename = 'neurogliadoc' | ||
|
||
autosummary_generate = True | ||
|
||
# # autosummary strategy borrowed from pandas | ||
# with open("index.rst") as f: | ||
# index_rst_lines = f.readlines() | ||
# autosummary_generate = False | ||
# import re | ||
# if any([re.match("\s*api\s*", l) for l in index_rst_lines]): | ||
# autosummary_generate = True | ||
|
||
# this is needed for some reason... | ||
# see https://github.com/numpy/numpydoc/issues/69 | ||
# numpydoc_class_members_toctree = False | ||
# class_members_toctree = False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete all of this commented out code? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
# -- Options for LaTeX output ------------------------------------------ | ||
|
||
|
@@ -210,7 +275,7 @@ | |
latex_documents = [ | ||
('index', 'neuroglia.tex', | ||
u'neuroglia Documentation', | ||
u'Nicholas Cain', 'manual'), | ||
u'Justin Kiggins', 'manual'), | ||
] | ||
|
||
# The name of an image file (relative to this directory) to place at | ||
|
@@ -241,7 +306,7 @@ | |
man_pages = [ | ||
('index', 'neuroglia', | ||
u'neuroglia Documentation', | ||
[u'Nicholas Cain'], 1) | ||
[u'Justin Kiggins'], 1) | ||
] | ||
|
||
# If true, show URL addresses after external links. | ||
|
@@ -256,7 +321,7 @@ | |
texinfo_documents = [ | ||
('index', 'neuroglia', | ||
u'neuroglia Documentation', | ||
u'Nicholas Cain', | ||
u'Justin Kiggins', | ||
'neuroglia', | ||
'One line description of project.', | ||
'Miscellaneous'), | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.. _examples: | ||
|
||
.. include:: gallery/index.rst |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a typo to me; repeated html_sidebars twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done