From e1bdd2ab67c41ae81577e597fef082f99f43c327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 22 Jan 2021 21:02:12 +0100 Subject: [PATCH] =?UTF-8?q?add=20a=20'generated=20by=20=E2=80=A6'=20commen?= =?UTF-8?q?t=20to=20supportedsites.rst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/supportedsites.rst | 5 ++++- scripts/supportedsites.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index c15371c1..0f4b03c5 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -1,6 +1,9 @@ Supported Sites =============== -Unless otherwise known, assume all sites to be NSFW +.. + generated by scripts/supportedsites.py + +Consider all sites to be NSFW, unless otherwise known. ==================== =================================== ================================================== ================ Site URL Capabilities Authentication diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py index ce7023ee..5dd104e5 100755 --- a/scripts/supportedsites.py +++ b/scripts/supportedsites.py @@ -3,6 +3,7 @@ """Generate a reStructuredText document with all supported sites""" +import os import sys import collections @@ -330,7 +331,9 @@ def write_output(fobj, columns, extractors): # caption w("Supported Sites\n") w("===============\n") - w("Unless otherwise known, assume all sites to be NSFW\n\n") + w("..\n generated by {}\n\n".format( + "/".join(os.path.normpath(__file__).split(os.sep)[-2:]))) + w("Consider all sites to be NSFW, unless otherwise known.\n\n") # table head sep = " ".join("=" * c[1] for c in columns) + "\n"