From 264fc2bccb2c55bb5999bd397f6393402cbc5a48 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Sat, 17 Oct 2026 13:44:40 -0700 Subject: [PATCH] Fix hosted links for new power-saving documentation --- docs/nrf52_sleep_event_validation.md | 4 ++++ docs/power_saving_diagnostics.md | 4 ++++ test/test_hosted_doc_links.py | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/nrf52_sleep_event_validation.md b/docs/nrf52_sleep_event_validation.md index 03b97b83c..beff18ada 100644 --- a/docs/nrf52_sleep_event_validation.md +++ b/docs/nrf52_sleep_event_validation.md @@ -1,3 +1,7 @@ + + + + # nRF52 idle-sleep regression ## Cause diff --git a/docs/power_saving_diagnostics.md b/docs/power_saving_diagnostics.md index 0bf6642e7..9a5cad47f 100644 --- a/docs/power_saving_diagnostics.md +++ b/docs/power_saving_diagnostics.md @@ -1,3 +1,7 @@ + + + + # Power-saving diagnostics Use `set powersaving.diag on` to collect the real sleep-policy decisions in diff --git a/test/test_hosted_doc_links.py b/test/test_hosted_doc_links.py index 777e4631f..1d62d3ba8 100644 --- a/test/test_hosted_doc_links.py +++ b/test/test_hosted_doc_links.py @@ -15,7 +15,10 @@ class HostedDocLinksTest(unittest.TestCase): def test_every_served_document_has_its_current_exact_link(self): manifest = LINKS.transform(ROOT) self.assertTrue(manifest['pages']) - self.assertTrue(all(row['already_current'] for row in manifest['pages'])) + pending = [row['source'] for row in manifest['pages'] if not row['already_current']] + self.assertEqual(pending, [], + 'Missing or stale hosted links: ' + ', '.join(pending) + + '; run scripts/update_hosted_doc_links.py --apply') routes = {row['source']: row['url'] for row in manifest['pages']} self.assertEqual(routes['index.md'], LINKS.HOSTED_BASE) self.assertEqual(routes['research/index.md'], LINKS.HOSTED_BASE + 'research/')