Skip to content

Commit c02d517

Browse files
authored
Use absolute paths for IQS links (#2489)
1 parent 6aa5ec2 commit c02d517

32 files changed

+42
-40
lines changed

docs/core/integration-quality-scale/_includes/rule_overview.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ export default function RuleOverview({tier}) {
1313
if (typeof rule === "object") {
1414
id = rule.id;
1515
}
16+
const absoluteRulePath = `/docs/core/integration-quality-scale/rules/${id}`;
1617
const relatedRule = docs[`core/integration-quality-scale/rules/${id}`];
1718
return (
1819
<li key={id}>
19-
<Link to={`rules/${id}`}>{id}</Link> - {relatedRule.title}
20+
<Link to={absoluteRulePath}>{id}</Link> - {relatedRule.title}
2021
</li>
2122
);
2223
})}

docs/core/integration-quality-scale/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Home Assistant encourages our contributors to get their integrations to the high
9494
9595
When an integration reaches the minimum requirements for a certain tier, a contributor can open a pull request to adjust the scale for the integration.
9696
This request needs to be accompanied by the full checklist for each rule of scale (including all rules of lower tiers), demonstrating that it has met those requirements.
97-
The checklist can be found [here](checklist).
97+
The checklist can be found [here](/docs/core/integration-quality-scale/checklist).
9898
9999
Once the Home Assistant core team reviews and approves it, the integration will display the new tier as of the next major release of Home Assistant.
100100

docs/core/integration-quality-scale/rules/_includes/related_rules.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ export default function RelatedRules({relatedRules}) {
88
return (
99
<ul>
1010
{relatedRules.map((rule) => {
11+
const absoluteRulePath = `/docs/core/integration-quality-scale/rules/${rule}`;
1112
const relatedRule = docs[`core/integration-quality-scale/rules/${rule}`].title;
1213
return (
1314
<li key={rule}>
14-
<Link to={rule}>{rule}</Link>: {relatedRule}
15+
<Link to={absoluteRulePath}>{rule}</Link>: {relatedRule}
1516
</li>
1617
);
1718
})}

docs/core/integration-quality-scale/rules/action-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
4848

4949
## Additional resources
5050

51-
For more information on how to set up service actions, see the [service documentation](../../../dev_101_services).
51+
For more information on how to set up service actions, see the [service documentation](/docs/dev_101_services).
5252

5353
## Exceptions
5454

docs/core/integration-quality-scale/rules/appropriate-polling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MySensor(SensorEntity):
5656

5757
## Additional resources
5858

59-
More information about polling can be found in the [documentation](../../../integration_fetching_data).
59+
More information about polling can be found in the [documentation](/docs/integration_fetching_data).
6060

6161
## Exceptions
6262

docs/core/integration-quality-scale/rules/async-dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This results not only in a more efficient system but the code is also more neat.
1414

1515
## Additional resources
1616

17-
More information on how to create a library can be found in the [documentation](../../../api_lib_index).
17+
More information on how to create a library can be found in the [documentation](/docs/api_lib_index).
1818

1919
## Exceptions
2020

docs/core/integration-quality-scale/rules/config-entry-unloading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This can be useful to clean up resources without having to keep track of the rem
3535

3636
## Additional resources
3737

38-
More information about config entries and their lifecycle can be found in the [config entry documentation](../../../config_entries_index).
38+
More information about config entries and their lifecycle can be found in the [config entry documentation](/docs/config_entries_index).
3939

4040
## Exceptions
4141

docs/core/integration-quality-scale/rules/config-flow-test-coverage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ async def test_full_flow(
6060

6161
## Additional resources
6262

63-
More information about config flows can be found in the [config flow documentation](../../../config_entries_config_flow_handler).
64-
More information about testing integrations can be found in the [testing documentation](../../../development_testing).
63+
More information about config flows can be found in the [config flow documentation](/docs/config_entries_config_flow_handler).
64+
More information about testing integrations can be found in the [testing documentation](/docs/development_testing).
6565

6666
## Exceptions
6767

docs/core/integration-quality-scale/rules/config-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MyConfigFlow(ConfigFlow, domain=DOMAIN):
6969

7070
## Additional resources
7171

72-
More information about config flows can be found in the [config flow documentation](../../../config_entries_config_flow_handler).
72+
More information about config flows can be found in the [config flow documentation](/docs/config_entries_config_flow_handler).
7373
More information about the architecture decision around config flows can be found in [ADR-0010](https://github.com/home-assistant/architecture/blob/master/adr/0010-integration-configuration.md)
7474

7575
## Exceptions

docs/core/integration-quality-scale/rules/devices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If the device represents a service, be sure to add `entry_type=DeviceEntryType.S
4545

4646
## Additional resources
4747

48-
More information about devices can be found in the [device](../../../device_registry_index) documentation.
48+
More information about devices can be found in the [device](/docs/device_registry_index) documentation.
4949

5050
## Exceptions
5151

0 commit comments

Comments
 (0)