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
12 changes: 6 additions & 6 deletions profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ An ecosystem for building event-driven networked programs in C++ and running MQT
- **Install signed packages:** [Packages](https://github.com/SNodeC/Packages) · snode.c · mqttsuite

<p>
<a href="#framework" title="Framework"><img src="media/menu/framework-108.svg" alt="Framework" width="108" height="24"></a>
<a href="#suites" title="Suites"><img src="media/menu/suites-108.svg" alt="Suites" width="108" height="24"></a>
<a href="#applications" title="Applications"><img src="media/menu/applications-108.svg" alt="Applications" width="108" height="24"></a>
<a href="#learn" title="Learn"><img src="media/menu/learn-108.svg" alt="Learn" width="108" height="24"></a>
<a href="#community-projects" title="Community projects"><img src="media/menu/community-108.svg" alt="Community projects" width="108" height="24"></a>
<a href="#distribution--infrastructure" title="Distribution &amp; infrastructure"><img src="media/menu/infrastructure-108.svg" alt="Distribution &amp; infrastructure" width="108" height="24"></a>
<a href="#framework" title="Framework"><img src="media/menu/framework-108.svg" alt="Framework" width="133" height="28"></a>
<a href="#suites" title="Suites"><img src="media/menu/suites-108.svg" alt="Suites" width="133" height="28"></a>
<a href="#applications" title="Applications"><img src="media/menu/applications-108.svg" alt="Applications" width="133" height="28"></a>
<a href="#learn" title="Learn"><img src="media/menu/learn-108.svg" alt="Learn" width="133" height="28"></a>
<a href="#community-projects" title="Community projects"><img src="media/menu/community-108.svg" alt="Community projects" width="133" height="28"></a>
<a href="#distribution--infrastructure" title="Distribution &amp; infrastructure"><img src="media/menu/infrastructure-108.svg" alt="Distribution &amp; infrastructure" width="133" height="28"></a>
</p>

## Framework
Expand Down
6 changes: 3 additions & 3 deletions profile/media/menu/applications-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions profile/media/menu/community-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions profile/media/menu/framework-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions profile/media/menu/infrastructure-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions profile/media/menu/learn-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions profile/media/menu/suites-108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_area_order_and_navigation(self):
self.assertIn('alt="SNode.C mark"', self.profile)
import xml.etree.ElementTree as ET
menu = re.search(r"<p>\n(.*?)\n</p>", self.profile, re.S).group(1)
buttons = re.findall(r'<a href="#([^"]+)" title="([^"]+)"><img src="([^"]+)" alt="([^"]+)" width="108" height="24"></a>', menu)
buttons = re.findall(r'<a href="#([^"]+)" title="([^"]+)"><img src="([^"]+)" alt="([^"]+)" width="133" height="28"></a>', menu)
self.assertEqual(len(buttons), len(AREAS) - 1)
self.assertNotIn("<details>", menu)
self.assertNotIn("[Framework](#framework)", self.profile)
Expand All @@ -118,14 +118,14 @@ def test_area_order_and_navigation(self):
self.assertEqual(alt, label)
self.assertEqual(asset, f"media/menu/{area}-108.svg")
svg = ET.parse(ROOT / "profile" / asset).getroot()
self.assertEqual(svg.attrib["viewBox"], "0 0 108 24")
self.assertEqual(svg.attrib["viewBox"], "0 0 133 28")
self.assertEqual(svg.find("svg:title", ns).text, area.capitalize())
rect, text = svg.find("svg:rect", ns), svg.find("svg:text", ns)
self.assertEqual(text.text, area.capitalize())
self.assertEqual(rect.attrib["fill"], "#203440")
self.assertEqual(rect.attrib["stroke"], "#395260")
self.assertEqual(text.attrib["fill"], "#ffffff")
self.assertEqual(text.attrib["font-size"], "13")
self.assertEqual(text.attrib["font-size"], "16")
self.assertEqual(text.attrib["font-weight"], "600")
self.assertGreaterEqual(contrast(text.attrib["fill"], rect.attrib["fill"]), 4.5)
self.assertNotRegex(self.profile, r"\b\d+ (?:projects|repositories)\b")
Expand Down
2 changes: 1 addition & 1 deletion tools/snodec_sync/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def render_profile(catalog, metadata):
f"- **Run MQTT infrastructure:** [MQTTSuite]({repo_url('mqttsuite', metadata.get('mqttsuite', {}).get('readme_anchor', ''))})",
f"- **Learn:** [Book companion]({repo_url('SNode.C-Book-Companion')}) and [examples](#learn)",
"- **Install signed packages:** " + " · ".join([f"[Packages]({repo_url('Packages')})", *(text(entry["name"]) for entry in catalog if entry.get("packaged") and entry["status"] == "active")]),
"\n<p>\n" + "\n".join(f'<a href="#{title.lower().replace(" & ", "--").replace(" ", "-")}" title="{html.escape(title)}"><img src="media/menu/{area}-108.svg" alt="{html.escape(title)}" width="108" height="24"></a>' for area, title in AREAS.items() if area != "forks") + "\n</p>\n",
"\n<p>\n" + "\n".join(f'<a href="#{title.lower().replace(" & ", "--").replace(" ", "-")}" title="{html.escape(title)}"><img src="media/menu/{area}-108.svg" alt="{html.escape(title)}" width="133" height="28"></a>' for area, title in AREAS.items() if area != "forks") + "\n</p>\n",
]

def table(entries, forks=False):
Expand Down
Loading