Skip to content

problem with config in command line  #341

Description

@hiczlf

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.

Activity

  1. d0ugal commented on Feb 6, 2015

    @d0ugal
    Contributor

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

  2. d0ugal commented on Apr 3, 2015

    @d0ugal
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions