Loading...
Loading...
Compare original and translation side by side
@cloudcannon/editable-regions@cloudcannon/editable-regions_inputscloudcannon-configurationcloudcannon-snippets*.bookshop.yml@bookshop/*_bookshop_namecloudcannon-bookshopurl_inputscloudcannon-configurationcloudcannon-snippets*.bookshop.yml@bookshop/*_bookshop_namecloudcannon-bookshopurl| Doc | When to read |
|---|---|
| editable-regions.md | Start here. Region types, the attribute reference, custom-element equivalents |
| visual-editing.md | Section census, completeness checklist, pre-handoff sweep — every SSG |
| visual-editing-reference.md | On demand. Data-prop paths, arrays, page builders, components, source editables |
| editable-regions-internals.md | The Visual Editor JavaScript API; lifecycle traces and quirks when debugging |
| troubleshooting.md | Symptom → fix, when regions do not appear, update, or write where expected |
overview.md| SSG | Doc | Purpose |
|---|---|---|
| Astro | astro/overview.md | Start here for Astro — reading order and what each file covers |
| Astro | astro/visual-editing.md | Setup workflow, infrastructure checklist, Astro checklist items |
| Astro | astro/visual-editing-reference.md | Astro's deltas from the generic pattern reference (read on demand) |
| Astro | astro/troubleshooting.md | Astro-specific symptom → fix |
| Hugo | hugo/overview.md | Start here for Hugo — reading order and what each file covers |
| Hugo | hugo/visual-editing.md | Module setup, infrastructure checklist, Hugo checklist items, local checks |
| Hugo | hugo/visual-editing-reference.md | Hugo's deltas: partials-only re-render, |
| Hugo | hugo/troubleshooting.md | Hugo-specific symptom → fix |
| Eleventy | eleventy/overview.md | Start here for Eleventy — Liquid or Nunjucks path, reading order |
| Eleventy | eleventy/visual-editing.md | Plugin setup per path, infrastructure checklist, Eleventy checklist items, local checks |
| Eleventy | eleventy/visual-editing-reference.md | Eleventy's deltas: includes as components, the config in the browser, Nunjucks sites |
| Eleventy | eleventy/troubleshooting.md | Eleventy-specific symptom → fix |
| Script | Purpose |
|---|---|
| scripts/setup-editable-regions-astro.sh | Astro only. Installs package, wires Astro integration, creates |
| Skill | When to read |
|---|---|
| make-site-multilingual | The site is multilingual. Translation keys ( |
| cloudcannon-dev-server | The regions are written and the user needs to try them. Starts a local CloudCannon that rebuilds as they edit |
| 文档 | 何时阅读 |
|---|---|
| editable-regions.md | 从这里开始。Region 类型、属性参考、custom-element 等价用法 |
| visual-editing.md | 区块清点、完整性检查清单、交付前检查——适用于所有 SSG |
| visual-editing-reference.md | 按需阅读。Data-prop paths、arrays、page builders、components、source editables |
| editable-regions-internals.md | Visual Editor JavaScript API;调试时的 lifecycle traces 和 quirks |
| troubleshooting.md | 症状 → 修复方案,适用于 regions 未出现、未更新或未按预期写入的情况 |
overview.md| SSG | 文档 | 用途 |
|---|---|---|
| Astro | astro/overview.md | Astro 请从这里开始——阅读顺序及每个文件的内容 |
| Astro | astro/visual-editing.md | 设置工作流、基础设施检查清单、Astro 检查项 |
| Astro | astro/visual-editing-reference.md | Astro 相对于通用模式参考的差异(按需阅读) |
| Astro | astro/troubleshooting.md | Astro 专用症状 → 修复方案 |
| Hugo | hugo/overview.md | Hugo 请从这里开始——阅读顺序及每个文件的内容 |
| Hugo | hugo/visual-editing.md | Module 设置、基础设施检查清单、Hugo 检查项、本地检查 |
| Hugo | hugo/visual-editing-reference.md | Hugo 的差异:仅 partial 重渲染、 |
| Hugo | hugo/troubleshooting.md | Hugo 专用症状 → 修复方案 |
| Eleventy | eleventy/overview.md | Eleventy 请从这里开始——Liquid 或 Nunjucks 路径、阅读顺序 |
| Eleventy | eleventy/visual-editing.md | 按路径进行 Plugin 设置、基础设施检查清单、Eleventy 检查项、本地检查 |
| Eleventy | eleventy/visual-editing-reference.md | Eleventy 的差异:将 includes 作为 components、浏览器中的配置、Nunjucks sites |
| Eleventy | eleventy/troubleshooting.md | Eleventy 专用症状 → 修复方案 |
| Script | 用途 |
|---|---|
| scripts/setup-editable-regions-astro.sh | 仅适用于 Astro。 安装 package、接入 Astro integration、创建 |
| Skill | 何时阅读 |
|---|---|
| make-site-multilingual | 站点是多语言的。Translation keys( |
| cloudcannon-dev-server | Regions 已完成写入,用户需要试用。启动本地 CloudCannon,并在编辑时自动重新构建 |
| Region type | Use for | Key attributes |
|---|---|---|
| Inline rich text | |
| Image picker | |
| List CRUD | |
| Each list item | |
| Re-rendering sections | |
| Hardcoded text in templates | |
componenttextimagearray| Region 类型 | 用途 | 关键属性 |
|---|---|---|
| Inline rich text | |
| Image picker | |
| List CRUD | 容器上使用 |
| 每个列表项 | 每个子项上使用 |
| 重渲染区块 | |
| Templates 中的硬编码文本 | |
componenttextimagearrayvisual-editing.mdregisterComponentseditable-regionsregister-components.jsvisual-editing.mdregisterComponentseditable-regionsregister-components.jssidebar-onlysidebar-only| Excuse | Reality |
|---|---|
| "Text editables are enough for this page" | Check images, arrays, and components too. Text-only is a half-finished job. |
| "This component is too complex for editable regions" | If it renders data from a content collection, it should be editable. Simplify the component or wrap it in |
| "The footer/nav doesn't need editables" | Shared partials need data-file-backed editables. Every visible section needs a treatment. |
| "Array items just need add/remove controls" | Without nested text/image editables on items, editors can't edit field values inline. |
| "I'll register components later" | Components the integration can't resolve can't re-render. Wire them as you go (Astro: register; Hugo: make it a partial; Eleventy: make it a Liquid include). |
| "Source editables aren't needed — this text rarely changes" | If it's visible, it should be editable -- but the mechanism depends on the page. Data file for shared UI; for page text, see visual-editing-reference.md § When to use source editables. |
| "I'll source-editable any hardcoded string on a page" | Page builder is the default; source editables are the exception, for one-off pages whose structure stays with the developer. If editors need to add, remove or reorder sections, use a page builder. See visual-editing-reference.md § When to use source editables. |
| 常见说法 | 实际情况 |
|---|---|
| “这个页面有 text editables 就足够了” | 还要检查 images、arrays 和 components。仅支持 text 的实现只完成了一半。 |
| “这个 component 对 editable regions 来说太复杂” | 如果它渲染 content collection 中的数据,就应当可编辑。请简化 component,或将其包装在 |
| “footer/nav 不需要 editables” | Shared partials 需要由 data file 支持的 editables。每个可见区块都需要相应的处理方式。 |
| “数组项只需要添加/删除 controls” | 如果数组项中没有嵌套的 text/image editables,编辑人员就无法内联编辑字段值。 |
| “我稍后会注册 components” | Integration 无法解析的 components 无法重新渲染。请在开发过程中同步接入(Astro:register;Hugo:制作为 partial;Eleventy:制作为 Liquid include)。 |
| “不需要 source editables——这些文本很少变化” | 只要内容可见,就应当可以编辑,但其_机制_取决于页面。对于共享 UI 使用 data file;对于页面文本,请参阅 visual-editing-reference.md § When to use source editables。 |
| “我会把页面上任何硬编码字符串都设为 source editable” | Page builder 是默认方案,source editables 仅用于结构始终由开发者维护的一次性页面。如果编辑人员需要添加、删除或重新排列区块,请使用 page builder。请参阅 visual-editing-reference.md § When to use source editables。 |