mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do not overwrite user-supplied data by default when copying (#12647)
This commit is contained in:
@@ -12,8 +12,8 @@ def _copy_asset_overwrite_hook(app):
|
||||
Path(__file__).parent.joinpath('myext_static', 'custom-styles.css'),
|
||||
app.outdir / '_static',
|
||||
)
|
||||
# This demonstrates the overwriting
|
||||
assert css.read_text() == '/* extension styles */\n', 'overwriting failed'
|
||||
# This demonstrates that no overwriting occurs
|
||||
assert css.read_text() == '/* html_static_path */\n', 'file overwritten!'
|
||||
return []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user