Skip to content

Commit

Permalink
Merge pull request #485 from karantan/docs/fix-code-block
Browse files Browse the repository at this point in the history
Fix code block in tutorial.rst
  • Loading branch information
leplatrem authored Apr 17, 2018
2 parents 8ec1a86 + cfb4a57 commit a2f746e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# flake8: noqa
# -*- coding: utf-8 -*-
import sys, os
import datetime
import os
import sys
import pkg_resources
try:
import mozilla_sphinx_theme
except ImportError:
print("please install the 'mozilla-sphinx-theme' distribution")
print('please install the \'mozilla-sphinx-theme\' distribution')

sys.path.insert(0, os.path.abspath("../..")) # include cornice from the source
sys.path.insert(0, os.path.abspath('../..')) # include cornice from the source
extensions = ['sphinx.ext.autodoc']

templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'Cornice'
copyright = u'2011-2016, Mozilla Services'
this_year = datetime.datetime.now().year
copyright = u'2011-{}, Mozilla Services'.format(this_year)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '2.3'
version = pkg_resources.get_distribution('cornice').version
# The full version, including alpha/beta/rc tags.
release = '2.3.0'
release = version

exclude_patterns = []

Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Remarks:
- **DELETE** also identifies the user then removes it.

These methods will use validators to fill the **request.validated**
mapping. Add the following code to :file:`messaging/views.py`::
mapping. Add the following code to :file:`messaging/views.py`:

.. code-block:: python
Expand Down

0 comments on commit a2f746e

Please sign in to comment.