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

problem with config in command line #341

Closed
lifenglifeng001 opened this Issue Feb 5, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@lifenglifeng001

lifenglifeng001 commented Feb 5, 2015

If I run the follow command in current development version:

mkdocs serve --config=/home/lf/git/mywork/bb/bog/mkdocs.yml

it will raise error:

Config file 'mkdocs.yml' does not exist.

But if I run the same command use version 0.11.1

Everything is OK

Is there any thing wrong with code below in config

if 'config' in options:
    filename = options.pop('config')

Should it be:

if 'config' in options:
    filename = options.get('config')

Because when we run mkdocs serve , we will execute this block of code two times, filename will use the default mkdocs.yml in the second time, this file may not exist.

@d0ugal

This comment has been minimized.

Member

d0ugal commented Feb 6, 2015

Interesting, I don't think that part of the code is an issue tho' - I'll need to take a look.

@d0ugal

This comment has been minimized.

Member

d0ugal commented Apr 3, 2015

Actually, I take that back - you are completely right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment