Skip to content

Commit

Permalink
Merge branch 'release/0.15.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
felliott committed Aug 25, 2016
2 parents 2e01df8 + b1151f3 commit e95bbb7
Show file tree
Hide file tree
Showing 40 changed files with 986 additions and 235 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
ChangeLog
*********

0.15.0 (2016-08-25)
===================
- Feature: add analytics to MFR requests. MFR now keeps track of requests, handlers, renderers,
and exporters, with more to come!
- Fix: Better error handling for a number of edge cases. (thanks, @TomBaxter!)
- Docs: many fixes to doc build, layout, and formatting. (thanks, @TomBaxter!)
- Docs: add overview of MFR architecture to docs

0.14.0 (2016-06-24)
===================
- Feature: The Dockerfile now sets up unoconv for you.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ After installing python3.5, create the virtual environment with the following co
```bash
pip install virtualenv
pip install virtualenvwrapper
mkvirtualenv --python=`which python3` mfr
mkvirtualenv --python=`which python3.5` mfr
pip install invoke==0.11.1
invoke install --develop
invoke server
Expand Down
128 changes: 0 additions & 128 deletions docs/api_reference.rst

This file was deleted.

6 changes: 5 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.. include:: ../HISTORY.rst
Change Log
==========

.. include:: ../CHANGELOG
:literal:
10 changes: 10 additions & 0 deletions docs/code.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Code
====

.. toctree::
:maxdepth: 2

core
extensions
providers
server
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

# -- General configuration -----------------------------------------------------

autodoc_default_flags = ['members', 'undoc-members', 'show-inheritance']

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

Expand Down Expand Up @@ -123,7 +125,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down
22 changes: 22 additions & 0 deletions docs/core.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Core
====

mfr.core.exceptions
-------------------

.. automodule:: mfr.core.exceptions

mfr.core.extension
------------------

.. automodule:: mfr.core.extension

mfr.core.provider
-----------------

.. automodule:: mfr.core.provider

mfr.core.utils
-----------------

.. automodule:: mfr.core.utils
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ app.py
view_file.html

.. code-block:: html
.. code-block:: none
{% for stylesheet in render_result.assets.css %}
<link rel="stylesheet" href={{ stylesheet }}/>
Expand All @@ -65,4 +65,4 @@ view_file.html
<script type="text/javascript" src={{ javascript }}/>
{% endfor %}
{{ render_result.content|safe }}
{{ render_result.content|safe }}
58 changes: 58 additions & 0 deletions docs/extensions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Extensions
==========

AudioRenderer
-------------

.. autoclass:: mfr.extensions.audio.AudioRenderer

CodePygmentsRenderer
--------------------

.. autoclass:: mfr.extensions.codepygments.CodePygmentsRenderer

DocxRenderer
------------

.. autoclass:: mfr.extensions.docx.DocxRenderer

ImageExporter
-------------

.. autoclass:: mfr.extensions.image.ImageExporter

ImageRenderer
-------------

.. autoclass:: mfr.extensions.image.ImageRenderer

IpynbRenderer
-------------

.. autoclass:: mfr.extensions.ipynb.IpynbRenderer

PdbRenderer
-----------
**Note**: This module requires jquery on the page in which it is loaded.

.. autoclass:: mfr.extensions.pdb.PdbRenderer

PdfRenderer
-----------

.. autoclass:: mfr.extensions.pdf.PdfRenderer

RstRenderer
-----------

.. autoclass:: mfr.extensions.rst.RstRenderer

TabularRenderer
---------------

.. autoclass:: mfr.extensions.tabular.TabularRenderer

VideoRenderer
-------------

.. autoclass:: mfr.extensions.video.VideoRenderer
15 changes: 7 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.. mfr documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. title:: Modular File Renderer

mfr: HTML file renderer for Python
==================================
Expand All @@ -14,20 +11,21 @@ Release v\ |version|. (:ref:`Installation <install>`)
Ready to dive in?
-----------------

Go on to the :ref:`Quickstart tutorial <quickstart>` or check out some :ref:`examples <examples>`.
Go to the :ref:`Quickstart tutorial <quickstart>`, check out some :ref:`examples <examples>` for code, or see the :ref:`Overview <overview>` to understand its architecture.



Guide
-----

.. toctree::
:maxdepth: 1
:maxdepth: 2

license
install
quickstart
examples
api_reference
overview
code

Project info
------------
Expand All @@ -38,3 +36,4 @@ Project info
contributing
authors
changelog
license
35 changes: 31 additions & 4 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,41 @@ Or download one of the following:
* tarball_
* zipball_

To install the base requirements, run:
Make sure that you have installed R, are using python3.5, and have installed invoke for your current python3 version.

$ pip install -r requirements.txt
Install the version of invoke found in the requirements.txt file. Currently 0.11.1

Once you have the source and requirements, you can install it into your site-packages with ::
Install ``invoke``:

$ python setup.py install
.. code-block:: bash
pip install invoke==0.11.1
Install requirements:

.. code-block:: bash
invoke install
Or for some nicities (like tests):

.. code-block:: bash
invoke install --develop
Start the server:

.. note
The server is extremely tenacious thanks to stevedore and tornado
Syntax errors in the :mod:`mfr.providers` will not crash the server
In debug mode the server will automatically reload
.. code-block:: bash
invoke server
.. _Github: https://github.com/CenterForOpenScience/modular-file-renderer
.. _tarball: https://github.com/CenterForOpenScience/modular-file-renderer/tarball/master
.. _zipball: https://github.com/CenterForOpenScience/modular-file-renderer/zipball/master

6 changes: 5 additions & 1 deletion docs/license.rst
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.. include:: ../LICENSE.rst
Licence
=======

.. include:: ../LICENSE
:literal:

0 comments on commit e95bbb7

Please sign in to comment.