mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
update template notices
This commit is contained in:
@@ -40,7 +40,7 @@ def inline_css_resource(original_file: str, css_file: str, output_file: str):
|
||||
original_data = read_file(original_file)
|
||||
original_data = original_data.replace('<!-- @INLINE_CSS_HERE@ -->',
|
||||
f'<style>{css_data}</style>')
|
||||
note = 'Note: This is generated with scripts/inline_resources.py. Please do not edit this file manually.'
|
||||
note = 'Note: This file is generated with scripts/inline_resources.py. Please do not edit manually.'
|
||||
if original_file.endswith('.ejs'):
|
||||
original_data = f'<%# {note} %>\n' + original_data
|
||||
else:
|
||||
@@ -69,5 +69,5 @@ if __name__ == '__main__':
|
||||
inline_css_resource(
|
||||
os.path.join(resources_folder, 'templates/error.ejs'),
|
||||
os.path.join(resources_folder, 'styles/main.css'),
|
||||
os.path.join(root, 'editor/frontend/src/template.ejs'),
|
||||
os.path.join(root, 'editor/web/src/template.ejs'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user