tomchristie/mkdocs — pull request #132 by pieterlexis (2014-08-26 08:42:54+00:00)
Title: Fix the custom-themes

These did not built because the config object does not exist. An `mkdocs build` stopped with:
```
Building documentation to directory: html-new
Traceback (most recent call last):
File "/home/lieter/.virtualenvs/mkdocs/bin/mkdocs", line 9, in
load_entry_point('mkdocs==0.9', 'console_scripts', 'mkdocs')()
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/mkdocs/main.py", line 52, in run_main
main(cmd, args=sys.argv[2:], options=dict(opts))
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/mkdocs/main.py", line 32, in main
build(config)
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/mkdocs/build.py", line 201, in build
build_pages(config)
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/mkdocs/build.py", line 186, in build_pages
output_content = template.render(context)
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/mkdocs/themes/cosmo/base.html", line 26, in top-level template code
{% if config.theme_center_lead %}
File "/home/lieter/.virtualenvs/mkdocs/local/lib/python2.7/site-packages/jinja2/environment.py", line 397, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'config' is undefined
```