Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 8ccff6c

Browse files
committed
Initial setup
0 parents  commit 8ccff6c

File tree

11 files changed

+175
-0
lines changed

11 files changed

+175
-0
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# JS files must always use LF for tools to work
5+
*.js eol=lf

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
config.json

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Welcome! Thanks for your interest in contributing to api.globalizejs.com. You're **almost** in the right place. More information on how to contribute to this and all other jQuery Foundation projects is over at [contribute.jquery.org](http://contribute.jquery.org). You'll definitely want to take a look at the articles on contributing [to our websites](http://contribute.jquery.org/web-sites/).
2+
3+
You may also want to take a look at our [commit & pull request guide](http://contribute.jquery.org/commits-and-pull-requests/) and [style guides](http://contribute.jquery.org/style-guide/) for instructions on how to maintain your fork and submit your code. Before we can merge any pull request, we'll also need you to sign our [contributor license agreement](http://contribute.jquery.org/cla).
4+
5+
You can find us on [IRC](http://irc.jquery.org), specifically in #jqueryui-dev and #jquery-content should you have any questions. If you've never contributed to open source before, we've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/).

LICENSE.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Copyright 2014 jQuery Foundation and other contributors,
2+
https://jquery.org/
3+
4+
This software consists of voluntary contributions made by many
5+
individuals. For exact contribution history, see the revision history
6+
available at https://github.com/jquery/api.globalizejs.com
7+
8+
The following license applies to all parts of this software except as
9+
documented below:
10+
11+
====
12+
13+
Permission is hereby granted, free of charge, to any person obtaining
14+
a copy of this software and associated documentation files (the
15+
"Software"), to deal in the Software without restriction, including
16+
without limitation the rights to use, copy, modify, merge, publish,
17+
distribute, sublicense, and/or sell copies of the Software, and to
18+
permit persons to whom the Software is furnished to do so, subject to
19+
the following conditions:
20+
21+
The above copyright notice and this permission notice shall be
22+
included in all copies or substantial portions of the Software.
23+
24+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31+
32+
====
33+
34+
Copyright and related rights for sample code are waived via CC0. Sample
35+
code is defined as all source code displayed within the prose of the
36+
documentation.
37+
38+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
39+
40+
====
41+
42+
All files located in the node_modules directory are externally
43+
maintained libraries used by this software which have their own
44+
licenses; we recommend you read them, as their terms may differ from the
45+
terms above.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
api.globalizejs.com
2+
===================
3+
4+
## Building and Deploying
5+
6+
To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/).

categories.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<categories>
2+
<category name="Uncategorized" slug="uncategorized"/>
3+
<category name="All" slug="all"></category>
4+
</categories>

config-sample.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"url": "vagrant.api.globalizejs.com",
3+
"username": "admin",
4+
"password": "secret"
5+
}

entries2html.xsl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2+
3+
<xsl:import href="node_modules/grunt-jquery-content/tasks/jquery-xml/entries2html-base.xsl"/>
4+
5+
<xsl:template name="example-code">
6+
&lt;!doctype html&gt;
7+
&lt;html lang="en"&gt;
8+
&lt;head&gt;
9+
&lt;meta charset="utf-8"&gt;
10+
&lt;title&gt;<xsl:value-of select="//entry/@name"/> demo&lt;/title&gt;<xsl:if test="css">
11+
&lt;style&gt;<xsl:value-of select="css/text()"/> &lt;/style&gt;</xsl:if>
12+
&lt;/head&gt;
13+
&lt;body&gt;
14+
<xsl:value-of select="html/text()"/>
15+
&lt;script&gt;<xsl:value-of select="code/text()"/>&lt;/script&gt;
16+
17+
&lt;/body&gt;
18+
&lt;/html&gt;
19+
</xsl:template>
20+
21+
</xsl:stylesheet>

grunt.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*jshint node:true */
2+
module.exports = function( grunt ) {
3+
4+
"use strict";
5+
6+
var entryFiles = grunt.file.expandFiles( "entries/*.xml" );
7+
8+
grunt.loadNpmTasks( "grunt-clean" );
9+
grunt.loadNpmTasks( "grunt-wordpress" );
10+
grunt.loadNpmTasks( "grunt-jquery-content" );
11+
grunt.loadNpmTasks( "grunt-check-modules" );
12+
13+
grunt.initConfig({
14+
clean: {
15+
folder: "dist"
16+
},
17+
lint: {
18+
grunt: "grunt.js"
19+
},
20+
watch: {
21+
files: [ "entries/**", "categories.xml" ],
22+
tasks: "deploy"
23+
},
24+
xmllint: {
25+
all: [].concat( entryFiles, "categories.xml", "entries2html.xsl" )
26+
},
27+
xmltidy: {
28+
all: [].concat( entryFiles, "categories.xml" )
29+
},
30+
"build-pages": {
31+
all: grunt.file.expandFiles( "pages/**" )
32+
},
33+
"build-xml-entries": {
34+
all: entryFiles
35+
},
36+
"build-resources": {
37+
all: grunt.file.expandFiles( "resources/**" )
38+
},
39+
wordpress: grunt.utils._.extend({
40+
dir: "dist/wordpress"
41+
}, grunt.file.readJSON( "config.json" ) )
42+
});
43+
44+
grunt.registerTask( "default", "build-wordpress" );
45+
grunt.registerTask( "build", "build-pages build-xml-entries build-xml-categories build-xml-full build-resources" );
46+
grunt.registerTask( "build-wordpress", "check-modules clean lint xmllint build" );
47+
grunt.registerTask( "tidy", "xmllint xmltidy" );
48+
49+
};

notes.xsl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2+
<xsl:template name="note"/>
3+
</xsl:stylesheet>

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "api.globalize.com",
3+
"title": "Globalize API Docs",
4+
"version": "0.0.0",
5+
"homepage": "https://github.com/jquery/api.globalizejs.com",
6+
"author": {
7+
"name": "jQuery Foundation (http://jquery.org/)"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git://github.com/jquery/api.globalizejs.com.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/jquery/api.globalizejs.com/issues"
15+
},
16+
"licenses": [
17+
{
18+
"type": "MIT",
19+
"url": "http://www.opensource.org/licenses/MIT"
20+
}
21+
],
22+
"dependencies": {
23+
"grunt": "0.3.17",
24+
"grunt-clean": "0.3.0",
25+
"grunt-wordpress": "1.2.1",
26+
"grunt-jquery-content": "0.13.0",
27+
"grunt-check-modules": "0.1.0"
28+
}
29+
}

0 commit comments

Comments
 (0)