<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>文档贡献指南 on Dapr 文档库</title><link>https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/</link><description>Recent content in 文档贡献指南 on Dapr 文档库</description><generator>Hugo</generator><language>zh-hans</language><atom:link href="https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/index.xml" rel="self" type="application/rss+xml"/><item><title>贡献者指南</title><link>https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/contributing-docs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/contributing-docs/</guid><description>&lt;p>在本指南中，您将学习如何为 &lt;a href="https://github.com/dapr/docs">Dapr 文档库&lt;/a> 做出贡献。由于 Dapr 文档发布在 &lt;a href="https://docs.dapr.io">docs.dapr.io&lt;/a>，您需要确保您的贡献能够正确编译和发布。&lt;/p>
&lt;iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/uPYuXcaEs-c" title="YouTube 视频播放器" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>&lt;/iframe>
&lt;h2 id="先决条件">先决条件&lt;/h2>
&lt;p>在为 Dapr 文档做贡献之前：&lt;/p>
&lt;ul>
&lt;li>查看 &lt;a href="https://v1-18.docs.dapr.io/zh-hans/contributing/contributing-overview/">关于 Dapr 项目贡献的一般指导&lt;/a>。&lt;/li>
&lt;li>使用 &lt;a href="https://gohugo.io/">Hugo&lt;/a> 和 &lt;a href="https://docsy.dev">Docsy&lt;/a> 主题安装并设置您的本地环境。请按照库中的 &lt;a href="https://github.com/dapr/docs/blob/master/README.md#environment-setup">README.md&lt;/a> 中的说明进行操作。&lt;/li>
&lt;li>分叉并克隆 &lt;a href="https://github.com/dapr/docs">文档库&lt;/a>。&lt;/li>
&lt;/ul>
&lt;h2 id="分支指导">分支指导&lt;/h2>
&lt;p>Dapr 文档的分支管理与大多数代码库不同。没有主分支，每个分支都与运行时发布的主要和次要版本相匹配。完整列表请访问 &lt;a href="https://github.com/dapr/docs#branch-guidance">Docs repo&lt;/a>。&lt;/p>
&lt;p>通常，您所有的文档更新都应提交到 &lt;a href="https://github.com/dapr/docs">Dapr 最新版本的文档分支&lt;/a>。最新版本是默认分支 [https://github.com/dapr/docs]。例如，如果您正在修复拼写错误、添加注释或澄清某个点，请将您的更改提交到默认的 Dapr 分支。&lt;/p>
&lt;p>对于适用于候选发布或预发布版本的文档更改，请将您的更改指向该特定分支。例如，如果您正在记录即将对组件或运行时的更改，请将您的更改提交到预发布分支。&lt;/p>
&lt;h2 id="风格和语气">风格和语气&lt;/h2>
&lt;p>在所有 Dapr 文档中应遵循风格和语气惯例，以确保所有文档的一致性：&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>风格/语气&lt;/th>
 &lt;th>指导&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>大小写&lt;/td>
 &lt;td>仅在以下情况下使用大写：&lt;br> &lt;ul>&lt;li>句子或标题的开头&lt;/li>&lt;li>专有名词，包括技术名称（Dapr、Redis、Kubernetes 等）&lt;/li>&lt;/ul>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>标题和标题&lt;/td>
 &lt;td>标题和标题必须简洁，但描述性和清晰。&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>使用简单句子&lt;/td>
 &lt;td>写出易于阅读、可扫描的句子。提示：跳过正式语气，像直接与读者交谈一样写作。&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>避免使用第一人称&lt;/td>
 &lt;td>代替第一人称 &amp;ldquo;I&amp;rdquo;、&amp;ldquo;we&amp;rdquo; 和 &amp;ldquo;our&amp;rdquo;，使用第二人称 &amp;ldquo;you&amp;rdquo; 和 &amp;ldquo;your&amp;rdquo;。&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>假设 &amp;ldquo;新开发者&amp;rdquo; 受众&lt;/td>
 &lt;td>对于经验丰富的开发者来说一些看似显而易见的步骤可能对新开发者并不那么明显。为读者提供更明确、详尽的说明。&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>使用现在时&lt;/td>
 &lt;td>避免使用诸如 &amp;ldquo;this command &lt;em>will&lt;/em> install Redis&amp;rdquo; 的句子。相反，使用 &amp;ldquo;This command installs Redis&amp;rdquo;。&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="图表和图像">图表和图像&lt;/h2>
&lt;p>图表和图像是文档页面中无价的视觉辅助工具。使用 &lt;a href="https://github.com/dapr/docs/tree/v1.14/daprdocs/static/presentations">Dapr 图表模板套件&lt;/a> 中的图表样式和图标。&lt;/p></description></item><item><title>维护者指南</title><link>https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/maintainer-guide/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/maintainer-guide/</guid><description>&lt;p>在本指南中，您将学习如何履行 Dapr 文档维护者和审批者的日常职责。要成功完成这些任务，您需要在 &lt;a href="https://github.com/dapr/docs">&lt;code>dapr/docs&lt;/code>&lt;/a> 仓库中拥有审批者或维护者的权限。&lt;/p>
&lt;p>如果您想了解如何为 Dapr 文档做出贡献，请查看 &lt;a href="https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/contributing-docs/">贡献者指南&lt;/a>。&lt;/p>
&lt;h2 id="分支管理指南">分支管理指南&lt;/h2>
&lt;p>Dapr 文档的分支管理与大多数代码仓库不同。没有 &lt;code>main&lt;/code> 分支，每个分支都与运行时发布的主要和次要版本相对应。&lt;/p>
&lt;p>完整的分支列表请访问 &lt;a href="https://github.com/dapr/docs#branch-guidance">文档仓库&lt;/a>。&lt;/p>
&lt;p>阅读 &lt;a href="https://v1-18.docs.dapr.io/zh-hans/contributing/docs-contrib/contributing-docs/#branch-guidance">贡献者指南&lt;/a> 以获取有关发布分支的更多信息。&lt;/p>
&lt;h2 id="从当前发布分支合并到预发布分支">从当前发布分支合并到预发布分支&lt;/h2>
&lt;p>作为文档审批者或维护者，您需要定期进行合并操作，以确保预发布分支与当前发布分支保持同步。建议每周将当前分支的更新合并到预发布分支。&lt;/p>
&lt;p>以下步骤中，将 &lt;code>v1.0&lt;/code> 视为当前发布版本，将 &lt;code>v1.1&lt;/code> 视为即将发布版本。&lt;/p>
&lt;ol>
&lt;li>
&lt;p>在 Visual Studio Code 中打开 Dapr 文档仓库。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>在本地仓库中，切换到最新分支 (&lt;code>v1.0&lt;/code>) 并同步更改：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git pull upstream v1.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>git push origin v1.0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>切换到即将发布的分支 (&lt;code>v1.1&lt;/code>) 并同步更改：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git pull upstream v1.1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>git push origin v1.1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>基于即将发布的版本创建一个新分支：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git checkout -b upmerge_MM-DD
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>在终端中，从最新发布分支合并到新建的合并分支：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git merge --no-ff --no-commit v1.0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>在终端中，确保合并的文件准确无误。在 VS Code 中检查是否有合并冲突。删除不需要合并的配置更改或版本信息。&lt;/p></description></item></channel></rss>