lib/jazzy/config.rb in jazzy-0.13.3 vs lib/jazzy/config.rb in jazzy-0.13.4
- old
+ new
@@ -308,10 +308,11 @@
# ──────── URLs ────────
config_attr :root_url,
command_line: ['-r', '--root-url URL'],
description: 'Absolute URL root where these docs will be stored',
- parse: ->(r) { URI(r) }
+ # ensure trailing slash for correct URI.join()
+ parse: ->(r) { URI(r.sub(%r{/?$}, '/')) }
config_attr :dash_url,
command_line: ['-d', '--dash_url URL'],
description: 'Location of the dash XML feed '\
'e.g. https://realm.io/docsets/realm.xml)',