mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '1.8'
This commit is contained in:
commit
c70dfcd390
0
tests/roots/test-html_style/_static/default.css
Normal file
0
tests/roots/test-html_style/_static/default.css
Normal file
2
tests/roots/test-html_style/conf.py
Normal file
2
tests/roots/test-html_style/conf.py
Normal file
@ -0,0 +1,2 @@
|
||||
html_style = 'default.css'
|
||||
html_static_path = ['_static']
|
2
tests/roots/test-html_style/index.rst
Normal file
2
tests/roots/test-html_style/index.rst
Normal file
@ -0,0 +1,2 @@
|
||||
html_style
|
||||
==========
|
@ -37,7 +37,6 @@ rst_epilog = '.. |subst| replace:: global substitution'
|
||||
html_sidebars = {'**': ['localtoc.html', 'relations.html', 'sourcelink.html',
|
||||
'customsb.html', 'searchbox.html'],
|
||||
'index': ['contentssb.html', 'localtoc.html', 'globaltoc.html']}
|
||||
html_style = 'default.css'
|
||||
html_last_updated_fmt = '%b %d, %Y'
|
||||
html_context = {'hckey': 'hcval', 'hckey_co': 'wrong_hcval_co'}
|
||||
|
||||
|
@ -1252,6 +1252,15 @@ def test_alternate_stylesheets(app, cached_etree_parse, fname, expect):
|
||||
check_xpath(cached_etree_parse(app.outdir / fname), fname, *expect)
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='html_style')
|
||||
def test_html_style(app, status, warning):
|
||||
app.build()
|
||||
result = (app.outdir / 'index.html').text()
|
||||
assert '<link rel="stylesheet" href="_static/default.css" type="text/css" />' in result
|
||||
assert ('<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />'
|
||||
not in result)
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='images')
|
||||
def test_html_remote_images(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
Loading…
Reference in New Issue
Block a user