mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-08-18 03:46:27 +00:00
release: v2.8.0 — geo inference, last-updated badge, search boost, RSS feed, weekly cron
This commit is contained in:
@@ -93,6 +93,7 @@ jobs:
|
||||
GEMINI_API_KEY_2: ${{ secrets.GEMINI_API_KEY_2 }}
|
||||
run: |
|
||||
python -u -m src.news_digest || echo "News digest generation skipped (no API key or error)"
|
||||
python -u -m src.rss_generator || echo "RSS generation skipped"
|
||||
|
||||
- name: Run V2 Publisher (Render-Only)
|
||||
env:
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
name: 09. Weekly Intelligence Digest
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Every Monday at 06:00 UTC (08:00 Madrid time)
|
||||
- cron: '0 6 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: develop-git-write-lock
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
weekly-digest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Repository Synchronization
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: develop
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Python 3.11 Environment Provisioning
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: Generate News Digest (Gemini)
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
GEMINI_API_KEY_1: ${{ secrets.GEMINI_API_KEY_1 }}
|
||||
GEMINI_API_KEY_2: ${{ secrets.GEMINI_API_KEY_2 }}
|
||||
run: |
|
||||
python -u -m src.news_digest
|
||||
python -u -m src.rss_generator || echo "RSS generation skipped"
|
||||
|
||||
- name: Render V2 Portal (Digest Pages Only)
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
PYTHONUNBUFFERED: "1"
|
||||
run: |
|
||||
python -u -m src.v2_optimizer --render-only
|
||||
|
||||
- name: Commit and Push Weekly Digest
|
||||
run: |
|
||||
git config --global user.name "Nubenetes Bot"
|
||||
git config --global user.email "bot@nubenetes.com"
|
||||
git add data/news_digest.json v2-docs/tech-digest.md v2-docs/industry-digest.md v2-docs/feed.xml || true
|
||||
if git diff --staged --quiet; then
|
||||
echo "No digest changes to commit."
|
||||
else
|
||||
git commit -m "feat: weekly intelligence digest update [skip ci]"
|
||||
for i in {1..3}; do
|
||||
git pull origin develop --rebase && git push origin develop && break || sleep 10
|
||||
done
|
||||
fi
|
||||
|
||||
- name: Trigger V2 Publisher
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
event-type: weekly-digest-ready
|
||||
@@ -142,7 +142,7 @@ Additionally, as of May 2026, Nubenetes has reached the **Platinum Operational T
|
||||
| :--- | :--- |
|
||||
| **Total Technical Resources (Links)** | **18647+** |
|
||||
| **Specialized MD Pages** | **162** |
|
||||
| **Total Commits** | **6058+** |
|
||||
| **Total Commits** | **6068+** |
|
||||
| **Primary AI Engine** | **Google Gemini (Agentic)** |
|
||||
<!-- HEART_STATS_END -->
|
||||
|
||||
@@ -180,7 +180,7 @@ The growth of Nubenetes reflects the acceleration of the Cloud Native ecosystem.
|
||||
| 6 | 2023 | 30 | 123 | Maintenance & Refinement |
|
||||
| 7 | 2024 | 53 | 218 | Curation Strategy Pivot |
|
||||
| 8 | 2025 | 5 | 20 | Stability & Research Phase |
|
||||
| 9 | 2026 | 2499 | 10,320 | **Agentic AI Surge** (May 2026 Inception) |
|
||||
| 9 | 2026 | 2509 | 10,362 | **Agentic AI Surge** (May 2026 Inception) |
|
||||
<!-- ANNUAL_GROWTH_END -->
|
||||
|
||||
<!-- ANNUAL_CHART_START -->
|
||||
@@ -196,8 +196,8 @@ xychart-beta
|
||||
title "Nubenetes Annual Growth Metrics (2018–2026)"
|
||||
x-axis ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"]
|
||||
y-axis "Volume (Commits / Estimated New Refs)" 0 --> 11000
|
||||
bar [1445, 586, 8449, 2193, 1660, 123, 218, 20, 10320]
|
||||
bar [350, 142, 2046, 531, 402, 30, 53, 5, 2499]
|
||||
bar [1445, 586, 8449, 2193, 1660, 123, 218, 20, 10362]
|
||||
bar [350, 142, 2046, 531, 402, 30, 53, 5, 2509]
|
||||
```
|
||||
<!-- ANNUAL_CHART_END -->
|
||||
|
||||
@@ -207,7 +207,7 @@ xychart-beta
|
||||
| :--- | :---: | :---: | :--- |
|
||||
| 2026-04 | 25 | 103 | Active Curation |
|
||||
| 2026-05 | 2101 | 8,677 | **Agentic Inception (Gemini Era)** |
|
||||
| 2026-06 | 373 | 1,540 | Active Curation |
|
||||
| 2026-06 | 383 | 1,581 | Active Curation |
|
||||
<!-- MONTHLY_SURGE_END -->
|
||||
|
||||
### 2.4. Content Distribution and Semantic Clustering
|
||||
|
||||
Vendored
+12
@@ -1043,6 +1043,18 @@ input[type="text"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.trending-section__updated {
|
||||
font-size: 0.55em;
|
||||
font-weight: 500;
|
||||
padding: 2px 10px;
|
||||
border-radius: 20px;
|
||||
background: rgba(14, 165, 233, 0.12);
|
||||
color: var(--md-accent-fg-color);
|
||||
border: 1px solid rgba(14, 165, 233, 0.25);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.trending-grid {
|
||||
|
||||
+28
-1
@@ -182,11 +182,38 @@ class NewsDigestEngine:
|
||||
return None
|
||||
|
||||
def _get_entry_geo(self, entry: dict) -> str | None:
|
||||
"""Return the geo digest category if ``geo_region`` matches."""
|
||||
"""Return the geo digest category using geo_region field, falling back to URL TLD inference."""
|
||||
region = entry.get("geo_region", "")
|
||||
for geo_name, geo_val in self.GEO_CATEGORIES.items():
|
||||
if region == geo_val:
|
||||
return geo_name
|
||||
# Fallback: infer from URL TLD
|
||||
return self._infer_geo_from_url(entry.get("url", ""))
|
||||
|
||||
@staticmethod
|
||||
def _infer_geo_from_url(url: str) -> str | None:
|
||||
"""Infer geo category from URL TLD. Returns GEO_CATEGORIES key or None."""
|
||||
try:
|
||||
from urllib.parse import urlparse
|
||||
host = urlparse(url).hostname or ""
|
||||
# Ordered longest-first to avoid .uk matching before .co.uk
|
||||
tld_to_region = [
|
||||
(".com.au", "Asia-Pacific"), (".co.uk", "Europe"), (".co.jp", "Asia-Pacific"),
|
||||
(".co.kr", "Asia-Pacific"), (".com.br", "Americas"), (".com.mx", "Americas"),
|
||||
(".es", "España"), (".de", "Europe"), (".fr", "Europe"), (".it", "Europe"),
|
||||
(".pt", "Europe"), (".nl", "Europe"), (".be", "Europe"), (".se", "Europe"),
|
||||
(".dk", "Europe"), (".fi", "Europe"), (".no", "Europe"), (".ch", "Europe"),
|
||||
(".at", "Europe"), (".pl", "Europe"), (".cz", "Europe"), (".uk", "Europe"),
|
||||
(".ie", "Europe"), (".eu", "Europe"), (".cn", "Asia-Pacific"),
|
||||
(".jp", "Asia-Pacific"), (".kr", "Asia-Pacific"), (".sg", "Asia-Pacific"),
|
||||
(".in", "Asia-Pacific"), (".au", "Asia-Pacific"), (".nz", "Asia-Pacific"),
|
||||
(".ca", "Americas"), (".mx", "Americas"), (".br", "Americas"),
|
||||
]
|
||||
for tld, region in tld_to_region:
|
||||
if host.endswith(tld):
|
||||
return region
|
||||
except Exception:
|
||||
pass
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
"""RSS 2.0 feed generator for the Nubenetes Intelligence Digest.
|
||||
|
||||
Reads data/news_digest.json and writes v2-docs/feed.xml with the top
|
||||
items from the 3-month digest window across all tech categories.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
from datetime import datetime
|
||||
from email.utils import format_datetime
|
||||
from xml.sax.saxutils import escape
|
||||
|
||||
from src.logger import log_event
|
||||
|
||||
DIGEST_PATH = "data/news_digest.json"
|
||||
OUTPUT_PATH = "v2-docs/feed.xml"
|
||||
FEED_TITLE = "Nubenetes Intelligence Digest"
|
||||
FEED_LINK = "https://nubenetes.com/"
|
||||
FEED_DESCRIPTION = "AI-curated top picks from the Cloud Native & Kubernetes ecosystem"
|
||||
FEED_LANGUAGE = "en"
|
||||
ITEMS_PER_FEED = 20
|
||||
|
||||
TECH_CATS = [
|
||||
"Kubernetes & Orchestration", "AI & Agents", "Security & Compliance",
|
||||
"CI/CD & GitOps", "Observability, SRE & Testing", "Infrastructure as Code",
|
||||
"Containers & Runtime", "Networking & Service Mesh", "Cloud Providers & FinOps",
|
||||
"MLOps & Data Science", "Data, Messaging & Storage",
|
||||
]
|
||||
|
||||
|
||||
def _rfc822(dt: datetime) -> str:
|
||||
return format_datetime(dt)
|
||||
|
||||
|
||||
def generate_rss() -> None:
|
||||
if not os.path.exists(DIGEST_PATH):
|
||||
log_event("[WARN] rss_generator: news_digest.json not found, skipping RSS generation")
|
||||
return
|
||||
|
||||
try:
|
||||
with open(DIGEST_PATH, "r", encoding="utf-8") as f:
|
||||
digest = json.load(f)
|
||||
except Exception as e:
|
||||
log_event(f"[WARN] rss_generator: failed to load digest: {str(e)[:100]}")
|
||||
return
|
||||
|
||||
period_data = digest.get("3_months", {})
|
||||
items: list[dict] = []
|
||||
|
||||
for cat in TECH_CATS:
|
||||
for entry in period_data.get(cat, []):
|
||||
items.append({**entry, "_cat": cat})
|
||||
|
||||
# Sort by impact then date
|
||||
impact_rank = {"critical": 3, "high": 2, "medium": 1}
|
||||
items.sort(
|
||||
key=lambda x: (impact_rank.get(x.get("impact", "medium"), 0), x.get("date", "")),
|
||||
reverse=True,
|
||||
)
|
||||
items = items[:ITEMS_PER_FEED]
|
||||
|
||||
build_date = _rfc822(datetime.utcnow())
|
||||
|
||||
lines = [
|
||||
'<?xml version="1.0" encoding="UTF-8"?>',
|
||||
'<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">',
|
||||
" <channel>",
|
||||
f" <title>{escape(FEED_TITLE)}</title>",
|
||||
f" <link>{FEED_LINK}</link>",
|
||||
f" <description>{escape(FEED_DESCRIPTION)}</description>",
|
||||
f" <language>{FEED_LANGUAGE}</language>",
|
||||
f" <lastBuildDate>{build_date}</lastBuildDate>",
|
||||
f' <atom:link href="{FEED_LINK}feed.xml" rel="self" type="application/rss+xml"/>',
|
||||
]
|
||||
|
||||
for item in items:
|
||||
title = escape(item.get("title", "Unknown"))
|
||||
url = item.get("url", "#")
|
||||
why = escape(item.get("why", ""))
|
||||
cat = escape(item.get("_cat", ""))
|
||||
impact = item.get("impact", "medium")
|
||||
date_str = item.get("date", "")
|
||||
try:
|
||||
pub_date = _rfc822(datetime.strptime(date_str, "%Y-%m-%d")) if date_str else build_date
|
||||
except Exception:
|
||||
pub_date = build_date
|
||||
|
||||
lines += [
|
||||
" <item>",
|
||||
f" <title>{title}</title>",
|
||||
f" <link>{url}</link>",
|
||||
f" <guid isPermaLink=\"true\">{url}</guid>",
|
||||
f" <pubDate>{pub_date}</pubDate>",
|
||||
f" <category>{cat}</category>",
|
||||
f" <description>[{impact.upper()}] {why}</description>",
|
||||
" </item>",
|
||||
]
|
||||
|
||||
lines += [" </channel>", "</rss>"]
|
||||
|
||||
os.makedirs(os.path.dirname(OUTPUT_PATH), exist_ok=True)
|
||||
with open(OUTPUT_PATH, "w", encoding="utf-8") as f:
|
||||
f.write("\n".join(lines) + "\n")
|
||||
|
||||
log_event(f"[INFO] rss_generator: wrote {len(items)} items to {OUTPUT_PATH}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
generate_rss()
|
||||
+13
-5
@@ -953,8 +953,9 @@ class V2VisionEngine:
|
||||
geo_cats = ["Americas", "Europe", "España", "Asia-Pacific"]
|
||||
period_labels = {"3_months": "Last 3 Months", "6_months": "Last 6 Months", "12_months": "Last 12 Months"}
|
||||
|
||||
def render_digest_page(title, categories, digest_data):
|
||||
md = f"# {title}\n\n"
|
||||
def render_digest_page(title, categories, digest_data, search_boost=1):
|
||||
md = f"---\nsearch:\n boost: {search_boost}\n---\n\n"
|
||||
md += f"# {title}\n\n"
|
||||
md += "!!! tip \"Nubenetes Intelligence Digest\"\n"
|
||||
md += " AI-curated ranking of the most impactful resources, updated monthly.\n\n"
|
||||
for period_key, period_label in period_labels.items():
|
||||
@@ -976,11 +977,11 @@ class V2VisionEngine:
|
||||
md += "\n"
|
||||
return md
|
||||
|
||||
tech_md = render_digest_page("📊 Nubenetes Tech & Cloud Intelligence Digest", tech_cats, digest_data)
|
||||
tech_md = render_digest_page("📊 Nubenetes Tech & Cloud Intelligence Digest", tech_cats, digest_data, search_boost=2)
|
||||
with open(os.path.join(V2_DIR, "tech-digest.md"), "w", encoding="utf-8") as f:
|
||||
f.write(tech_md)
|
||||
|
||||
industry_md = render_digest_page("🌍 Nubenetes Industry & Geo Intelligence Digest", geo_cats, digest_data)
|
||||
industry_md = render_digest_page("🌍 Nubenetes Industry & Geo Intelligence Digest", geo_cats, digest_data, search_boost=2)
|
||||
with open(os.path.join(V2_DIR, "industry-digest.md"), "w", encoding="utf-8") as f:
|
||||
f.write(industry_md)
|
||||
|
||||
@@ -1006,7 +1007,14 @@ class V2VisionEngine:
|
||||
top_items = top_items[:6]
|
||||
|
||||
impact_icons = {"critical": "🔴", "high": "🟡", "medium": "🔵"}
|
||||
cards_html = '<div class="trending-section">\n<div class="trending-section__title">🔥 Trending Now — Cloud Native Intelligence</div>\n<div class="trending-grid">\n'
|
||||
try:
|
||||
digest_mtime = os.path.getmtime(digest_path)
|
||||
from datetime import datetime as _dt
|
||||
digest_updated = _dt.fromtimestamp(digest_mtime).strftime("%b %d, %Y")
|
||||
except Exception:
|
||||
digest_updated = ""
|
||||
updated_badge = f'<span class="trending-section__updated">Updated {digest_updated}</span>' if digest_updated else ""
|
||||
cards_html = f'<div class="trending-section">\n<div class="trending-section__title">🔥 Trending Now — Cloud Native Intelligence {updated_badge}</div>\n<div class="trending-grid">\n'
|
||||
for item in top_items:
|
||||
impact = item.get("impact", "medium")
|
||||
cards_html += (
|
||||
|
||||
+4
-1
@@ -96,10 +96,13 @@ extra:
|
||||
version:
|
||||
provider: mike # Ready for version switching
|
||||
|
||||
extra_head:
|
||||
- '<link rel="alternate" type="application/rss+xml" title="Nubenetes Intelligence Digest" href="/feed.xml"/>'
|
||||
|
||||
extra_css:
|
||||
- https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap
|
||||
- static/extra.css
|
||||
- static/v2_elite.css?v=2.4.0
|
||||
- static/v2_elite.css?v=2.7.0
|
||||
|
||||
extra_javascript:
|
||||
- static/v2_filter.js
|
||||
|
||||
Reference in New Issue
Block a user