Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 9 commits
  • 8 files changed
  • 0 commit comments
  • 2 contributors
View
74 Doraemon/Developer Doc.md
@@ -12,18 +12,18 @@
每一个扩展对应着一个内容站。扩展系统使开发者有能力快速、大量的提供适合展现在豌豆荚的内容。
-#### 如果您是网站站长
+### 2.1 如果您是网站站长
* MicroData介绍:文档《[MicroData]》
* Manifest.json介绍:文档《[manifest files]》
-#### 如果您是第三方开发者
+### 2.2 如果您是第三方开发者
* Manifest.json介绍:文档《[manifest files]》
* Download介绍:文档《[Download Link]》
-#### 目前扩展中webkit/css支持的特性(通用)
+### 2.3 目前扩展中webkit/css支持的特性(通用)
* 《[Wandoujia Supported Specifications]》
-#### 开发扩展系统时Content Script的Guideline
+### 2.4 开发扩展系统时Content Script的Guideline
* 页面宽度修改为适应豌豆荚的默认宽度:780px(考虑会有滚动条,建议控制在760px内)
* 页面中的主要内容可调用豌豆荚的 Download API (可下载资源应该遵循microdata中定义的格式,否则无法下载)进行下载,不支持的部分应打开外部浏览器或予以隐藏
@@ -32,7 +32,7 @@
* 原则上扩展的页面尊重原内容站的页面构成,这里面包括原内容站的登录、广告、分享、评论等等,对这些内容的去留由开发者在开发过程中自行决定,但如果保留,需要保证其在豌豆荚能够正常work
-* manifest.json匹配规则禁止使用http://*/*
+* manifest.json匹配规则禁止使用http://\*/\*
* 扩展包的文件格式必须是UTF-8编码(无BOM)
@@ -52,7 +52,6 @@
3. 百宝袋扩展Sample
---------
-#### 3.1 按照《manifest files》文档写manifest.json文件,以豌豆荚应用搜索为例(实际操作中去掉注释)
{
"name": "应用搜索", // 默认将会是豌豆荚侧边栏中显示的名称
"version": "1.0.0.0",
@@ -99,15 +98,66 @@
}
}
-#### 3.2 打包
-
-#### 3.3 上传扩展包
-* http://www.wandoujia.com/webstore/dev
-
4. 百宝袋开发工具介绍
-----------
+### 4.1 前提
+进入开发者版本的前提是必须注册豌豆荚账号,并在豌豆荚Windows客户端登录:
+![登录豌豆荚Windows客户端][register]
+
+### 4.2 进入开发者模式
+![进入开发者模式][settings_1]
+![进入开发者模式][settings_2]
+
+### 4.3 管理扩展
+![进入管理扩展页面][manage]
+
+### 4.4 加载本地扩展
+![加载本地扩展][load_extensions]
+
+### 4.5 调试
+![页面调试][debug_1]
+![页面调试][debug_2]
+
+### 4.6 刷新扩展
+![刷新扩展][refresh_extension]
+
+### 4.7 打包扩展
+![打包扩展][package_extension]
+
+### 4.7 扩展上线
+* 开发者扩展开发完毕,可以提交到豌豆荚扩展中心:http://developer.wandoujia.com/
+* 扩展的上线流程如下:
+
+![打包扩展][extension_online]
+
+* 注:
+
+ - 第一次提交扩展包后,豌豆荚的审核时间是1~3天,审核通过之后会在当天上线。
+ - 扩展包因失效(改版、服务不稳定、下线、法律原因)或违反豌豆荚规定下线,待扩展包恢复正常之后,须观察24小时,开发者
+ 需按上线流程重新申请上线。
+ - 开发者将扩展包升级之后,需要重新走审核流程。
+
+* 审核及扩展下线原则:
+ - 扩展的内容包括色情,淫秽,擦边球等成人内容
+ - 扩展的内容涉及或影射政治敏感信息及内容
+ - 扩展内含病毒
+ - 扩展的内容存在误导欺骗用户的行为或者乱扣费、暗扣费
+ - 扩展存在严重的bug,不能够正常使用
+ - 扩展未遵守豌豆荚Content Script的Guideline规范
+ - 扩展因内容站改版、开发者下线、法律限制等导致失效
+
[manifest files]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/Manifest%20Files.md
[Download Link]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/Download%20Link.md
[MicroData]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/Download%20Link.md
- [Wandoujia Supported Specifications]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/Wandoujia%20Supported%20Specifications.md
+ [Wandoujia Supported Specifications]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/Wandoujia%20Supported%20Specifications.md
+ [register]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/register.jpg?raw=true
+ [settings_1]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/settings_1.jpg?raw=true
+ [settings_2]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/settings_2.jpg?raw=true
+ [manage]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/manage.jpg?raw=true
+ [load_extensions]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/load_extensions.jpg?raw=true
+ [debug_1]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/debug_1.jpg?raw=true
+ [debug_2]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/debug_2.jpg?raw=true
+ [refresh_extension]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/refresh_extension.jpg?raw=true
+ [package_extension]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/package_extension.jpg?raw=true
+ [extension_online]: https://github.com/wandoulabs/developer-documents/blob/master/Doraemon/pictures/extension_online.jpg?raw=true
View
BIN  Doraemon/pictures/debug_1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/debug_2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/extension_online.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/manage.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/register.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/settings_1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Doraemon/pictures/settings_2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

No commit comments for this range

Something went wrong with that request. Please try again.