@@ -2,8 +2,6 @@ This is a from-scratch rewrite of | |||||
[my Toolserver site](https://toolserver.org/~earwig) to interface well with my | [my Toolserver site](https://toolserver.org/~earwig) to interface well with my | ||||
[EarwigBot rewrite](https://github.com/earwig/earwigbot). | [EarwigBot rewrite](https://github.com/earwig/earwigbot). | ||||
Not much else to say at this stage. Move along, now. | |||||
Dependencies | Dependencies | ||||
============ | ============ | ||||
@@ -43,7 +43,7 @@ if __name__ == "__main__": | |||||
rewrite_script_src = """match URL into $ with ^/~earwig/{0}(\?.*?)?$ | rewrite_script_src = """match URL into $ with ^/~earwig/{0}(\?.*?)?$ | ||||
if matched then | if matched then | ||||
set URL = /~earwig/www/{0}.fcgi$1 | |||||
set URL = /~earwig/www/{1}.fcgi$1 | |||||
goto END | goto END | ||||
endif | endif | ||||
""" | """ | ||||
@@ -138,8 +138,9 @@ class Builder(object): | |||||
logger.debug("build rewrite.script") | logger.debug("build rewrite.script") | ||||
with open(target, "w") as fp: | with open(target, "w") as fp: | ||||
fp.write(rewrite_script_src.format("", "index")) | |||||
for page in self._pages: | for page in self._pages: | ||||
fp.write(rewrite_script_src.format(page)) | |||||
fp.write(rewrite_script_src.format(page, page)) | |||||
def build(self): | def build(self): | ||||
self._enable_logging() | self._enable_logging() | ||||
@@ -5,10 +5,14 @@ | |||||
("Home", "home", "index", True, None), | ("Home", "home", "index", True, None), | ||||
("Settings", "settings", "settings", True, None), | ("Settings", "settings", "settings", True, None), | ||||
("DIVIDER"), | ("DIVIDER"), | ||||
("Copyvio Detector", "copyvios", "copyvios", True, "Blah"), | |||||
("EarwigBot Status", "earwigbot", "earwigbot", True, "Blah"), | |||||
("Contribution Surveyor", "surveyor", "surveyor", False, "Blah"), | |||||
("SWMT Helper", "swmt", "swmt", False, "Blah"), | |||||
("Copyvio Detector", "copyvios", "copyvios", True, | |||||
'Try to detect <a href="//en.wikipedia.org/wiki/WP:COPYVIO">copyright violations</a> in articles by searching the web for page content, or compare an article to a specific URL.'), | |||||
("EarwigBot Status", "earwigbot", "earwigbot", True, | |||||
'View <a href="//en.wikipedia.org/wiki/User:EarwigBot">EarwigBot</a>\'s current status and read its IRC-based mini-wiki.'), | |||||
("Contribution Surveyor", "surveyor", "surveyor", False, | |||||
"Nothing to see here yet!"), | |||||
("SWMT Helper", "swmt", "swmt", False, | |||||
"Nothing to see here yet!"), | |||||
] | ] | ||||
%>\ | %>\ | ||||
<% | <% | ||||