Skip to content

Commit

Permalink
Add a fancy termshow example to the docsite. Demo the progress bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbielawa committed Jun 16, 2015
1 parent 0650fd2 commit 1ea3162
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinxcontrib-showterm
2 changes: 1 addition & 1 deletion docsite/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# 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.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.mathjax']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.mathjax', 'sphinxcontrib.showterm']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
2 changes: 1 addition & 1 deletion docsite/source/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sys.path.insert(0, os.path.abspath('../../bitmath'))

# 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.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.mathjax']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.mathjax', 'sphinxcontrib.showterm']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
7 changes: 7 additions & 0 deletions docsite/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,3 +374,10 @@ If ran as a script the results would be similar to this:
$ python ./smalldl.py
Bitmath Progress Bar Demo: ||||||||||||||||||||||||||||||||||||||||| 1.58 MiB/s
Click the **slow**, or **fast** links below to start the screen
capture.

.. showterm:: aeea3ae1b8af7f0be2fc4
:speed: stop

0 comments on commit 1ea3162

Please sign in to comment.