mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-10 11:29:53 +00:00
Add integration quality scale docs (#2457)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a1f286224a
commit
cf52c30bc0
24
sidebars.js
24
sidebars.js
@@ -5,6 +5,16 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const iqs_rules_by_tier = require('./docs/core/integration-quality-scale/_includes/tiers.json');
|
||||
const iqs_rules = Object.values(iqs_rules_by_tier).flat().map((rule) => {
|
||||
if (typeof rule === "string") {
|
||||
return rule;
|
||||
}
|
||||
return rule.id;
|
||||
});
|
||||
|
||||
|
||||
|
||||
module.exports = {
|
||||
Addons: [
|
||||
"add-ons",
|
||||
@@ -134,9 +144,21 @@ module.exports = {
|
||||
"development_checklist",
|
||||
"creating_component_code_review",
|
||||
"creating_platform_code_review",
|
||||
"integration_quality_scale_index",
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Integration Quality Scale",
|
||||
link: {type: 'doc', id: 'core/integration-quality-scale/index'},
|
||||
items: [
|
||||
{type: 'doc', id: 'core/integration-quality-scale/checklist'},
|
||||
{type: 'category', label: 'Rules', items: iqs_rules.map(rule => ({
|
||||
type: 'doc',
|
||||
id: `core/integration-quality-scale/rules/${rule.toLowerCase()}`
|
||||
})
|
||||
)}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "The `hass` object",
|
||||
|
||||
Reference in New Issue
Block a user