Navigation Menu

Skip to content

Commit

Permalink
Properly build ValidationError message for custom_dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
waylan committed Sep 2, 2019
1 parent f200a60 commit da23b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/about/release-notes.md
Expand Up @@ -56,7 +56,8 @@ your global navigation uses more than one level, things will likely be broken.

### Other Changes and Additions to Version 1.1

* Bugfix: Exclude Markdown files and READMEs from theme. (#1766).
* Bugfix: Properly build `ValidationError` message for `custom_dir` (#1849).
* Bugfix: Exclude Markdown files and READMEs from theme (#1766).
* Bugfix: Account for encoded URLs (#1670).
* Bugfix: Ensure theme files do not override `docs_dir` files (#1671).
* Bugfix: Do not normalize URL fragments (#1655).
Expand Down
2 changes: 1 addition & 1 deletion mkdocs/config/config_options.py
Expand Up @@ -456,7 +456,7 @@ def post_validation(self, config, key_name):

if 'custom_dir' in theme_config and not os.path.isdir(theme_config['custom_dir']):
raise ValidationError("The path set in {name}.custom_dir ('{path}') does not exist.".
format(path=theme_config['custom_dir'], name=self.name))
format(path=theme_config['custom_dir'], name=key_name))

config[key_name] = theme.Theme(**theme_config)

Expand Down

0 comments on commit da23b64

Please sign in to comment.