Skip to content

Commit

Permalink
Merge pull request #3481 from luhn/sphinx-2.0-1.10
Browse files Browse the repository at this point in the history
Backport #3480 to 1.10
  • Loading branch information
stevepiercy committed Mar 31, 2019
2 parents 999b8f3 + f00a5a2 commit 31e99c3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 25 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.. _changes_1.10.2:

1.10.3 (unreleased)
===================

- Fix docs build for Sphinx 2.0.
See https://github.com/Pylons/pyramid/pull/3481


1.10.2 (2019-01-30)
===================

Expand Down
38 changes: 19 additions & 19 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

from docutils import nodes
from docutils import utils
from docutils.parsers.rst import Directive


def raw(*arg):
Expand Down Expand Up @@ -333,7 +334,6 @@ def nothing(*arg):

latex_elements = {
'preamble': _PREAMBLE,
'date': '',
'releasename': 'Version',
'title': r'The Pyramid Web Framework',
# 'pointsize':'12pt', # uncomment for 12pt version
Expand All @@ -352,25 +352,25 @@ def nothing(*arg):
#subparagraph 5


def frontmatter(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
return [nodes.raw(
'',
format='latex')]
class FrontMatter(Directive):
def run(self):
return [nodes.raw(
'',
format='latex')]


def mainmatter(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
return [nodes.raw(
'',
format='latex')]
class MainMatter(Directive):
def run(self):
return [nodes.raw(
'',
format='latex')]


def backmatter(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
return [nodes.raw(
'',
format='latex')]
class BackMatter(Directive):
def run(self):
return [nodes.raw(
'',
format='latex')]


def app_role(role, rawtext, text, lineno, inliner, options={}, content=[]):
Expand All @@ -385,9 +385,9 @@ def app_role(role, rawtext, text, lineno, inliner, options={}, content=[]):

def setup(app):
app.add_role('app', app_role)
app.add_directive('frontmatter', frontmatter, 1, (0, 0, 0))
app.add_directive('mainmatter', mainmatter, 1, (0, 0, 0))
app.add_directive('backmatter', backmatter, 1, (0, 0, 0))
app.add_directive('frontmatter', FrontMatter, 1, (0, 0, 0))
app.add_directive('mainmatter', MainMatter, 1, (0, 0, 0))
app.add_directive('backmatter', BackMatter, 1, (0, 0, 0))
app.connect('autodoc-process-signature', resig)


Expand Down
8 changes: 2 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,9 @@ Comprehensive reference material for every public API exposed by
:app:`Pyramid`:

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

api/index
api/*


``p*`` Scripts Documentation
Expand All @@ -166,11 +164,9 @@ Comprehensive reference material for every public API exposed by
``p*`` scripts included with :app:`Pyramid`.

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

pscripts/index
pscripts/*


Change History
Expand Down

0 comments on commit 31e99c3

Please sign in to comment.