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:
Joost Lekkerkerker
2024-11-20 17:41:19 +01:00
committed by GitHub
parent a1f286224a
commit cf52c30bc0
62 changed files with 3128 additions and 70 deletions

View File

@@ -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",