From 804ea2f960995fe2ed0a99e059874a00f680bea5 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 5 Sep 2012 10:52:52 -0400 Subject: [PATCH] Update rewrite.script to include / -> index.fcg; add descriptions for index. --- README.md | 2 -- build.py | 5 +++-- pages/index.mako | 12 ++++++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c5e862d..d9bc5fb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ This is a from-scratch rewrite of [my Toolserver site](https://toolserver.org/~earwig) to interface well with my [EarwigBot rewrite](https://github.com/earwig/earwigbot). -Not much else to say at this stage. Move along, now. - Dependencies ============ diff --git a/build.py b/build.py index b52990c..cb427a6 100755 --- a/build.py +++ b/build.py @@ -43,7 +43,7 @@ if __name__ == "__main__": rewrite_script_src = """match URL into $ with ^/~earwig/{0}(\?.*?)?$ if matched then - set URL = /~earwig/www/{0}.fcgi$1 + set URL = /~earwig/www/{1}.fcgi$1 goto END endif """ @@ -138,8 +138,9 @@ class Builder(object): logger.debug("build rewrite.script") with open(target, "w") as fp: + fp.write(rewrite_script_src.format("", "index")) for page in self._pages: - fp.write(rewrite_script_src.format(page)) + fp.write(rewrite_script_src.format(page, page)) def build(self): self._enable_logging() diff --git a/pages/index.mako b/pages/index.mako index d518710..6345600 100644 --- a/pages/index.mako +++ b/pages/index.mako @@ -5,10 +5,14 @@ ("Home", "home", "index", True, None), ("Settings", "settings", "settings", True, None), ("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 copyright violations in articles by searching the web for page content, or compare an article to a specific URL.'), + ("EarwigBot Status", "earwigbot", "earwigbot", True, + 'View EarwigBot\'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!"), ] %>\ <%