Open klein0r opened 2 years ago
I would prefer a clear structure from which locations data is retrieved too. In addition I would like to be able to link the adapter to an (optional) documention provided i.e. via github. (For the meoment I added a rudimentary docu directly into README.md5 but this is not the right place for longer docus I assume.)
Describe the bug
At the moment there are three (?) ways to open a documentation for an adapter:
?
Buttonhttps://github.com/ioBroker/ioBroker.admin/blob/bbcc2fb28ad21f2550a0bb558005d6c2a631aebc/src-rx/src/tabs/Adapters.jsx#L1000-L1002
https://github.com/ioBroker/ioBroker.admin/blob/bbcc2fb28ad21f2550a0bb558005d6c2a631aebc/src-rx/src/tabs/Adapters.jsx#L1613-L1629
This opens / renders the readme directly in the admin interface. Source of this documentation is iobroker.net
https://github.com/ioBroker/ioBroker.admin/blob/bbcc2fb28ad21f2550a0bb558005d6c2a631aebc/src-rx/src/dialogs/AdapterInfoDialog.jsx#L39
https://github.com/ioBroker/ioBroker.admin/blob/bbcc2fb28ad21f2550a0bb558005d6c2a631aebc/src-rx/src/tabs/Config.jsx#L208-L226
This opens a new tab to iobroker.net
https://www.iobroker.net/#${lang}/adapters/adapterref/iobroker.${this.props.adapter}/README.md
This is NOT working, if the adapter is not in the official repository
https://github.com/ioBroker/ioBroker.admin/blob/bbcc2fb28ad21f2550a0bb558005d6c2a631aebc/src-rx/public/js/adapter-settings.js#L589-L593
This opens a new tab to the
common.readme
property in io-package.jsonSummary
common.readme
is not used when using jsonConfigcommon.docs
is ignored completely (just used by ioBroker.docs to collect the documentationSuggestion
common.docs
to generate links to the documentation / render docsiobroker.readme
ifcommon.docs
is not definedVersions