Repository: incubator-systemml-website Updated Branches: refs/heads/master 90f46caff -> 069d53e76 (forced update)
http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/assets/js/jquery.fitvids.js ---------------------------------------------------------------------- diff --git a/assets/js/jquery.fitvids.js b/assets/js/jquery.fitvids.js deleted file mode 100755 index bbfcdc0..0000000 --- a/assets/js/jquery.fitvids.js +++ /dev/null @@ -1,87 +0,0 @@ -/*jshint browser:true */ -/*! -* FitVids 1.1 -* -* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com -* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ -* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ -* -*/ - -;(function( $ ){ - - 'use strict'; - - $.fn.fitVids = function( options ) { - var settings = { - customSelector: null, - ignore: null - }; - - if(!document.getElementById('fit-vids-style')) { - // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js - var head = document.head || document.getElementsByTagName('head')[0]; - var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; - var div = document.createElement("div"); - div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>'; - head.appendChild(div.childNodes[1]); - } - - if ( options ) { - $.extend( settings, options ); - } - - return this.each(function(){ - var selectors = [ - 'iframe[src*="player.vimeo.com"]', - 'iframe[src*="youtube.com"]', - 'iframe[src*="youtube-nocookie.com"]', - 'iframe[src*="kickstarter.com"][src*="video.html"]', - 'object', - 'embed' - ]; - - if (settings.customSelector) { - selectors.push(settings.customSelector); - } - - var ignoreList = '.fitvidsignore'; - - if(settings.ignore) { - ignoreList = ignoreList + ', ' + settings.ignore; - } - - var $allVideos = $(this).find(selectors.join(',')); - $allVideos = $allVideos.not('object object'); // SwfObj conflict patch - $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. - - $allVideos.each(function(){ - var $this = $(this); - if($this.parents(ignoreList).length > 0) { - return; // Disable FitVids on this video. - } - if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } - if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) - { - $this.attr('height', 9); - $this.attr('width', 16); - } - var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), - width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), - aspectRatio = height / width; - if(!$this.attr('name')){ - var videoName = 'fitvid' + $.fn.fitVids._count; - $this.attr('name', videoName); - $.fn.fitVids._count++; - } - $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); - $this.removeAttr('height').removeAttr('width'); - }); - }); - }; - - // Internal counter for unique video names. - $.fn.fitVids._count = 0; - -// Works with either jQuery or Zepto -})( window.jQuery || window.Zepto ); http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/assets/js/main.js ---------------------------------------------------------------------- diff --git a/assets/js/main.js b/assets/js/main.js deleted file mode 100644 index 902354e..0000000 --- a/assets/js/main.js +++ /dev/null @@ -1,60 +0,0 @@ -console.log('hello main.js'); - -$(document).ready(function() { - - stickyHeader(); - - $(window).resize(function() { - stickyHeader(); - }); - - // Modal Triggers - $('.jq-modal-trigger').click(function(event) { - var el_show = $(this).attr("href"); - $(el_show).fadeIn('slow'); - event.preventDefault(); - hideModal(); - }); - - $('.jq-modal').fitVids(); - -}); - -//End Ready...................................... - -//StickyHeader -function stickyHeader() { - // get height of first two headers - var scrollHeight = 80; - var self = this; - if($( window ).width() > 750) { - - $(window).scroll(function() { - // get current scroll position - var scrollTop = $(this).scrollTop(); - - // if current position > scrollHeight - if (scrollTop > scrollHeight) { - // make fixed and change background color - $('.site-header').addClass('sticky').animate({top: "0"}, 300); - - } else if (scrollTop == 0) { - // unfix and go back to default color - $('.site-header').css('top','-80px').removeClass('sticky'); - } - - }); - - } -} - -// Show Modal -function hideModal() { - $(".jq-close").click(function(event){ - var src = $(this).parent().find('iframe').attr('src'); - $(this).parent().fadeOut('slow'); - $(this).parent().find('iframe').attr('src',''); - $(this).parent().find('iframe').attr('src',src); - event.preventDefault(); - }); -} http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/assets/js/pushy.js ---------------------------------------------------------------------- diff --git a/assets/js/pushy.js b/assets/js/pushy.js deleted file mode 100644 index 791eb90..0000000 --- a/assets/js/pushy.js +++ /dev/null @@ -1 +0,0 @@ -!function(a){function b(){g.hasClass(k)?h.toggleClass(l):h.toggleClass(m)}function c(){g.hasClass(k)?(h.addClass(l),g.animate({left:"0px"},p),i.animate({left:q},p),j.animate({left:q},p)):(h.addClass(m),g.animate({right:"0px"},p),i.animate({right:q},p),j.animate({right:q},p))}function d(){g.hasClass(k)?(h.removeClass(l),g.animate({left:"-"+q},p),i.animate({left:"0px"},p),j.animate({left:"0px"},p)):(h.removeClass(m),g.animate({right:"-"+q},p),i.animate({right:"0px"},p),j.animate({right:"0px"},p))}function e(){a(r).addClass(t),a(r).on("click",function(){var b=a(this);b.hasClass(t)?(a(r).addClass(t).removeClass(s),b.removeClass(t).addClass(s)):b.addClass(t).removeClass(s)})}function f(){a(r).addClass(t),u.children("a").on("click",function(b){b.preventDefault(),a(this).toggleClass(s).next(".pushy-submenu ul").slideToggle(200).end().parent(r).siblings(r).children("a").removeClass(s).next(".pushy-submenu ul").slideUp(200)})}var g=a(".pushy"),h=a("body"),i=a("#container"),j=a(".push"),k="pu shy-left",l="pushy-open-left",m="pushy-open-right",n=a(".site-overlay"),o=a(".menu-btn, .pushy-link"),p=200,q=g.width()+"px",r=".pushy-submenu",s="pushy-submenu-open",t="pushy-submenu-closed",u=a(r),v=function(){var a=document.createElement("p"),b=!1,c={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(a,null);for(var d in c)void 0!==a.style[d]&&(a.style[d]="translate3d(1px,1px,1px)",b=window.getComputedStyle(a).getPropertyValue(c[d]));return document.body.removeChild(a),void 0!==b&&b.length>0&&"none"!==b}();if(v)g.css({visibility:"visible"}),e(),o.on("click",function(){b()}),n.on("click",function(){b()});else{h.addClass("no-csstransforms3d"),g.hasClass(k)?g.css({left:"-"+q}):g.css({right:"-"+q}),g.css({visibility:"visible"}),i.css({"overflow-x":"hidden"});var w=!1;f(),o.on("click",function(){w?(d(),w=!1):(c(),w=!0)}),n.on("click",function(){w?(d(),w=!1):(c(),w=!0) })}}(jQuery); http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/assets/media/hero.mp4 ---------------------------------------------------------------------- diff --git a/assets/media/hero.mp4 b/assets/media/hero.mp4 deleted file mode 100644 index f00997e..0000000 Binary files a/assets/media/hero.mp4 and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/community-members.md ---------------------------------------------------------------------- diff --git a/community-members.md b/community-members.md deleted file mode 100644 index 87605ca..0000000 --- a/community-members.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -layout: page -title: Community Members -description: Project Community Page -group: nav-right ---- -<!-- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} ---> -<br/><br/><br/> - - -### {{ site.data.project.short_name }} Team Members - -{% if site.data.contributors %} -<table class="table table-hover sortable"> - <thead> - <tr> - <th><b></b></th> - <th><b>Full Name</b></th> - <th><b>Apache ID</b></th> - <th><b>GitHub</b></th> - <th><b>Role</b></th> - <th><b>Affiliation</b></th> - </tr> - </thead> - <tbody> - {% for member in site.data.contributors %} - <tr> - <td><a href="http://github.com/{{ member.githubId }}"><img width="64" src="{% unless c.avatar %}http://github.com/{{ member.githubId }}.png{% else %}{{ member.avatar }}{% endunless %}"></a></td> - <td>{{member.name}}</td> - <td>{{member.apacheId}}</td> - <td><a href="http://github.com/{{ member.githubId }}">{{ member.githubId }}</a></td> - <td>{{member.role}}</td> - <td>{{member.org}}</td> - </tr> - {% endfor %} - </tbody> -</table> -{% endif %} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/community.md ---------------------------------------------------------------------- diff --git a/community.md b/community.md deleted file mode 100644 index b17ee19..0000000 --- a/community.md +++ /dev/null @@ -1,80 +0,0 @@ ---- -layout: page -title: Community -description: Project Community Page -group: nav-right ---- -<!-- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} ---> -<br/><br/><br/> - -## {{ site.data.project.name }} Community - -Every volunteer project obtains its strength from the people involved in it. We invite you to participate as much or as little as you choose. - -You can: - -* Use our project and provide a feedback. -* Provide us with the use-cases. -* Report bugs and submit patches. -* Contribute code, javadocs, documentation. - -Visit the [Contributing] page for more information. - -### Mailing list - -Get help using {{ site.data.project.short_name }} or contribute to the project on our mailing lists: - -{% if site.data.project.user_list %} * [{{ site.data.project.user_list }}](mailto:{{ site.data.project.user_list }}) is for usage questions, help, and announcements. [subscribe](mailto:{{ site.data.project.user_list_subscribe }}?subject=send this email to subscribe), [unsubscribe](mailto:{{ site.data.project.user_list_unsubscribe }}?subject=send this email to unsubscribe), [archives]({{ site.data.project.user_list_archive_mailarchive }}) {% endif %} -* [{{ site.data.project.dev_list }}](mailto:{{ site.data.project.dev_list }}) is for people who want to contribute code to {{ site.data.project.short_name }}. [subscribe](mailto:{{ site.data.project.dev_list_subscribe }}?subject=send this email to subscribe), [unsubscribe](mailto:{{ site.data.project.dev_list_unsubscribe }}?subject=send this email to unsubscribe), [archives]({{ site.data.project.dev_list_archive_mailarchive }}) -* [{{ site.data.project.commits_list }}](mailto:{{ site.data.project.commits_list }}) is for commit messages and patches to {{ site.data.project.short_name }}. [subscribe](mailto:{{ site.data.project.commits_list_subscribe }}?subject=send this email to subscribe), [unsubscribe](mailto:{{ site.data.project.commits_list_unsubscribe }}?subject=send this email to unsubscribe), [archives]({{ site.data.project.commits_list_archive_mailarchive }}) -{% if site.data.project.issues_list %} * [{{ site.data.project.issues_list }}](mailto:{{ site.data.project.issues_list }}) is for issues workflow notifications. [subscribe](mailto:{{ site.data.project.issues_list_subscribe }}?subject=send this email to subscribe), [unsubscribe](mailto:{{ site.data.project.issues_list_unsubscribe }}?subject=send this email to unsubscribe), [archives]({{ site.data.project.issues_list_archive_mailarchive }}) {% endif %} - -### Issue tracker - - - -#### Bug Reports - -Found bug? Enter an issue in the [Issue Tracker](https://issues.apache.org/jira/browse/{{ site.data.project.jira }}). - -Before submitting an issue, please: - -* Verify that the bug does in fact exist. -* Search the issue tracker to verify there is no existing issue reporting the bug you've found. -* Consider tracking down the bug yourself in the Wink's source and submitting a patch along with your bug report. This is a great time saver for the Wink developers and helps ensure the bug will be fixed quickly. - - - -#### Feature Requests - -Enhancement requests for new features are also welcome. The more concrete and rationale the request is, the greater the chance it will incorporated into future releases. - - - [https://issues.apache.org/jira/browse/{{ site.data.project.jira }}](https://issues.apache.org/jira/browse/{{ site.data.project.jira }}) - - -### Source Code - -The project sources are accessible via the [source code repository]({{ site.data.project.source_repository }}) which is also mirrored in [GitHub]({{ site.data.project.source_repository_mirror }}) - - -### Website Source Code - -The project website sources are accessible via the [website source code repository]({{ site.data.project.website_repository }}) which is also mirrored in [GitHub]({{ site.data.project.website_repository_mirror }}) http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/css/main.scss ---------------------------------------------------------------------- diff --git a/css/main.scss b/css/main.scss deleted file mode 100644 index f2e566e..0000000 --- a/css/main.scss +++ /dev/null @@ -1,53 +0,0 @@ ---- -# Only the main Sass file needs front matter (the dashes are enough) ---- -@charset "utf-8"; - - - -// Our variables -$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -$base-font-size: 16px; -$base-font-weight: 400; -$small-font-size: $base-font-size * 0.875; -$base-line-height: 1.5; - -$spacing-unit: 30px; - -$text-color: #111; -$background-color: #fdfdfd; -$brand-color: #2a7ae2; - -$grey-color: #828282; -$grey-color-light: lighten($grey-color, 40%); -$grey-color-dark: darken($grey-color, 25%); - -// Width of the content area -$content-width: 800px; - -$on-palm: 600px; -$on-laptop: 800px; - - - -// Use media queries like this: -// @include media-query($on-palm) { -// .wrapper { -// padding-right: $spacing-unit / 2; -// padding-left: $spacing-unit / 2; -// } -// } -@mixin media-query($device) { - @media screen and (max-width: $device) { - @content; - } -} - - - -// Import partials from `sass_dir` (defaults to `_sass`) -@import - "base", - "layout", - "syntax-highlighting" -; http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/download.md ---------------------------------------------------------------------- diff --git a/download.md b/download.md deleted file mode 100644 index 6e4e025..0000000 --- a/download.md +++ /dev/null @@ -1,112 +0,0 @@ ---- -layout: page -title: Download -description: Project Download Page -group: nav-right ---- -<!-- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} ---> -<br/><br/><br/> - -## {{ site.data.project.name }} Downloads - -{{ site.data.project.name }} is released as a source artifact. Binary artifacts (including the ones available in Maven) are made available for your convenience. You will be prompted for a mirror - if the file is not found on yours, please be patient, as it may take 24 hours to reach all mirrors. {{ site.data.project.name }} is distributed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0). - -<h2>Download {{ site.data.project.name }} 0.10.0-incubating</h2> -<div class="row"> - <div class="span10"> - <table class="table table-hover"> - <tr> - <th><b>Name</b></th> - <th><b>Archive</b></th> - <th><b>MD5</b></th> - <th><b>Signature</b></th> - </tr> - <tr> - <td>systemml-0.10.0-incubating (tar.gz)</td> - <td><a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.tar.gz">tar.gz</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.tar.gz.md5">MD5</a> </td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.tar.gz.asc">ASC</a></td> - </tr> - <tr> - <td>systemml-0.10.0-incubating (zip) </td> - <td><a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.zip">zip</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.zip.md5">MD5</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating.zip.asc">ASC</a></td> - </tr> - <tr> - <td>systemml-0.10.0-incubating-standalone (tar.gz)</td> - <td><a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.tar.gz">tar.gz</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.tar.gz.md5">MD5</a> </td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.tar.gz.asc">ASC</a></td> - </tr> - <tr> - <td>systemml-0.10.0-incubating-standalone (zip)</td> - <td><a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.zip">zip</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.zip.md5">MD5</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-standalone.zip.asc">ASC</a></td> - </tr> - <tr> - <td>systemml-0.10.0-incubating (Source tar.gz)</td> - <td><a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.tar.gz">tar.gz</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.tar.gz.md5">MD5</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.tar.gz.asc">ASC</a></td> - </tr> - <tr> - <td>systemml-0.10.0-incubating (Source zip) </td> - <td> <a href="http://www.apache.org/dyn/closer.lua/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.zip">zip</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.zip.md5">MD5</a></td> - <td><a href="http://www.apache.org/dist/incubator/systemml/0.10.0-incubating/systemml-0.10.0-incubating-src.zip.asc">ASC</a></td> - </tr> - <tr> - <td>Release Notes</td> - <td><a href="/0.10.0-incubating/release_notes.html">0.10.0-incubating</a></td> - <td></td> - <td></td> - </tr> - </table> - - <p>Instructions for checking hashes and signatures is described on the <a href="http://www.apache.org/info/verification.html">Verifying Apache Software Foundation Releases</a> page.</p> - - <h3>Nightly Experimental Builds</h3> - <p>Nighly experimental builds can be obtained from <a href="https://sparktc.ibmcloud.com/repo/latest/">our nightly build</a> page.</p> - - <h3>Bleeding-Edge</h3> - <p>You can also retrieve the source files from our <a href="https://github.com/apache/incubator-systemml">Git repository</a> and create a bleeding-edge build by typing:</p> - - <pre>git clone {{ site.data.project.source_repository_mirror }} -cd incubator-systemml -mvn clean package</pre> - - <h3>Using Maven</h3> - - <p>We strongly encourage our users to configure a Maven repository mirror closer to their location. Please read <a href="http://maven.apache.org/guides/mini/guide-mirror-settings.html">How to Use Mirrors for Repositories</a>. - - <h4>Dependencies</h4> - - <p>Add the following dependencies to your Maven pom.xml.</p> - - <pre><dependency> - <groupId>org.apache.systemml</groupId> - <artifactId>systemml</artifactId> - <version>0.10.0-incubating</version> -</dependency></pre> - </div> - -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/gulpfile.js ---------------------------------------------------------------------- diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..06a26ea --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,66 @@ +const gulp = require('gulp'); +const concat = require('gulp-concat'); +const uglify = require('gulp-uglify'); +const sass = require('gulp-sass'); +const child = require('child_process'); +const gutil = require('gulp-util'); +const browserSync = require('browser-sync').create(); + +// PATHS +const config = { + dist: './_site', + paths: { + cssFiles: './_src/_sass/**/*.?(s)css', + jsFiles: [ + '_src/_scripts/jquery-2.1.1.min.js', + '_src/_scripts/jquery.fitvids.js', + '_src/_scripts/ap-components.min.js', + '_src/_scripts/main.js' + ] + } +}; + +//Sass to CSS Task +gulp.task('css', () => { + gulp.src(config.paths.cssFiles) + .pipe(sass()) + .pipe(concat('main.css')) + .pipe(gulp.dest('./_src/assets/css')); +}); + +gulp.task('js', () => { + gulp.src(config.paths.jsFiles) + .pipe(concat('bundle.min.js')) + .pipe(uglify()) + .pipe(gulp.dest('./_src/assets/js')); +}); + +gulp.task('jekyll', () => { + const jekyll = child.spawn('jekyll', ['build', + '--incremental', + '--drafts' + ]); + + const jekyllLogger = (buffer) => { + buffer.toString() + .split(/\n/) + .forEach((message) => gutil.log('Jekyll: ' + message)); + }; + + jekyll.stdout.on('data', jekyllLogger); + jekyll.stderr.on('data', jekyllLogger); +}); + +gulp.task('serve', () => { + browserSync.init({ + files: [config.dist + '/**'], + port: 3000, + server: { + baseDir: config.dist + } + }); + gulp.watch(config.paths.cssFiles, ['css', 'jekyll']); + gulp.watch(config.paths.jsFiles, ['js', 'jekyll']); +}); + +gulp.task('default', ['css', 'js', 'jekyll', 'serve']); http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/index.md ---------------------------------------------------------------------- diff --git a/index.md b/index.md deleted file mode 100644 index d3c5c51..0000000 --- a/index.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -layout: home -title: Apache SystemML - Declarative Large-Scale Machine Learning -type: Home ---- -<!-- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} ---> -## Apache SystemML - -SystemML provides declarative large-scale machine learning (ML) that aims at flexible specification of ML algorithms and automatic generation of hybrid runtime plans ranging from single-node, in-memory computations, to distributed computations on Apache Hadoop and Apache Spark. - -### Algorithm Customizability - -ML algorithms are expressed in an R-like or Python-like syntax that includes linear algebra primitives, statistical functions, and ML-specific constructs. This high-level language significantly increases the productivity of data scientists as it provides (1) full flexibility in expressing custom analytics, and (2) data independence from the underlying input formats and physical data representations. Automatic optimization according to data and cluster characteristics ensures both efficiency and scalability. - -**Poisson Nonnegative Matrix Factorization in SystemML's R-like Syntax** -{% highlight r %} -while (iter < max_iterations) { - iter = iter + 1; - H = (H * (t(W) %*% (V/(W%*%H)))) / t(colSums(W)); - W = (W * ((V/(W%*%H)) %*% t(H))) / t(rowSums(H)); - obj = as.scalar(colSums(W) %*% rowSums(H)) - sum(V * log(W%*%H)); - print("iter=" + iter + " obj=" + obj); -} -{% endhighlight %} - -### Multiple Execution Modes - -SystemML computations can be executed in a variety of different modes. To begin with, SystemML can be operated in Standalone mode on a single machine, allowing data scientists to develop algorithms locally without need of a distributed cluster. Algorithms can be distributed across Hadoop or Spark. This flexibility allows the utilization of an organization's existing resources and expertise. In addition, SystemML can be operated via Java and Scala. SystemML also features an embedded API for scoring models. - -{% highlight sh %} -// Standalone -./bin/systemml test.dml - -// Spark -$SPARK_HOME/bin/spark-submit SystemML.jar -f test.dml -exec hybrid_spark - -// Hadoop MapReduce -hadoop jar SystemML.jar -f test.dml -exec hybrid -{% endhighlight %} - -### Automatic Optimization - -Algorithms specified in DML and PyDML are dynamically compiled and optimized based on data and cluster characteristics using rule-based and cost-based optimization techniques. The optimizer automatically generates hybrid runtime execution plans ranging from in-memory single-node execution to distributed computations on Spark or Hadoop. This ensures both efficiency and scalability. Automatic optimization reduces or eliminates the need to hand-tune distributed runtime execution plans and system configurations. - http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json new file mode 100644 index 0000000..a7b55ec --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "incubator-systemml-website", + "version": "0.1.0", + "description": "", + "main": "index.js", + "dependencies": { + "gulp": "^3.9.1" + }, + "devDependencies": { + "browser-sync": "^2.17.0", + "gulp": "^3.9.1", + "gulp-concat": "^2.6.0", + "gulp-if": "^2.0.1", + "gulp-sass": "^2.3.2", + "gulp-uglify": "^2.0.0", + "gulp-useref": "^3.1.2", + "gulp-util": "^3.0.7" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/apache/incubator-systemml-website.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/apache/incubator-systemml-website/issues" + }, + "homepage": "http://systemml.apache.org" +} http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/96a132b2/privacy-policy.md ---------------------------------------------------------------------- diff --git a/privacy-policy.md b/privacy-policy.md deleted file mode 100644 index 0ed380f..0000000 --- a/privacy-policy.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -layout: page -title: Privacy Policy -description: Apache SystemML website privacy policy -group: nav-right ---- -<!-- -{% comment %} -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -{% endcomment %} ---> -<br/><br/><br/> - -## {{ site.data.project.name }} Privacy Policy - -<br/><br/> - -Information about your use of this website is collected using server access logs and a tracking cookie. The collected information consists of the following: - - The IP address from which you access the website; - The type of browser and operating system you use to access our site; - The date and time you access our site; - The pages you visit; and - The addresses of pages from where you followed a link to our site. - -Part of this information is gathered using a tracking cookie set by the [Google Analytics](http://www.google.com/analytics/) service and handled by Google as described in their [privacy policy](http://www.google.com/privacy.html). See your browser documentation for instructions on how to disable the cookie if you prefer not to share this data with Google. - -We use the gathered information to help us make our site more useful to visitors and to better understand how and when our site is used. We do not track or collect personally identifiable information or associate gathered data with any personally identifying information from other sources. - -By using this website, you consent to the collection of this data in the manner and for the purpose described above. \ No newline at end of file
