Make it possible to run upstream tests
- Do not use readthedocs-sphinx-ext, it is not packaged. - Point to local version of sphinx_rtd_theme. Gbp-Pq: Name tests-configuration.patch
This commit is contained in:
parent
d53f640320
commit
105ddec5b7
|
@ -32,9 +32,7 @@ def build(root, builder='html', **kwargs):
|
||||||
|
|
||||||
confoverrides = kwargs.pop('confoverrides', {})
|
confoverrides = kwargs.pop('confoverrides', {})
|
||||||
confoverrides['html_theme'] = 'sphinx_rtd_theme'
|
confoverrides['html_theme'] = 'sphinx_rtd_theme'
|
||||||
extensions = confoverrides.get('extensions', [])
|
confoverrides['html_theme_path'] = [os.path.abspath('../../..')]
|
||||||
extensions.append('readthedocs_ext.readthedocs')
|
|
||||||
confoverrides['extensions'] = extensions
|
|
||||||
kwargs['confoverrides'] = confoverrides
|
kwargs['confoverrides'] = confoverrides
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -54,7 +52,6 @@ def build(root, builder='html', **kwargs):
|
||||||
|
|
||||||
|
|
||||||
def build_all(root, **kwargs):
|
def build_all(root, **kwargs):
|
||||||
for builder in ['html', 'singlehtml', 'readthedocs', 'readthedocsdirhtml',
|
for builder in ['html', 'singlehtml']:
|
||||||
'readthedocssinglehtml', 'readthedocssinglehtmllocalmedia']:
|
|
||||||
with build(root, builder, **kwargs) as ret:
|
with build(root, builder, **kwargs) as ret:
|
||||||
yield ret
|
yield ret
|
||||||
|
|
Loading…
Reference in New Issue