Skip to content

Commit

Permalink
Further improve website and bump version numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
pago committed Feb 21, 2014
1 parent 814568c commit 2886c49
Show file tree
Hide file tree
Showing 14 changed files with 261 additions and 232 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jide.js",
"version": "1.0.0-beta3",
"version": "1.0.0-beta4",
"description": "jide.js is a free UI toolkit for modern web applications based on data binding and separation of concerns.",
"authors": ["Patrick Gotthardt <[email protected]> (http://www.pagosoft.com)"],
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions demo/apps/contacts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@
<script src="../../../bower_components/requirejs/require.js"></script>
<script src="/jidejs-core.js"></script>
<script src="main.js"></script>
<script>
(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-1514948-2', 'jidesoft.com');
ga('send', 'pageview');
</script>
</body>
</html>
8 changes: 8 additions & 0 deletions demo/apps/email/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@
<script src="../../../bower_components/requirejs/require.js"></script>
<script src="/jidejs-core.js"></script>
<script src="main.js"></script>
<script>
(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-1514948-2', 'jidesoft.com');
ga('send', 'pageview');
</script>
</body>
</html>
8 changes: 8 additions & 0 deletions demo/apps/issues/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,13 @@ <h2>Reading the demo sources</h2>
</script>
</head>
<body>
<script>
(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-1514948-2', 'jidesoft.com');
ga('send', 'pageview');
</script>
</body>
</html>
16 changes: 14 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ var gulp = require('gulp'),
less = require('gulp-less'),
zip = require('gulp-zip'),
minifyCSS = require('gulp-minify-css'),
csso = require('gulp-csso'),
imagemin = require('gulp-imagemin'),
rjs = require('gulp-requirejs'),
clean = require('gulp-clean'),
rename = require('gulp-rename'),
Expand Down Expand Up @@ -133,7 +135,7 @@ gulp.task('clean:jsdoc', function() {
return gulp.src('./website/contents/api', {read:false})
.pipe(clean());
});
gulp.task('clean', ['clean:compiled', 'clean:build', 'clean:api', 'clean:website']);
gulp.task('clean', ['clean:compiled', 'clean:build', 'clean:jsdoc', 'clean:website']);
//endregion /CLEAN

//region COMPILE used resources for jide.js (style, templates)
Expand Down Expand Up @@ -363,8 +365,14 @@ gulp.task('website:optimize:rjs', [
//endregion WEBSITE:OPTIMIZE:RJS

//region WEBSITE:OPTIMIZE:MINIFY Minfiy all build files
gulp.task('website:optimize:minify:images', ['website:build'], function() {
return gulp.src('./website/build/**/*.(gif|jpe?g|png)')
.pipe(imagemin())
.pipe(gulp.dest('./website/build/'));
});
gulp.task('website:optimize:minify:css', ['website:build'], function() {
return gulp.src('./website/build/**/*.css')
.pipe(csso())
.pipe(minifyCSS({}))
.pipe(gulp.dest('./website/build/'));
});
Expand All @@ -373,7 +381,11 @@ gulp.task('website:optimize:minify:js', ['website:build', 'website:optimize:rjs'
.pipe(uglify())
.pipe(gulp.dest('website/build/'));
});
gulp.task('website:optimize:minify', ['website:optimize:minify:css', 'website:optimize:minify:js']);
gulp.task('website:optimize:minify', [
'website:optimize:minify:css',
'website:optimize:minify:js',
'website:optimize:minify:images'
]);
//endregion WEBSITE:OPTIMIZE:MINIFY

gulp.task('website:optimize', ['website:optimize:minify']);
Expand Down
7 changes: 4 additions & 3 deletions jsdoc/jidejs/tmpl/layout.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="stylesheet" type="text/css" href="/style/MyFontsWebfontsKit.css">
<link type="text/css" rel="stylesheet" href="/style/docs.css">
</head>
<body class="container-fluid">
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<a class="brand" href="http://js.jidesoft.com">jide.js</a>
Expand All @@ -53,6 +53,7 @@
</ul>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<aside class="span3">
<nav class="apidoc">
Expand All @@ -63,9 +64,9 @@
<?js= content ?>
</article>
</div>

</div>
<!--==============================footer=================================-->
<footer class="row-fluid">
<footer>
<p>JIDE Software, Inc. 2002-<script>document.write(new Date().getFullYear());</script> | <a href="http://www.jidesoft.com/company/privacy.html">Privacy Policy</a></p>
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc <?js= env.version.number ?></a> on <?js= (new Date()) ?></p>
</footer>
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jide",
"version": "1.0.0-beta3",
"version": "1.0.0-beta4",
"author": "Patrick Gotthardt, <[email protected]>",
"description": "jide.js is a free UI toolkit for modern web applications based on data binding and separation of concerns.",
"keywords": [
Expand Down Expand Up @@ -74,6 +74,8 @@
"gulp-changed": "~0.2.0",
"event-stream": "~3.1.0",
"gulp-util": "~2.2.14",
"wintersmith-livereload": "~0.1.1"
"wintersmith-livereload": "~0.1.1",
"gulp-csso": "~0.2.3",
"gulp-imagemin": "~0.1.5"
}
}
14 changes: 7 additions & 7 deletions website/contents/examples/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ function replaceOutput(root, code) {

function initUI(e, example) {
require(['jidejs/ui/control/Button'], function(Button) {
var outputElement = e.querySelector('[data-role="output"]')
, jseditor = e.querySelector('[data-role="jseditor"]')
, titleElement = e.querySelector('[data-role="title"]')
, introElement = e.querySelector('[data-role="intro"]')
, aboutElement = e.querySelector('[data-role="about"]')
, buttonElement = e.querySelector('[data-role="run"]');
var outputElement = document.querySelector('[data-role="output"]')
, jseditor = document.querySelector('[data-role="jseditor"]')
, titleElement = document.querySelector('[data-role="title"]')
, introElement = document.querySelector('[data-role="intro"]')
, aboutElement = document.querySelector('[data-role="about"]')
, buttonElement = document.querySelector('[data-role="run"]');

jseditor.innerHTML = '';
buttonElement.innerHTML = '';
Expand All @@ -22,7 +22,7 @@ function initUI(e, example) {
var runButton = new Button({
element: buttonElement,
text: 'Run',
//classList: ['btn', 'btn-primary'],
classList: ['btn', 'btn-primary', 'btn-large'],
on: {
click: function() {
outputElement.innerHTML = example.get().html || '';
Expand Down
4 changes: 2 additions & 2 deletions website/contents/guide/00-installation/021-with-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ npm install deamdify --save-dev

Now that you have installed all required dependencies for your application, you can start to create your application.
To keep the scope of this documentation small, we'll create a very simple application. The
[Yeoman Quickstart]{/guide/00-installation/03-with-yeoman.html) will create a larger sample application and comes with
[Yeoman Quickstart](/guide/00-installation/03-with-yeoman.html) will create a larger sample application and comes with
a preview server and several other useful tools.

Create an index.html file at your project root, and insert something along the lines of:
Expand Down Expand Up @@ -79,7 +79,7 @@ document.body.appendChild(new Button({
# Creating the Bundle

Browserify requires you to create a bundle every time you changed your application. The
[Yeoman Generator]{/guide/00-installation/03-with-yeoman.html) will help you to create a build script that takes care
[Yeoman Generator](/guide/00-installation/03-with-yeoman.html) will help you to create a build script that takes care
of this for you but in the meantime, you can try to run this command:

```
Expand Down
119 changes: 119 additions & 0 deletions website/contents/style/apidoc.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.class-description {
font-style: italic;
font-size: 130%;
line-height: 140%;
}

section
{
display: block;
}

.variation {
display: none;
}

.optional:after {
content: "opt";
font-size: 60%;
color: #aaa;
font-style: italic;
font-weight: lighter;
}

footer {
font-style: italic;
font-size: 90%;
}

h5, .container-overview .subsection-title
{
font-size: 120%;
font-weight: bold;
letter-spacing: -0.01em;
}

.important
{
font-weight: bold;
color: #950B02;
}

.yes-def {
text-indent: -1000px;
}

.type-signature {
color: #ddd;
}

.name, .signature, .CodeMirror pre, .CodeMirror-linenumber, .prettyprint code, code.prettyprint,
code, pre, .params .type {
font-family: "Source Code Pro", Consolas, "Lucida Console", Monaco, monospace;
}

.details { }
.details dt { border-left: 2px solid #DDD; }
.details dd { }
.details ul { }
.details ul { }
.details li { }

dd { margin-left: 40px; }

.description {
}

.code-caption
{
font-style: italic;
font-family: Palatino, 'Palatino Linotype', serif;
font-size: 107%;
margin: 0;
}

.prettyprint
{
border: 1px solid #ddd;
width: 80%;
overflow: auto;
}

.prettyprint.source {
width: inherit;
}

.prettyprint code, code.prettyprint
{
font-size: 13px;
line-height: 18px;
display: block;
margin: 0;
text-space-collapse: preserve;
}

.params {
code {
color: #FFF;
}

dl {
margin-left: 10px;
}

.type {
color: #DDD;

&:before {
content: "{";
}

&:after {
content: "}";
}
}
}

.apidoc > ul > .nav-header {
text-transform: none;
}
Loading

0 comments on commit 2886c49

Please sign in to comment.