Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 674560 Details for
Bug 723468
dev-python/recommonmark forces old dev-python/sphinx
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix recommonmark tests with sphinx-3
recommonmark-0.6.0-tests-sphinx3.patch (text/plain), 3.52 KB, created by
Anon Emuss
on 2020-11-23 19:28:32 UTC
(
hide
)
Description:
Fix recommonmark tests with sphinx-3
Filename:
MIME Type:
Creator:
Anon Emuss
Created:
2020-11-23 19:28:32 UTC
Size:
3.52 KB
patch
obsolete
>Update tests for sphinx-3 > >The deprecated source_parsers no longer works with sphinx-3. Modify >conf.py files to use the recommonmark extension, which sphinx supports. > >Tested and appears to work with sphinx-2.4.4 and sphinx-3.2.1. > >diff --git a/tests/sphinx_code_block/conf.py b/tests/sphinx_code_block/conf.py >index 6b0140e..ddfafd5 100644 >--- a/tests/sphinx_code_block/conf.py >+++ b/tests/sphinx_code_block/conf.py >@@ -1,11 +1,9 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser >- > templates_path = ['_templates'] >-source_suffix = '.md' >-source_parsers = { '.md': CommonMarkParser } >+extensions = ['recommonmark'] >+source_suffix = { '.md': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd' >diff --git a/tests/sphinx_custom_md/conf.py b/tests/sphinx_custom_md/conf.py >index b29157b..9073346 100644 >--- a/tests/sphinx_custom_md/conf.py >+++ b/tests/sphinx_custom_md/conf.py >@@ -1,12 +1,11 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser > from recommonmark.transform import AutoStructify > > templates_path = ['_templates'] >-source_suffix = '.markdown' >-source_parsers = { '.markdown': CommonMarkParser } >+extensions = ['recommonmark'] >+source_suffix = { '.markdown': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd' >diff --git a/tests/sphinx_generic/conf.py b/tests/sphinx_generic/conf.py >index 6b0140e..ddfafd5 100644 >--- a/tests/sphinx_generic/conf.py >+++ b/tests/sphinx_generic/conf.py >@@ -1,11 +1,9 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser >- > templates_path = ['_templates'] >-source_suffix = '.md' >-source_parsers = { '.md': CommonMarkParser } >+extensions = ['recommonmark'] >+source_suffix = { '.md': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd' >diff --git a/tests/sphinx_indented_code/conf.py b/tests/sphinx_indented_code/conf.py >index f441071..90c5692 100644 >--- a/tests/sphinx_indented_code/conf.py >+++ b/tests/sphinx_indented_code/conf.py >@@ -1,11 +1,9 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser >- > templates_path = ['_templates'] >-source_suffix = '.md' >-source_parsers = { '.md': CommonMarkParser } >+extensions = ['recommonmark'] >+source_suffix = { '.md': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd' >diff --git a/tests/sphinx_nested_header_block/conf.py b/tests/sphinx_nested_header_block/conf.py >index 6b0140e..ddfafd5 100644 >--- a/tests/sphinx_nested_header_block/conf.py >+++ b/tests/sphinx_nested_header_block/conf.py >@@ -1,11 +1,9 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser >- > templates_path = ['_templates'] >-source_suffix = '.md' >-source_parsers = { '.md': CommonMarkParser } >+extensions = ['recommonmark'] >+source_suffix = { '.md': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd' >diff --git a/tests/sphinx_xref/conf.py b/tests/sphinx_xref/conf.py >index 443a026..acd840b 100644 >--- a/tests/sphinx_xref/conf.py >+++ b/tests/sphinx_xref/conf.py >@@ -1,14 +1,11 @@ > > # -*- coding: utf-8 -*- > >-from recommonmark.parser import CommonMarkParser >- >-extensions = 'sphinx.ext.autosectionlabel'] >+extensions = ['sphinx.ext.autosectionlabel', 'recommonmark'] > autosectionlabel_prefix_document = True > > templates_path = ['_templates'] >-source_suffix = '.md' >-source_parsers = { '.md': CommonMarkParser } >+source_suffix = { '.md': 'markdown' } > master_doc = 'index' > project = u'sphinxproj' > copyright = u'2015, rtfd'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 723468
: 674560 |
674563
|
674566