From 7a8163efa147acd5244570ea5737e87550b3e076 Mon Sep 17 00:00:00 2001 From: duoluoxiaosheng <554765662@qq.com> Date: Tue, 20 Dec 2022 08:52:28 +0800 Subject: [PATCH] Translate20221216 (#7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 12191625 * Update and rename sources/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md to translated/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md --- ...️ Improve your documentation with JavaScript.md | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) rename {sources => translated}/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md (51%) diff --git a/sources/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md b/translated/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md similarity index 51% rename from sources/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md rename to translated/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md index 04434f2ebe..66c50a8515 100644 --- a/sources/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md +++ b/translated/tech/20221215.2 ⭐️⭐️ Improve your documentation with JavaScript.md @@ -7,32 +7,33 @@ [#]: publisher: " " [#]: url: " " -Improve your documentation with JavaScript + +使用 JavaScript 增强您的文档 ====== -Open source software projects often have a very diverse user group. Some users might be very adept at using the system and need very little documentation. For these power users, documentation might only need to be reminders and hints, and can include more technical information such as commands to run at the shell. But other users may be beginners. These users need more help in setting up the system and learning how to use it. +开源软件项目通常拥有非常多样化的用户人群。有些用户非常擅长使用该系统,并且只需要很少的文档。对于这些实力派的用户。文档只需要提供必要的提示,并且可以包含更多的技术信息,比如说在 shell 中运行的命令行。有些用户可能只是初学者。这些用户需要更多的帮助来设置系统并学习如何使用它。 -Writing documentation that suits both user groups can be daunting. The website's documentation needs to somehow balance "detailed technical information" with "providing more overview and guidance." This is a difficult balance to find. If your documentation can't meet both user groups, consider a third option — dynamic documentation. +写一个同时适合这两个用户群体的文档是令人生畏的。网站文档需要在 “提供详细的技术信息” 和 “提供更多的概述和指导” 之间寻求一个平衡。这是一个很难找到的平衡。如果你的文档不能同时满足这两个用户人群,那么考虑一下另外一个选择 —— 动态文档。 -Explore how to add a little [JavaScript][1] to a web page so the user can choose to display just the information they want to see. +探索在网页中添加一点 [JavaScript][1] 使用户可以选择自己想看的内容。 -### Structure your content +### 构建您的内容 -You can use the example where documentation needs to suit both expert and novice users. In the simplest case, you can use a made-up music player called AwesomeProject. +你可以把例程添加的你的文档中需要同时满足 专家 和 初学者 的地方。在这个例程中,你可以使用一个叫做 AwesmeProject 的虚构的音乐播放器。 -You can write a short installation document in HTML that provides instructions for both experts and novices by using the class feature in HTML. For example, you can define a paragraph intended for experts by using: +你可以用 HTML 编写一个简短的安装文档,通过 HTML 的 类 功能同时为专家和初学者提供操作指南。例如,你可以用下面的代码来为专家定义一个段落: ```
``` -This assigns both the expert class and the reader class. You can create a parallel set of instructions for novices using: +这就同时指派了专家类 和读者类。 你可以用下面的代码来为初学者创建一个相同的段落。 ```
``` -The complete HTML file includes both paragraphs for novice readers and experts: +完整的 HTML 文件同时包含初学者的段落和专家的段落。 ``` @@ -65,11 +66,11 @@ most Linux distributions. Check your graphical package manager and search for Aw