Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ build
coverage.xml
dist
docs/*.rst
docs/examples
docs/backreferences
examples/data
htmlcov
.idea
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ help:
@echo " coverage to run coverage check of the documentation (if enabled)"

clean:
rm -rf $(BUILDDIR)/*
rm -rf $(BUILDDIR)/* backreferences examples

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx_gallery.gen_gallery',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -290,3 +291,9 @@
#texinfo_no_detailmenu = False

napoleon_include_special_with_doc = True

sphinx_gallery_conf = {
'backreferences_dir': 'backreferences',
'examples_dirs': '../examples',
'gallery_dirs': 'examples',
}
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Table of contents
.. toctree::

release_notes
examples/index
api
contributing

Expand Down
1 change: 1 addition & 0 deletions docs/newsfragments/268.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add examples to HTML documentation using Sphinx-Gallery.
3 changes: 3 additions & 0 deletions examples/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
========
Examples
========
2 changes: 2 additions & 0 deletions examples/eventseg/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Event segmentation examples
===========================
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Example of finding event segmentations on simulated data
"""
Example of finding event segmentations on simulated data
========================================================

This code generates simulated datasets that have temporally-clustered
structure (with the same series of latent event patterns). An event
Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
coverage
flake8
flake8-print
matplotlib
mypy
numdifftools
pillow
pytest
restructuredtext-lint
setuptools_scm
sphinx
sphinx-gallery
sphinx_rtd_theme
towncrier