diff --git a/CHANGELOG.md b/CHANGELOG.md index 937686181..f569455d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,9 @@ ##### Bug Fixes -* None. +* Fix crash with pre-existing `Docs` directory. + [John Fairhurst](https://github.com/johnfairh) + [#965](https://github.com/realm/jazzy/issues/965) ## 0.9.3 diff --git a/lib/jazzy/config.rb b/lib/jazzy/config.rb index 8739995d2..fea79d9ec 100644 --- a/lib/jazzy/config.rb +++ b/lib/jazzy/config.rb @@ -87,7 +87,8 @@ class << self attr_accessor :base_path def expand_path(path) - Pathname(path).expand_path(base_path) # nil means Pathname.pwd + abs_path = Pathname(path).expand_path(base_path) # nil means Pathname.pwd + Pathname(Dir[abs_path][0] || abs_path) # Use existing filesystem spelling end # ──────── Build ────────