Skip to content

Commit

Permalink
Update docs/shpinx config
Browse files Browse the repository at this point in the history
[#OSF-6554]
  • Loading branch information
TomBaxter authored and felliott committed Aug 17, 2016
1 parent f653bb6 commit 141fe5a
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 180 deletions.
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
11 changes: 4 additions & 7 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 @@ -21,13 +18,12 @@ Guide
-----

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

license
install
quickstart
examples
api_reference
code

Project info
------------
Expand All @@ -38,3 +34,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:
12 changes: 12 additions & 0 deletions docs/providers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Providers
=========

mfr.providers.http
------------------

.. autoclass:: mfr.providers.http.HttpProvider

mfr.providers.osf
-----------------

.. autoclass:: mfr.providers.osf.OsfProvider
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This example is equivalent to above.
RenderResult objects contain the resultant html as content. Any javascript or css assets are contained in a dictionary. To display assets with jinja, simply iterate through the lists.

.. code-block:: html
.. code-block:: none
{% for stylesheet in render_result.assets.css %}
<link rel="stylesheet" href={{ stylesheet }}/>
Expand Down
19 changes: 19 additions & 0 deletions docs/server.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Server
======

mfr.server.app
--------------

.. automodule:: mfr.server.app

mfr.server.handlers
-------------------

.. automodule:: mfr.server.handlers.core

.. automodule:: mfr.server.handlers.export

.. automodule:: mfr.server.handlers.render

.. automodule:: mfr.server.handlers.status

0 comments on commit 141fe5a

Please sign in to comment.