Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme_dir does not work #42

Closed
HelloGrayson opened this issue Feb 28, 2014 · 1 comment
Closed

theme_dir does not work #42

HelloGrayson opened this issue Feb 28, 2014 · 1 comment

Comments

@HelloGrayson
Copy link

Copied the bootstrap theme to a themes dir in the root of my project. updated theme_dir to point to themes. Keep getting the following error.

jinja2.exceptions.TemplateNotFound: base.html
@tomchristie
Copy link
Member

I've just verified this against a fresh install of 0.5.

For the way this ticket is phrased it sounds as if you've copied the bootstrap theme into themes/bootstrap, and then set theme_dir: themes. Instead you need the theme_dir to point at the theme directory itself, and not at a directory containing it.

I'm aware that I've probably explained that horribly, but there's a bit more docs on it now, so hopefully that'll help.

Here's my project layout from testing this now:

$ ls
custom     docs       mkdocs.yml
$ more mkdocs.yml 
site_name: My Project
theme_dir: custom
$ ls docs/
index.md
$ ls custom/
base.html    content.html css          fonts        img          js           nav.html     toc.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants