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"