Skip to content

Commit

Permalink
docs: fix example app documentation rendering
Browse files Browse the repository at this point in the history
* fix example app rendering problems on readthedocs. (closes #107)
* fix couple of isort-errors

Signed-off-by: Harri Hirvonsalo <harri.hirvonsalo@cern.ch>
  • Loading branch information
hjhsalo authored and lnielsen committed Aug 6, 2017
1 parent f54f2d1 commit 1ae7ca5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -69,7 +69,7 @@

# General information about the project.
project = u'Invenio-PIDStore'
copyright = u'2015, CERN'
copyright = u'2017, CERN'
author = u'CERN'

# The version info for the project you're documenting, acts as replacement for
Expand Down
4 changes: 3 additions & 1 deletion docs/examplesapp.rst
Expand Up @@ -25,4 +25,6 @@
Example application
===================

.. automodule:: app
.. include:: ../examples/app.py
:start-after: SPHINX-START
:end-before: SPHINX-END
6 changes: 5 additions & 1 deletion examples/app.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015, 2016 CERN.
# Copyright (C) 2015, 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand All @@ -25,6 +25,8 @@

"""Minimal Flask application example for development.
SPHINX-START
Start the Redis server.
Install the requirements:
Expand Down Expand Up @@ -60,6 +62,8 @@
$ ./app-teardown.sh
SPHINX-END
"""

from __future__ import absolute_import, print_function
Expand Down
Expand Up @@ -27,7 +27,6 @@
import sqlalchemy_utils
from alembic import op


# revision identifiers, used by Alembic.
revision = '999c62899c20'
down_revision = 'f615cee99600'
Expand Down
Expand Up @@ -26,7 +26,6 @@
import sqlalchemy as sa
from alembic import op


# revision identifiers, used by Alembic.
revision = 'f615cee99600'
down_revision = None
Expand Down

0 comments on commit 1ae7ca5

Please sign in to comment.