Skip to content

Commit

Permalink
Merge pull request #13 from ikalnytskyi/issue/12
Browse files Browse the repository at this point in the history
Make the extensions compatible with Sphinx 1.6
  • Loading branch information
ikalnytskyi committed May 18, 2017
2 parents eba5398 + 779f46b commit 31f54bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Here you can see the list of changes between each 'sphinxcontrib-openapi'
release.


0.3.1 (2017-05-19)
==================

- Make 'sphinxcontrib-openapi' compatible with Sphinx 1.6.


0.3.0 (2017-01-29)
==================

Expand Down
8 changes: 2 additions & 6 deletions sphinxcontrib/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@
import jsonschema

from docutils import nodes
from docutils.parsers.rst import directives
from docutils.parsers.rst import Directive, directives
from docutils.statemachine import ViewList

from sphinx.util.compat import Directive
from sphinx.util.nodes import nested_parse_with_titles

from sphinxcontrib import httpdomain


# Dictionaries do not guarantee to preserve the keys order so when we load
# JSON or YAML - we may loose the order. In most cases it's not important
Expand Down Expand Up @@ -214,6 +211,5 @@ def run(self):


def setup(app):
if 'http' not in app.domains:
httpdomain.setup(app)
app.setup_extension('sphinxcontrib.httpdomain')
app.add_directive('openapi', OpenApi)

0 comments on commit 31f54bb

Please sign in to comment.