-
Notifications
You must be signed in to change notification settings - Fork 19
/
about_en.html
executable file
·125 lines (102 loc) · 5.99 KB
/
about_en.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html ng-app="static" class="doc">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="StaticFile CDN - a stable / fast / free CDN for open-source libs">
<title>About - StaticFile CDN</title>
<link rel="stylesheet" href="http://cdn.staticfile.org/typo.css/1.1/typo.css" />
<link rel="stylesheet" href="http://cdn.staticfile.org/prettify/r298/prettify.min.css" />
<link rel="stylesheet" href="static/app.css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body ng-controller="libListCtrl">
<div id="header" class="wrapper"></div>
<div class="wrapper">
<h1 class="typo-h1"><a href="/">StaticFile CDN</a></h1>
<div id="nav">
<a href="/">Home</a> /
<a href="about_en.html#howto">Add One</a> /
<a href="https://github.com/staticfile/static/issues" target="_blank">Feedback</a> /
<a href="about_en.html">About</a> /
<a href="index.html">中文</a>
</div>
<div id="githubbtn" class="wrapper">
<iframe src="http://ghbtns.com/github-btn.html?user=staticfile&repo=static&type=watch&count=true" allowtransparency="true" frameborder="0" height="20px" scrolling="0" width="85px"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=staticfile&repo=static&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
</div>
</div>
<div class="wrapper typo" id="about">
<h3>1. Background & Purpose</h3>
<p>As Google Ajax Library, Microsoft ASP.net CDN, SAE, Baidu, Upyun and etc are providing free CDN for JS libs, but most of them only provide services for JS libs. We find that CDNJS storing much more libs, JS / CSS / Images / Swf, whereas it is slow in China and DO NOT provide libs that created by Chinese developers.</p>
<p>Thus we decide to provide a warehouse to store open-source libs as much as possible, and serve them via a more stable & fast CDN. In addition, we also provide you an entrance for submitting libs, including JS / CSS / Images & SWF files.</p>
<h3 id="howto">2. How to Sumbit A Lib</h3>
<p><a href="https://github.com/staticfile/static" target="_blank">Fork the repo</a>,create a folder under <code>libs/</code>, the folder should contain at least one lib. Like:</p>
<pre class="prettyprint lang-bash">.
├── jquery # ... name of the lib
│ ├── 1.8.3 # ... version
│ | └── jquery.min.js # ... file name, w/o version number
│ └── 1.9.1
│ └── jquery.min.js
└── package.json # ... for the latest version
</pre>
<p>Edit <code>package.json</code>, in which contains the information of the LATEST version of the lib. Here's an example file in real-world:<a href="https://github.com/staticfile/static/blob/master/libs/typo.css/package.json">libs/typo.css/package.json</a>.</p>
<pre class="prettyprint lang-js">
{
// please keep the folder name the same with the file name
"name": "name of lib",
"filename": "core file of the lib, like XYZ.js",
"version": "1.0",
// misc
"description": "description of the lib",
"homepage": "the homepage of the lib, like http://staticfile.org",
"keywords": [],
"maintainers": [
{
"name": "author or maintainer",
"web": "http://staticfile.org",
"mail": "trimidea@gmail.com"
}
],
"repositories": [
{
// git, svn, hg & etc.
"type": "git",
"url": "https://github.com/staticfile/static"
}
]
}
</pre>
<p>Then, send a Pull Request to us. We will review it as soon as possible. Once the Pull Request is merged, the files of the lib are accessible.</p>
<p class="com">In order to keep fast and stable, we suggest you only submit libs that already have influences -- like, has 20 stars on Github.</p>
<h3>3. Updates</h3>
<p>The repo fetches updates from CDNJS everyday as well as users' pull requests. If you can't find the right version at <a href="http://staticfile.org">staticfile.org</a>. Please open an issue or send us a Pull Request.</p>
<h3>4. Policy</h3>
<p>Most libs are licensed under MIT / BSD. However, there're libs like Highcharts that are commercial but free for personal use. If you are intending to use this service, please read the license carefully.</p>
<h3>5. Author & CDN Provider</h3>
<i>Past Author</i>
<ul>
<li><i> <a href="https://github.com/sofish" target="_blank">Sofish</a></i></li>
<li><i> <a href="https://github.com/hfcorriez" target="_blank">hfcorriez</a></i></li>
<li><i><a target="_blank" href="https://github.com/ikbear">ikbear</a></i></li>
</ul>
<p>The Site/Repo is maintained by <a href="https://github.com/Xuanwo" target="_blank">Xuanwo</a> and <a href="https://github.com/sorcerer-ma" target="_blank">sorcerer-ma</a>. And the CDN is provided by <a href="http://qiniu.com/" target="_blank">Qiniu Tech</a>. We also fetch updates from <a href="https://github.com/cdnjs/cdnjs" target="_blank">CDNJS</a>.</p>
<h3>6. License</h3>
<p>This repo is open-source. Licensed under MIT.</p>
</div>
<div id="footer" class="typo wrapper">
<p id="power"><a href="http://qiniu.com" target="_blank"><img src="static/qiniu.png" /></a><br><small>CDN service provided by Qiniu Tech</small></p>
<small>© Copyright 2014 <a href="http://staticfile.org">staticfile.org</a>. Built upon love.</small>
</div>
<script src="http://cdn.staticfile.org/prettify/r298/run_prettify.js"></script>
<script type="text/javascript">
// tracker
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43035690-1', 'www.staticfile.org');
ga('send', 'pageview');
</script>
</body>
</html>