Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ def _page(snap: dict, title: str, body: str, js: str, depth: int = 0) -> str:
if owner and hasattr(t_, "board_links"):
footer = t_.boards_footer(t_.board_links(f"https://{owner}.github.io",
BOARD_KEY), BOARD_KEY)
return f"""<!doctype html>
return t_.section_layout(f"""<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{_esc(title)}</title>
Expand All @@ -1269,7 +1269,7 @@ def _page(snap: dict, title: str, body: str, js: str, depth: int = 0) -> str:
{_esc(snap.get('generated') or '?')}.</footer>
<script>{t_.JS}{js}</script>
</body></html>
"""
""")


def key_index(snap: dict) -> dict:
Expand Down
1 change: 1 addition & 0 deletions test_autonerves/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def make_tree(tmp_path):


FAKE_THEME = types.SimpleNamespace(
section_layout=lambda page, summaries=None: page,
orchestration_panel=lambda key, title, description, prompt, **kwargs: "<section data-orchestration-panel>" + prompt + "</section>",
prompt_heading=lambda key: '<h2 class="prompt-heading">Check your <strong>Nerves</strong> for config drift</h2>',
css=lambda key: "body{}",
Expand Down
Loading