diff --git a/docs/process_html.py b/docs/process_html.py index 1c8cc72..f7a98c6 100644 --- a/docs/process_html.py +++ b/docs/process_html.py @@ -7,13 +7,16 @@ def simplify_credits(html): """ Replace the credit part of the HTML footer. Return the new text. """ - s = r"Created using ." - pattern = re.compile(s, flags=re.DOTALL) + s = r'@pradyunsg\'s' + pattern = re.compile(s) + html = pattern.sub(r'', html) - new_s = 'CC BY 4.0' - new_s += ' | Created using Sphinx & Furo' + s = r'Copyright © 2022, Agile Scientific' + pattern = re.compile(s) + new_s = '© 2022, Agile Scientific | CC BY' + html = pattern.sub(new_s, html) - return pattern.sub(new_s, html) + return html def main(path):