mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-26 07:54:12 +00:00
Fix hosted links for new power-saving documentation
This commit is contained in:
1 parent
e66473a86c
commit
264fc2bccb
3 files changed
+12
-1
No files matched your search
@@ -1,3 +1,7 @@
|
||||
<!-- meshcore-hosted-doc-link:start -->
|
||||
<p class="meshcore-hosted-doc-link"><a href="https://mikecarper.github.io/MeshCore/nrf52_sleep_event_validation/">View this page on MeshCore Docs</a>.</p>
|
||||
<!-- meshcore-hosted-doc-link:end -->
|
||||
|
||||
# nRF52 idle-sleep regression
|
||||
|
||||
## Cause
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<!-- meshcore-hosted-doc-link:start -->
|
||||
<p class="meshcore-hosted-doc-link"><a href="https://mikecarper.github.io/MeshCore/power_saving_diagnostics/">View this page on MeshCore Docs</a>.</p>
|
||||
<!-- meshcore-hosted-doc-link:end -->
|
||||
|
||||
# Power-saving diagnostics
|
||||
|
||||
Use `set powersaving.diag on` to collect the real sleep-policy decisions in
|
||||
|
||||
@@ -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/')
|
||||
|
||||
Reference in new issue
Block a user