Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to markdown for mozilla zh-CN #6922

Merged
merged 3 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions files/zh-cn/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1198,9 +1198,6 @@
/zh-CN/docs/Server-sent_events/EventSource/onerror /zh-CN/docs/Web/API/EventSource/error_event
/zh-CN/docs/Server-sent_events/EventSource/onopen /zh-CN/docs/Web/API/EventSource/open_event
/zh-CN/docs/Server-sent_events/Using_server-sent_events /zh-CN/docs/Web/API/Server-sent_events/Using_server-sent_events
/zh-CN/docs/Site_Compatibility_for_Firefox_19 /zh-CN/docs/Mozilla/Firefox/Releases/19/Site_compatibility
/zh-CN/docs/Site_Compatibility_for_Firefox_21 /zh-CN/docs/Mozilla/Firefox/Releases/21/Site_compatibility
/zh-CN/docs/Site_Compatibility_for_Firefox_24 /zh-CN/docs/Mozilla/Firefox/Releases/24/Site_compatibility
Comment on lines -1201 to -1203
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow mdn/content to remove those files

/zh-CN/docs/Tips_for_Authoring_Fast-loading_HTML_Pages /zh-CN/docs/Learn/HTML/Howto/Author_fast-loading_HTML_pages
/zh-CN/docs/Tools https://firefox-source-docs.mozilla.org/devtools-user/index.html
/zh-CN/docs/Tools-840092-dup/Remote_Debugging https://firefox-source-docs.mozilla.org/devtools-user/remote_debugging/index.html
Expand Down
42 changes: 0 additions & 42 deletions files/zh-cn/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -6353,13 +6353,6 @@
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/19/Site_compatibility": {
"modified": "2019-01-16T17:00:07.852Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/20": {
"modified": "2019-01-16T16:54:50.861Z",
"contributors": [
Expand All @@ -6376,13 +6369,6 @@
"ethertank"
]
},
"Mozilla/Firefox/Releases/21/Site_compatibility": {
"modified": "2019-01-16T17:20:04.063Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/22": {
"modified": "2019-01-16T17:05:04.663Z",
"contributors": [
Expand All @@ -6399,41 +6385,20 @@
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/24/Site_compatibility": {
"modified": "2019-01-16T17:27:30.001Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/25": {
"modified": "2019-01-16T17:41:39.671Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/25/Site_Compatibility": {
"modified": "2019-01-16T17:41:38.257Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/26": {
"modified": "2019-01-16T17:45:32.245Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/26/Site_Compatibility": {
"modified": "2019-01-16T17:48:36.057Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/27": {
"modified": "2019-01-16T17:56:24.955Z",
"contributors": [
Expand All @@ -6449,13 +6414,6 @@
"Zefling"
]
},
"Mozilla/Firefox/Releases/28/Site_Compatibility": {
"modified": "2019-01-16T18:02:00.053Z",
"contributors": [
"wbamberg",
"ziyunfei"
]
},
"Mozilla/Firefox/Releases/3": {
"modified": "2019-03-23T23:59:15.526Z",
"contributors": [
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/games/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ translation_of: Games
- [HTML5 Game Devs Forum](http://www.html5gamedevs.com/)
- : 开发者,架构师,发布者的论坛。提出问题,获得帮助,帮助他人。

<!---->

- [HTML5 游戏引擎](http://html5gameengine.com/)
- : 眼下最流行的 HTML5 游戏框架列表,包含评分,特色和案例。
- [JSBreakouts](http://www.jsbreakouts.org/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ original_slug: Games/Introduction_to_HTML5_Game_Gevelopment_(summary)
- [Typed Arrays](/en-US/docs/JavaScript/Typed_arrays)
- : 从 JavaScript 中访问原始二进制数据; 操纵 GL 纹理,游戏数据或其他任何东西。

<!---->

- [Web Audio API](/en-US/docs/Web_Audio_API)
- : 实时控制音频的播放,合成和操纵。
- [WebGL](/en-US/docs/WebGL)
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/glossary/cross_axis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ original_slug: Glossary/交叉轴
- CSS 弹性容器指南:_[Aligning items in a flex container](/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container)_
- CSS 弹性容器指南:_[Mastering wrapping of flex items](/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Mastering_Wrapping_of_Flex_Items)_

<!---->

- [MDN Web Docs Glossary](/zh-CN/docs/Glossary)

- {{Glossary("Cross Axis")}}
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/glossary/flexbox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ Flexbox 还可以对齐主轴或交叉轴上的项目,从而提供对一组项
- CSS Flexbox Guide: _[Mastering wrapping of flex items](/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Mastering_Wrapping_of_Flex_Items)_
- CSS Flexbox Guide: _[Typical use cases of flexbox](/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Typical_Use_Cases_of_Flexbox)_

<!---->

- [MDN Web Docs Glossary](/zh-CN/docs/Glossary)

- {{Glossary("Flex")}}
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/glossary/fork/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Fork 在自由和开源软件的开发中很常见。因为使用 Git 或 Github
- [Node.js and io.js (which have been merged together back)](https://nodejs.org/en/blog/announcements/foundation-v4-announce/)
- [LibreOffice, a fork of OpenOffice](https://www.libreoffice.org/about-us/who-are-we/)

<!---->

- 基本知识

- {{interwiki("wikipedia", "Fork_(software_development)","Fork")}} on Wikipedia
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/glossary/iife/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ result; // "Barry"

- {{interwiki("wikipedia", "Immediately-invoked function expression", "IIFE")}} 维基百科

<!---->

- [相关术语](/zh-CN/docs/Glossary)

- {{Glossary("Function")}}
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/glossary/statement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ translation_of: Glossary/Statement
### 技术参考

- [JavaScript statements and declarations](/zh-CN/docs/Web/JavaScript/Reference/Statements)

<!---->
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ original_slug: MDN/Contribute/Howto/如何添加或更新浏览器兼容性数
- 熟悉使用 Github
- 熟悉使用 JSON
- 了解有关、或有能力测试各种不同浏览器与网页标准及特性的兼容性

<!---->

- 哪些地方需要做?

- : 在 MDN 上你有这几种方法可以帮助改进浏览器兼容性方面的信息:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ MDN 将创建一个标题为“FooBar”的新页面并且打开编辑器让你
1. 确保您已经登陆 MDN,并且拥有创建新页面的权限。
2. 在您的浏览器中输入以下 URL 并回车。

<!---->

https://developer.mozilla.org/en-US/docs/new

此时,MDN 创建新页面时有一个地方专门用来填写标题,打开编辑器后您就可以添加内容到这个新页面。请参考本文中[编辑一个已存在的页面](/zh-CN/docs/MDN/Contribute/Howto/Create_and_edit_pages$edit#Editing_an_existing_page)的小节来学习如何使用编辑器模式。
Expand Down
2 changes: 0 additions & 2 deletions files/zh-cn/mdn/contribute/howto/tag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ MDN 有这么几种方法来使用标签:
- `{{Tag("NeedsCompatTable")}}`
- : 文章需要一个表来指定跨浏览器特性的兼容性,有关促进浏览器兼容性的指南参见[此处](/zh-CN/docs/MDN/Contribute/Structures/Compatibility_tables)。

<!---->

- `{{Tag("NeedsContent")}}`
- : 文章是一个存根,或者是缺乏其他信息。这个标签意味着有人应该审查的内容,并添加更多的细节和/或完成写作的文章。
- `{{Tag("NeedsExample")}}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ Each interface will have its own page too. It will describe the purpose of the i
- Slug: _Web/API/AudioContext_
- Tags: must include the API name as a tag (here _Web Audio API_), as well as _Interface._

<!---->

- Title: _AudioNode_
- Slug: _Web/API/AudioNode_
- Tags: must include the API name as a tag (here _Web Audio API_), as well as _Interface_.
Expand Down
77 changes: 0 additions & 77 deletions files/zh-cn/mozilla/add-ons/index.html

This file was deleted.

71 changes: 71 additions & 0 deletions files/zh-cn/mozilla/add-ons/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: 附加组件
slug: Mozilla/Add-ons
tags:
- Add-ons
- Extension
- Extensions
- Landing
- Mozilla
- 扩展
- 附加组件
translation_of: Mozilla/Add-ons
---
{{AddonSidebar}}

附加组件允许开发者们去扩展和修改 Firefox 的功能。开发者们能使用标准的 Web 技术「JavaScript,HTML 以及 CSS」再加上一些专用的 JavaScript APIs 来开发附加组件。

除此之外,附加组件还能:

- 改变指定网站的外观或者内容
- 修改 Firefox 的用户界面
- 给 Firefox 加上新功能

有几种附件组件类型,但最常见类型是扩展。

## 开发扩展

在过去,有几种工具集用于开发 Firefox 扩展,但是到 2017 年 11 月底,扩展必须使用 [WebExtensions APIs](/zh-CN/docs/Add-ons/WebExtensions) 构建。其余工具集「包括 overlay add-ons、bootstrapped add-ons 和 Add-on SDK」将会同时被废弃。
yin1999 marked this conversation as resolved.
Show resolved Hide resolved

使用 Firefox WebExtensions APIs 编写的扩展设计为跨浏览器兼容。在大多数情况下它也能在 Chrome,Edge 和 Opera 中运行,几乎没有任何变化。它们也完全兼容多进程 Firefox。你可以查看[目前在 Firefox 和其他浏览器中支持的 APIs](/zh-CN/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs)。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
使用 Firefox WebExtensions APIs 编写的扩展设计为跨浏览器兼容。在大多数情况下它也能在 Chrome,Edge 和 Opera 中运行,几乎没有任何变化。它们也完全兼容多进程 Firefox。你可以查看[目前在 Firefox 和其他浏览器中支持的 APIs](/zh-CN/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs)
使用 Firefox WebExtensions API 编写的扩展设计为跨浏览器兼容。在大多数情况下它也能在 Chrome,Edge 和 Opera 中运行,几乎没有任何变化。它们也完全兼容多进程 Firefox。你可以查看[目前在 Firefox 和其他浏览器中支持的 APIs](/zh-CN/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

若要进行文件修改,请在此PR合并后再自行创建PR,本PR仅用于markdown转换,不会关注具体内容


### 扩展工坊

[Firefox 扩展工坊](https://extensionworkshop.com)可以帮助你为 Firefox 开发扩展,并为你的用户提供简单而强大的方式来定制他们的浏览体验。你会找到:

- [Firefox 扩展特征概述](https://extensionworkshop.com/#about)
- [开发和测试工具及其流程](https://extensionworkshop.com/documentation/develop/)
- [如何在 addons.mozilla.org 上发布扩展或自己分发扩展](https://extensionworkshop.com/documentation/publish/)
- [如何管理已发布的扩展](https://extensionworkshop.com/documentation/manage/)
- [对于企业用户,开发和使用扩展的指南](https://extensionworkshop.com/documentation/enterprise/)
- [如何为 Firefox 开发主题](https://extensionworkshop.com/documentation/themes/)
- [Firefox 开发者社区](https://extensionworkshop.com/community/)

### Android 版 Firefox 的扩展

2020 年,Mozilla 将发布一款新的 Android 版 Firefox。这款新的 Android 高性能浏览器是使用 Mozilla 的移动浏览器引擎 GeckoView 从头开始重新构建的。我们目前正在 GeckoView 上添加对 WebExtensionsAPI 的支持。

### 迁移现有扩展

如果你正在维护一个旧式扩展,比如 XUL overlay、bootstrapped,或者基于 Add-on SDK 的扩展,我们建议你将其移植到 WebExtension APIs。这里有一些[Firefox 扩展工坊中的移植资源](https://extensionworkshop.com/documentation/develop/porting-a-legacy-firefox-extension/)。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
如果你正在维护一个旧式扩展,比如 XUL overlay、bootstrapped,或者基于 Add-on SDK 的扩展,我们建议你将其移植到 WebExtension APIs。这里有一些[Firefox 扩展工坊中的移植资源](https://extensionworkshop.com/documentation/develop/porting-a-legacy-firefox-extension/)
如果你正在维护一个旧式扩展,比如 XUL overlay、bootstrapped,或者基于 Add-on SDK 的扩展,我们建议你将其移植到 WebExtension API。这里有一些 [Firefox 扩展工坊中的移植资源](https://extensionworkshop.com/documentation/develop/porting-a-legacy-firefox-extension/)


有关过渡支持的更多内容,请访问我们的[wiki 页面](https://wiki.mozilla.org/Add-ons/developer/communication)。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
有关过渡支持的更多内容,请访问我们的[wiki 页面](https://wiki.mozilla.org/Add-ons/developer/communication)
有关过渡支持的更多内容,请访问我们的 [wiki 页面](https://wiki.mozilla.org/Add-ons/developer/communication)


## 发布附加组件

[Addons.mozilla.org](https://addons.mozilla.org),俗称「AMO」,是 Mozilla 官方的官方站点,方便开发者发布扩展组件和用户查找。通过上传附加组件到 AMO,你可以加入我们的用户和开发者社区,为你的附加组件找到订阅者。

你不一定需要在 AMO 上发布你的附加组件,但你的附加组件必须要经过 Mozilla 签名,否则用户不能安装它。

有关发布附加组件过程的概述,请参阅[签署和分发你的加载项](https://extensionworkshop.com/documentation/publish/signing-and-distribution-overview/)。

## 其他类型的附加组件

通常,当人们谈起附加组件时是指扩展工具,但是这里也有一些其他类型的附加组件允许用户定制 Firefox. 这些附加组件包括:

- [用户字典](/zh-CN/docs/Mozilla/Creating_a_spell_check_dictionary_add-on) 是可以进行各种语言的拼写检查的插件;
- [语言包](https://support.mozilla.org/kb/use-firefox-interface-other-languages-language-pack) 让你有更多可用的语言用于 Firefox 的界面。

## 联系我们

查看[联系我们](/zh-CN/docs/Mozilla/Add-ons/Contact_us)页面,了解有关如何获得帮助、时刻关注关于附加组件的最新消息以及向我们提供反馈的详细信息。
Loading