Closed miguelangel-dev closed 4 years ago
Closes #128
Fix Dash URL for API References
Internally Jazzyl is using URI::join class, you can read the API reference here.
Jazzyl
URI::join
Inside docset_builder.rb we can find the next line:
docset_builder.rb
URI.join(config.root_url, "docsets/#{source_module.name}.tgz")
So we need to send a root_url finished in / to generate a valid URL - in another case, when the lib invoke .to_s will lose the last component path (in our case api-docs) and it is happening in source_module.rb file.
root_url
/
URL
.to_s
api-docs
source_module.rb
Related issues
Closes #128
Goal
Fix Dash URL for API References
Implementation details
Internally
Jazzyl
is usingURI::join
class, you can read the API reference here.Inside
docset_builder.rb
we can find the next line:So we need to send a
root_url
finished in/
to generate a validURL
- in another case, when the lib invoke.to_s
will lose the last component path (in our caseapi-docs
) and it is happening insource_module.rb
file.