Merge pull request #5034 from tk0miya/add_html_js_files

Add :confval:`html_js_files`
This commit is contained in:
Takeshi KOMIYA
2018-06-09 11:51:11 +09:00
committed by GitHub
7 changed files with 80 additions and 16 deletions

View File

@@ -1123,6 +1123,11 @@ def test_html_assets(app):
assert ('<link media="print" rel="stylesheet" title="title" type="text/css" '
'href="https://example.com/custom.css" />' in content)
# html_js_files
assert '<script type="text/javascript" src="_static/js/custom.js"></script>' in content
assert ('<script async="async" type="text/javascript" src="https://example.com/script.js">'
'</script>' in content)
@pytest.mark.sphinx('html', testroot='basic', confoverrides={'html_copy_source': False})
def test_html_copy_source(app):