feat: add news ticker with sentiment analysis and error codes to dwn.h and news.h headers
- Add DwnStatus enum with six error codes (OK, ERROR, INVALID_ARG, NO_MEMORY, NOT_FOUND, DISPLAY, IO) to include/dwn.h - Extend NewsArticle struct with NewsSentiment enum (NEUTRAL, POSITIVE, NEGATIVE) and sentiment_score float field in include/news.h - Insert DWN_ASSERT and DWN_ASSERT_MSG contract assertion macros plus assert.h include into include/util.h
This commit is contained in:
+23
-8
@@ -28,7 +28,7 @@
|
||||
<a href="architecture.html">Architecture</a>
|
||||
</div>
|
||||
</li>
|
||||
<li><a href="https://github.com/dwn/dwn">GitHub</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn">Git</a></li>
|
||||
</ul>
|
||||
<div class="nav-toggle" onclick="toggleNav()">
|
||||
<span></span>
|
||||
@@ -160,12 +160,27 @@
|
||||
<p>Optional bottom panel for additional information:</p>
|
||||
<ul style="margin-top: 1rem; padding-left: 1.25rem; color: var(--text-muted);">
|
||||
<li><strong>Clock Display</strong> - Time and date</li>
|
||||
<li><strong>Status Messages</strong> - System notifications</li>
|
||||
<li><strong>News Ticker</strong> - Scrolling news feed with navigation</li>
|
||||
<li><strong>Customizable</strong> - Can be hidden in config</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="margin-top: 3rem; margin-bottom: 1.5rem;">News Ticker</h3>
|
||||
<div class="card">
|
||||
<p>The bottom panel includes a scrolling news ticker that displays headlines from a news feed.
|
||||
Navigate through articles using keyboard shortcuts:</p>
|
||||
<ul style="margin-top: 1rem; padding-left: 1.25rem; color: var(--text-muted);">
|
||||
<li><kbd>Super</kbd> + <kbd>Down</kbd> - Next article</li>
|
||||
<li><kbd>Super</kbd> + <kbd>Up</kbd> - Previous article</li>
|
||||
<li><kbd>Super</kbd> + <kbd>Return</kbd> - Open in browser</li>
|
||||
</ul>
|
||||
<p style="margin-top: 1rem; color: var(--text-muted);">
|
||||
The ticker updates automatically and caches up to 50 articles. Smooth scrolling animation
|
||||
at 80 pixels per second keeps you informed without distraction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h3 style="margin-top: 3rem; margin-bottom: 1.5rem;">System Tray Features</h3>
|
||||
<div class="features-grid">
|
||||
<div class="card">
|
||||
@@ -387,21 +402,21 @@
|
||||
<li><a href="features.html">Features</a></li>
|
||||
<li><a href="installation.html">Installation</a></li>
|
||||
<li><a href="ai-features.html">AI Integration</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn">GitHub</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn">Git</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-section">
|
||||
<h4>Community</h4>
|
||||
<ul>
|
||||
<li><a href="https://github.com/dwn/dwn/issues">Issue Tracker</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/discussions">Discussions</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/blob/main/CONTRIBUTING.md">Contributing</a></li>
|
||||
<li><a href="https://github.com/dwn/dwn/blob/main/LICENSE">License (MIT)</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/issues">Issue Tracker</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/discussions">Discussions</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/blob/main/CONTRIBUTING.md">Contributing</a></li>
|
||||
<li><a href="https://retoor.molodetz.nl/retoor/dwn/blob/main/LICENSE">License (MIT)</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-bottom">
|
||||
<p>DWN Window Manager - Open Source under the MIT License</p>
|
||||
<p>DWN Window Manager by retoor <retoor@molodetz.nl> - MIT License</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user