mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5034 from tk0miya/add_html_js_files
Add :confval:`html_js_files`
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user