basePath defines where your app is located, it defaults to / since most apps are hosted at root path, you can set it to /docs if your app is hosted at https://example.com/docs, when sourcePath is a relative path, it should also be resolved from basePath.
basePath
defines where your app is located, it defaults to/
since most apps are hosted at root path, you can set it to/docs
if your app is hosted athttps://example.com/docs
, whensourcePath
is a relative path, it should also be resolved frombasePath
.