Skip to content

Commit

Permalink
支持Release浏览器书签文件用于导入浏览器书签
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxiaopeng committed Jan 29, 2016
1 parent 082d786 commit 52dc9f5
Show file tree
Hide file tree
Showing 15 changed files with 739 additions and 110 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@
Android 开发者的浏览器书签 - http://adb.rocko.xyz


## Browser bookmarks file

点击项目[Releases](https://github.com/zhengxiaopeng/android-dev-bookmarks/releases)下载浏览器书签文件
``
自己生成项目的浏览器书签文件

``` Bash
chmod a+x generate_browser_bookmarks_html_file.sh
./generate_browser_bookmarks_html_file.sh
```
然后在项目根目录下生成`android-dev-bookmarks.html`文件,最后在浏览器(Chrome 或 Firefox)的书签管理器里导入此文件即可。

## ToDo

- **内容持续更新**
- ~~整理成站点~~ - [Android Dev Bookmarks](http://adb.rocko.xyz)
- Release 浏览器书签文件
- ~~Release 浏览器书签文件~~ [戳我](https://github.com/zhengxiaopeng/android-dev-bookmarks/releases),隔一段时间更新
- Chrome 插件


Expand Down
560 changes: 560 additions & 0 deletions android-dev-bookmarks.html

Large diffs are not rendered by default.

124 changes: 124 additions & 0 deletions generate_browser_bookmarks_html_file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# !/bin/bash
# -----------------------------------------------------
# 生成HTML格式浏览器书签文件
# 暂时只支持二级目录,其它未测试
# https://github.com/zhengxiaopeng/android-dev-bookmarks/blob/master/generate_browser_bookmarks_html_file.sh
#
# Rocko(rocko.xyz)
# -----------------------------------------------------

DEBUG=false
OUTPUT_FILE_NAME='android-dev-bookmarks.html' # 最终生成的文件
FILE_LIST=`ls -d */|sed 's|[/]||g'` # 所有分类文件夹
let BASE_TITLE_FLAG_CHAR_NUM=2

log() {
if [[ ${DEBUG} == true ]]; then
echo ${*}
fi
}


appendToFile() { # 给文件添加一行, 取全部内容作为参数
echo ${*} >> ${OUTPUT_FILE_NAME}
}

generate() {
log '开始生成...'
#
appendToFile '<!-- 通过浏览器书签管理器将此HTML文件导入书签 -->'
appendToFile '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">'
appendToFile '<DT><H3>android-dev-bookmarks</H3><DT>'
appendToFile '<DL>'

generateContent

#
appendToFile '</DL>'

log '生成完毕...'
}

generateContent() {
log '开始遍历生成内容...'

# :-)
appendToFile '<DT><A HREF="http://adb.rocko.xyz/">ADB</A></DT>'

for file in ${FILE_LIST}
do
log '##################################################################################################'
log '## 当前分类文件夹 >>> '${file}
log '##################################################################################################'

# 每个文件夹分类都新建一级<DT>
appendToFile '<DT><H3>'${file}'</H3></DT>'
appendToFile '<DL>'

isReadingSiteLine=false
let titleNum=0
let currentTitleFlagNum=${BASE_TITLE_FLAG_CHAR_NUM}
shouldAppendTitleTail=false
while read line # 读出每一行处理
do ## TODO 多级标题时的处理
if [[ ${line} == \#* ]]; then # 每一Markdown标题即为一分类
line=`echo ${line} | tr -d '\r' | tr -d '\n'` # 某些会带有这特殊符号导致换行,去掉。。。
titleFlagChar=${line%%' '*}
let titleFlagNum=${#titleFlagChar}

if [ ${titleFlagNum} == ${BASE_TITLE_FLAG_CHAR_NUM} ] && [ ${shouldAppendTitleTail} == true ]; then
appendToFile '</DL>'
fi

if [[ ${titleFlagNum} > ${BASE_TITLE_FLAG_CHAR_NUM} ]]; then
shouldAppendTitleTail=true
else
shouldAppendTitleTail=false
fi


log $titleFlagChar'-'$titleFlagNum


isReadingSiteLine=false
let titleNum=titleNum+1
log ${line}
log $titleNum
# echo ${line#*' '} # ‘#’后的标题文字
appendToFile '<DT><H3>'${line#*' '}'</H3></DT>'

appendToFile '<DL>'

elif [[ ${line} == \[* ]]; then

isReadingSiteLine=true

# log '网址:'${line}
site_name=${line#*[}
site_name=${site_name%%]*}

site_href=${line#*(}
site_href=${site_href%)*}

# log $site_name $site_href
appendToFile '<DT><A HREF="'${site_href}'">'${site_name}'</A></DT>'
else

if [[ ${isReadingSiteLine} == true ]]; then
appendToFile '</DL>'
let titleNum=0
isReadingSiteLine=false
fi
fi

done < ${file}"/README.md" # 每一文件夹分类里的README具体书签内容

appendToFile '</DL>'
done
}



rm -f ${OUTPUT_FILE_NAME}
touch ${OUTPUT_FILE_NAME}
generate
20 changes: 20 additions & 0 deletions generate_site_md_file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# !/bin/bash
# -----------------------------------------------------
# 把目录下所有 README.md 内容转换为 page 格式内容
#
# https://github.com/zhengxiaopeng/android-dev-bookmarks/blob/master/generate_site_md_file.sh
#
# Rocko(rocko.xyz)
# -----------------------------------------------------

FILE_LIST=`ls -d */|sed 's|[/]||g'`
OUTPUT=".output/"
rm -rf ${OUTPUT}
mkdir ${OUTPUT}

for file in ${FILE_LIST}
do
echo ${file}
mkdir ${OUTPUT}${file}
cp ${file}"/README.md" ${OUTPUT}${file}"/index.md"
done
20 changes: 0 additions & 20 deletions make_site_md.sh

This file was deleted.

20 changes: 4 additions & 16 deletions 博客/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ title: 博客

## Android

### 国内

#### CSDN
### 国内

[老罗的Android之旅](http://blog.csdn.net/Luoshengyang/)
[郭霖的专栏](http://blog.csdn.net/guolin_blog)
Expand All @@ -21,18 +19,11 @@ title: 博客
[Innost的专栏 - 阿拉神农](http://blog.csdn.net/innost)
[hellogv的专栏](http://blog.csdn.net/hellogv)
[Tomcat的猫](http://blog.csdn.net/eclipsexys)
[大头鬼Bruce](http://blog.csdn.net/lzyzsd/)


#### 其它博客平台

[大头鬼Bruce](http://blog.csdn.net/lzyzsd/)
[凯子哥](http://blog.csdn.net/zhaokaiqiang1992)
[农民伯伯](http://www.cnblogs.com/over140/)
[张涛OSC](http://my.oschina.net/kymjs/blog)
[wyouflf](http://my.oschina.net/u/1171837)


#### 个人博客

[Trinea](http://www.trinea.cn/)
[代码家](http://blog.daimajia.com/)
[stormzhang](http://stormzhang.com/)
Expand All @@ -56,10 +47,7 @@ title: 博客
[雨松MOMO](http://www.xuanyusong.com/)
[Drakeet的个人博客](http://drakeet.me/)
[廖祜秋liaohuqiu_秋百万](http://liaohuqiu.net/cn/)
[技术小黑屋](http://droidyue.com/)
[凯子哥](http://blog.csdn.net/zhaokaiqiang1992)
[]()

[技术小黑屋](http://droidyue.com/)


### 国外
Expand Down
1 change: 1 addition & 0 deletions 在线学习/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
title: 在线学习
---


[coursera](https://www.coursera.org/) - 免费学习全世界最好的在线课程。
[codecademy](https://www.codecademy.com/) - Learn to code interactively, for free.
[Udacity](https://www.udacity.com/)
Expand Down
16 changes: 9 additions & 7 deletions 官方资料/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ title: 官方资料
[Android Dev Summit](https://androiddevsummit.withgoogle.com/)


----------------------------------------


## 其它文档
[Android Plugin DSL Reference](http://google.github.io/android-gradle-dsl/current/) - DSL reference for Android Gradle Plugin.
[Android Testing Support Library](https://google.github.io/android-testing-support-library/)


----------------------------------------

## 其它
Expand All @@ -62,10 +70,4 @@ title: 官方资料
[Cloud Test Lab]([](https://developers.google.com/cloud-test-lab/))



----------------------------------------

### 其它文档
[Android Plugin DSL Reference](http://google.github.io/android-gradle-dsl/current/) - DSL reference for Android Gradle Plugin.
[Android Testing Support Library](https://google.github.io/android-testing-support-library/)


46 changes: 1 addition & 45 deletions 开发者-组织-团队/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
title: 开发者-组织-团队
---

## GitHub

### GitHub organization


[Square](https://github.com/square)
[Facebook](https://github.com/facebook)
Expand All @@ -21,44 +18,3 @@ title: 开发者-组织-团队
[Flipboard](https://github.com/Flipboard)
[codekk](https://github.com/aosp-exchange-group)
[Qihoo360](github.com/Qihoo360)


### GitHub people

#### 国外
[JakeWharton](https://github.com/JakeWharton)
[Roman Nurik](https://github.com/romannurik)
[SimonVT](https://github.com/SimonVT)
[greenrobot](https://github.com/greenrobot)
[koush](https://github.com/koush)
[Chris Banes](https://github.com/chrisbanes)
[android10](https://github.com/android10)
[Daniel Lew](https://github.com/dlew)
[Jeremy Feinstein](https://github.com/jfeinstein10)
[https://github.com/flavienlaurent](https://github.com/flavienlaurent)
[Sergey Tarasevich](https://github.com/nostra13)
[Cyril Mottier](https://github.com/cyrilmottier)
[Emil Sjölander](https://github.com/emilsjolander)
[James Smith](https://github.com/loopj)
[JPARDOGO](https://github.com/jpardogo)
[Christopher Jenkins](https://github.com/chrisjenx)
[Kevin Sawicki](https://github.com/kevinsawicki)
[Gabriele Mariotti](https://github.com/gabrielemariotti)
[StylingAndroid](https://github.com/StylingAndroid)
[Mike Penz](https://github.com/mikepenz)
[Saul MM](https://github.com/saulmm)

#### 国内

[Trinea](https://github.com/Trinea)
[daimajia](https://github.com/daimajia)
[stormzhang](https://github.com/stormzhang)
[singwhatiwanna](https://github.com/singwhatiwanna)
[yangfuhai](https://github.com/yangfuhai)
[kymjs张涛](https://github.com/kymjs)
[Mr.Simple](https://github.com/bboyfeiyu)
[hongyangAndroid](https://github.com/hongyangAndroid)
[baoyongzhang](https://github.com/baoyongzhang)


## TODO?
3 changes: 2 additions & 1 deletion 技术站点-社区论坛-业界/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ title: 技术站点-社区论坛-业界
[泡在网上的日子](http://www.jcodecraeer.com/)
[开发技术前线](http://www.devtf.cn/)

----------------------------------------

### 测试
## 测试

[TesterHome 移动测试](https://testerhome.com/)

Expand Down
1 change: 1 addition & 0 deletions 接活/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: 接活
---


[Coding 码市](https://mart.coding.net/)
4 changes: 0 additions & 4 deletions 教程文档/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ title: 教程文档
[移动开发-Android](http://wiki.jikexueyuan.com/list/android/) - 极客学院 Wiki
[Android开发专区](http://www.oschina.net/android/2/) 开源中国 Android 详细分类专区
[RxJava Essentials 中文翻译版](http://rxjava.yuxingxin.com/)




16 changes: 3 additions & 13 deletions 服务平台/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ title: 服务平台
## 综合

[Dev Store](http://www.devstore.cn/) - DevStore是从产品前期、设计、开发、推广、运维整个项目的流程出发一站式、全方位、多角度的贯穿整个移动互联网生命周期的企业运营解决方案整合平台。

[SDK.CN](https://www.sdk.cn/) - SDK.cn,为开发者提供最全面的 `API` 服务,汇集了国内外应用开发所需要的Android API/SDK,iOS SDK,WindowsPhone SDK,涉及设计开发,运维服务,云服务,市场推广,数据服务等多种服务,旨在向开发者提供最全面,最便捷的API/SDK相关服务。

[SDK.CN](https://www.sdk.cn/) - SDK.cn,为开发者提供最全面的 `API` 服务,汇集了国内外应用开发所需要的Android API/SDK,iOS SDK,WindowsPhone SDK,涉及设计开发,运维服务,云服务,市场推广,数据服务等多种服务,旨在向开发者提供最全面,最便捷的API/SDK相关服务。
[友盟](https://www.umeng.com/) - 统计、推送、社交、消息推送、微社区、自动更新、在线参数、多媒体服务、即时通讯

[Mob](http://www.mob.com/) - `ShareSDK:` 社会化功能,`ShareREC:` 手游录像解决方案,`短信验证码SDK``BigApp:一键生成移动 Discuz 论坛``MobAPI(API 云):`

[百度开发者中心](http://developer.baidu.com/) - 百度手机助手、百度推送、地图、百度移动统计、人脸识别、云测等等等

[小米开放平台](http://dev.xiaomi.com/) - 消息推送、检查更新、小米账号登陆、小米支付服务、小米统计


Expand All @@ -29,11 +24,7 @@ title: 服务平台
[Bugly内测](http://beta.qq.com/)
[fir.im](https://fir.im/) - 免费应用内测托管平台|Android应用内测分发
[蒲公英](http://www.pgyer.com/)


### 市场

......


----------------------------------------

Expand Down Expand Up @@ -142,6 +133,5 @@ title: 服务平台

## 其它

[涂图(TuSDK)](http://tusdk.com/) - 专注于移动平台图像个性化技术服务,以 SDK 形式,帮助 app 快速拥有高端图像处理功能,有效降低整体研发成本,迅速提升产品内容质量与市场竞争力。
[涂图(TuSDK)](http://tusdk.com/) - 专注于移动平台图像个性化技术服务,以 SDK 形式,帮助 app 快速拥有高端图像处理功能,有效降低整体研发成本,迅速提升产品内容质量与市场竞争力。

G*W
3 changes: 1 addition & 2 deletions 活动会议/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ title: 活动会议
[Groidcon Global](http://droidcon.com/) - BUSINESS AND DEVELOPMENT IN THE ANDROID ECOSYSTEM
[The Big Android BBQ (BABBQ)](http://www.bigandroidbbq.com/)
[MDCC](http://mdcc.csdn.net/) - 移动开发者大会 · 中国
[GDG](http://chinagdg.org/)

[GDG](http://chinagdg.org/)
Loading

0 comments on commit 52dc9f5

Please sign in to comment.