Skip to content

feat(linux-do): split topic content into a dedicated command#821

Merged
jackwener merged 5 commits intojackwener:mainfrom
tiaot33:feature/linux-do-topic-content-with-md
Apr 5, 2026
Merged

feat(linux-do): split topic content into a dedicated command#821
jackwener merged 5 commits intojackwener:mainfrom
tiaot33:feature/linux-do-topic-content-with-md

Conversation

@tiaot33
Copy link
Copy Markdown
Contributor

@tiaot33 tiaot33 commented Apr 5, 2026

Description

基于新增的plain输出格式,将 linux-do topic 拆分为两个更清晰的职责:

  • 保留 linux-do topic 作为摘要式的首页主题阅读器,超过200字符会截断
  • 新增 linux-do topic-content <id> 用于输出完整的主帖 Markdown 内容
  • 更新文档、命令列表以及鉴权失败的覆盖说明,以匹配新的拆分方式

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

image

tiaot33 and others added 5 commits April 5, 2026 23:23
Move the old main-post path out of linux-do topic so topic stays a summarized first-page reader while topic-content becomes the Markdown-focused entrypoint for full post bodies.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…ic-content

Adapters must only import node builtins, relative modules, or opencli
public APIs. Hand-roll the simple front matter serialization to remove
the third-party js-yaml dependency.
…space

Colons in URLs (e.g. https://) are valid unquoted YAML values. Only
quote when a colon is followed by a space or appears at end of line.
@jackwener jackwener merged commit 5553300 into jackwener:main Apr 5, 2026
13 checks passed
@jackwener jackwener mentioned this pull request Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants