Define a naming style for prompt block titles

未关闭 适合新手
#3,185 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
documentation

调研方向

从 standards/page-structure.md 中的“Prompt examples”部分开始,并按照建议的搜索命令 grep -rn 'prompt title=".* prompt"' sources 查找需要重命名的标题。添加所提议的标题样式规则,并更新匹配的标题;当指南已记录且现有标题遵循该规则时,工作即告完成。

由索引模型根据 Issue 内容生成。

描述

t-docs

Prompt block titles (```prompt title="…") follow two styles:

  • All 14 Academy titles end in "prompt", for example "Draft user README prompt", "Recommend pricing prompt", "Change input URL prompt" and "Log items prompt" (in sources/academy/webscraping/scraping_with_ai/). apify/apify-docs#3164 adds 4 more.
  • Platform titles don't, for example "Find a Google Maps Actor" and "Run a saved task".

The card already has a Copy prompt button, so the suffix repeats what the card shows. The "Prompt examples" section in standards/page-structure.md, added in apify/apify-docs#3164, says to set a title but not how to write one.

Proposal:

  1. Add a rule to standards/page-structure.md#prompt-examples, for example: "Write the title as a short imperative phrase in sentence case that says what the prompt does. Don't end it with 'prompt'."
  2. Rename the existing titles that end in "prompt" (grep -rn 'prompt title=".* prompt"' sources).
主要语言
JavaScript
星标
82
派生
240
平均合并
3 天 10 小时
30 天内合并 PR
71

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apify/apify-docs 的其他 Issue

查看 apify/apify-docs 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。