add a 'generated by …' comment to supportedsites.rst
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
Supported Sites
|
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
|
Site URL Capabilities Authentication
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
"""Generate a reStructuredText document with all supported sites"""
|
"""Generate a reStructuredText document with all supported sites"""
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
@@ -330,7 +331,9 @@ def write_output(fobj, columns, extractors):
|
|||||||
# caption
|
# caption
|
||||||
w("Supported Sites\n")
|
w("Supported Sites\n")
|
||||||
w("===============\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
|
# table head
|
||||||
sep = " ".join("=" * c[1] for c in columns) + "\n"
|
sep = " ".join("=" * c[1] for c in columns) + "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user