view wk.py @ 474:db73b12ad212

web: Give special pages a linkable URL. All special pages are now in the built-in `special` endpoint, at URLs like `special:/Broken Links`. This makes it possible to link to them from other pages, especially help pages.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 08 Oct 2018 23:49:09 -0700
parents 2dd7535045eb
children
line wrap: on
line source

#!/usr/local/bin/python
import sys
import logging
import colorama
from wikked.witch import ColoredFormatter, main


# Configure logging.
colorama.init()
root_logger = logging.getLogger()
handler = logging.StreamHandler(stream=sys.stdout)
handler.setFormatter(ColoredFormatter('%(message)s'))
root_logger.addHandler(handler)


if __name__ == "__main__":
    main()