From 7f5ffd94303ee2f482945b2fd7faed43357e60de Mon Sep 17 00:00:00 2001 From: kwinkunks Date: Sat, 19 Feb 2022 21:29:09 -0400 Subject: [PATCH] docs footer --- docs/process_html.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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):