From 5e1789fe16b22f1ecc74b88a4bb89fb28c985ebd Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Wed, 7 Oct 2026 01:50:00 +0800 Subject: [PATCH] chore: remove non-content copy from published pages Drop the English eyebrow labels, localize the report date label, and trim the home and archive intro copy. Research content, disclaimers, URLs and RSS are unchanged. Co-Authored-By: Claude Opus 5.5 --- src/quant_advisor_research/publisher.py | 9 ++++----- tests/test_publisher.py | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/quant_advisor_research/publisher.py b/src/quant_advisor_research/publisher.py index e497979..60d0574 100644 --- a/src/quant_advisor_research/publisher.py +++ b/src/quant_advisor_research/publisher.py @@ -954,12 +954,11 @@ def render_report_html(report: dict[str, Any]) -> str:
-

Advisory briefing

{html.escape(display_title)}

{html.escape(render_report_lead(report))}

@@ -1039,7 +1038,7 @@ def render_index_html(reports: list[dict[str, Any]], *, now: dt.datetime | None latest_block = f"""
-

{"已过期报告" if is_report_expired(latest, now=reference_now) else "Latest advisory"}

+ {'

已过期报告

' if is_report_expired(latest, now=reference_now) else ""}

{html.escape(latest['as_of'])} {html.escape(cadence_label(latest))}智慧投顾研究{"(已过期)" if is_report_expired(latest, now=reference_now) else ""}

{"该报告已过期,不再作为当前公开推荐。" if is_report_expired(latest, now=reference_now) else "结合主题动量、市场确认和事件证据,生成普通投资者更容易阅读的研究结论。"}

主要信号{html.escape(top_themes or '无')}
@@ -1093,7 +1092,7 @@ def render_index_html(reports: list[dict[str, Any]], *, now: dt.datetime | None

智慧投顾研究系统

-

把主题动量、市场确认和政策/新闻证据整理成普通投资者能读懂的研究结论。页面只展示推荐、周期、背景、理由和风险。投资有风险,不构成投资建议。

+

把主题动量、市场确认和政策/新闻证据整理成普通投资者能读懂的研究结论。投资有风险,不构成投资建议。

{latest_block} @@ -1172,7 +1171,7 @@ def render_archive_html(reports: list[dict[str, Any]]) -> str:

历史归档

-

报告文件长期保留,便于复盘系统结论、观察风格漂移和检查不同阶段的主题变化。首页只展示最新和近期记录,这里按月份列出全部报告。

+

按月份列出全部历史报告。

{archive} diff --git a/tests/test_publisher.py b/tests/test_publisher.py index b598777..9a4e9c9 100644 --- a/tests/test_publisher.py +++ b/tests/test_publisher.py @@ -46,7 +46,7 @@ def test_render_report_html_is_direct_public_recommendation_page() -> None: assert "Songti SC" in html assert "返回首页" in html assert "RSS 订阅" in html - assert "Report date" in html + assert 'date-label">报告日期' in html assert 'rel="icon" type="image/svg+xml" href="favicon.svg"' in html assert "site-mark" in html assert "2-12周" in html @@ -113,7 +113,7 @@ def test_publish_reports_writes_site_files(tmp_path: Path) -> None: assert "site-mark" in index_html assert "