webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

Provide siteDomain and siteRoot fallback #131

Closed bigtimebuddy closed 3 years ago

bigtimebuddy commented 3 years ago

For linking against another API, this change provides a way to do that even if the API being included doesn't contain a siteDomain in the metadata. In general, this makes linking much more flexible and portable as well as making it easier to test locally.

Use-case for this change is https://github.com/pixijs/guides which needs to link against https://pixijs.download/release/docs/pixi.api.json, but that JSON doesn't define siteDomain in the webdoc config.