http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/_src/community-members.html ---------------------------------------------------------------------- diff --git a/_src/community-members.html b/_src/community-members.html new file mode 100644 index 0000000..3425307 --- /dev/null +++ b/_src/community-members.html @@ -0,0 +1,54 @@ +--- +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 %} +--> + + +<h1>{{ site.data.project.short_name }} Team Members</h1> + +{% 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 %}
http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/_src/community-members.md ---------------------------------------------------------------------- diff --git a/_src/community-members.md b/_src/community-members.md deleted file mode 100644 index 87605ca..0000000 --- a/_src/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/069d53e7/_src/community.md ---------------------------------------------------------------------- diff --git a/_src/community.md b/_src/community.md index b17ee19..e53313a 100644 --- a/_src/community.md +++ b/_src/community.md @@ -22,7 +22,6 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} --> -<br/><br/><br/> ## {{ site.data.project.name }} Community http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/_src/download.html ---------------------------------------------------------------------- diff --git a/_src/download.html b/_src/download.html new file mode 100644 index 0000000..3dad19e --- /dev/null +++ b/_src/download.html @@ -0,0 +1,111 @@ +--- +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 %} +--> + +<h1>{{ site.data.project.name }} Downloads</h1> + +{{ 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> http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/_src/download.md ---------------------------------------------------------------------- diff --git a/_src/download.md b/_src/download.md deleted file mode 100644 index 6e4e025..0000000 --- a/_src/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/069d53e7/_src/index.md ---------------------------------------------------------------------- diff --git a/_src/index.md b/_src/index.md index d3c5c51..33ebe6d 100644 --- a/_src/index.md +++ b/_src/index.md @@ -21,7 +21,7 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} --> -## Apache SystemML +<!-- ## 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. @@ -54,8 +54,8 @@ $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/069d53e7/_src/privacy-policy.md ---------------------------------------------------------------------- diff --git a/_src/privacy-policy.md b/_src/privacy-policy.md index 0ed380f..2d7e9df 100644 --- a/_src/privacy-policy.md +++ b/_src/privacy-policy.md @@ -22,12 +22,9 @@ 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; @@ -40,4 +37,4 @@ Part of this information is gathered using a tracking cookie set by the [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 +By using this website, you consent to the collection of this data in the manner and for the purpose described above. http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/_src/tutorials.html ---------------------------------------------------------------------- diff --git a/_src/tutorials.html b/_src/tutorials.html new file mode 100644 index 0000000..2e438f4 --- /dev/null +++ b/_src/tutorials.html @@ -0,0 +1,74 @@ +--- +layout: page +title: Tutorials +description: Tutorial Page +group: nav-right +--- + +<!-- hero image --> +<section class="hero-banner hero-home"> + <div class="banner-overlay"> + <div class="banner-content"> + <h1>{{ page.title }}</h1> + <a class="button button-primary" href="download.html">Download SystemML</a> + </div> + </div> +</section> + + +<!-- content --> +<main> + <!-- Tutorial 1 description and text--> + <div class="background-stripe"> + <section class="ml-container content-group"> + <!-- 6 column text --> + <div class="content-text content-text--col-6 button-group"> + <h2>Get Started</h2> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam id vulputate nunc, eget ornare orci. Mauris vel ex turpis. Vestibulum eu ultrices turpis. Vivamus et ligula lacus. </p> + <br> + <a class="button button-primary" href="#">Tutorial</a> + <a class="button button-secondary" href="#">Docs</a> + </div> + <!--6 column image --> + <div class="content-text content-text--col-6"> + <img src="https://unsplash.it/g/650/450" alt="Tutorial 1 Title"> + </div> + </section> + </div> + + <!-- Tutorial 2 description and text--> + <div class="background-stripe"> + <section class="ml-container content-group"> + <!--6 column image --> + <div class="content-text content-text--col-6"> + <img src="https://unsplash.it/g/650/450" alt="Tutorial 2 Title"> + </div> + <!-- 6 column text --> + <div class="content-text content-text--col-6 button-group"> + <h2>Distributed Cluster</h2> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam id vulputate nunc, eget ornare orci. Mauris vel ex turpis. Vestibulum eu ultrices turpis. Vivamus et ligula lacus. </p> + <br> + <a class="button button-primary" href="#">Tutorial</a> + <a class="button button-secondary" href="#">Docs</a> + </div> + </section> + </div> + + <!-- Tutorial 3 description and text--> + <div class="background-stripe"> + <section class="ml-container content-group"> + <!-- 6 column text --> + <div class="content-text content-text--col-6 button-group"> + <h2>Deep Learning Image Analysis</h2> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam id vulputate nunc, eget ornare orci. Mauris vel ex turpis. Vestibulum eu ultrices turpis. Vivamus et ligula lacus. </p> + <br> + <a class="button button-primary" href="#">Tutorial</a> + <a class="button button-secondary" href="#">Docs</a> + </div> + <!--6 column image --> + <div class="content-text content-text--col-6"> + <img src="https://unsplash.it/g/650/450" alt="Tutorial 3 Title"> + </div> + </section> + </div> +</main> http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/gulpfile.js ---------------------------------------------------------------------- diff --git a/gulpfile.js b/gulpfile.js index 06a26ea..f8b70ed 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,7 +4,7 @@ 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(); +const browserSync = require('browser-sync'); // PATHS const config = { @@ -16,51 +16,59 @@ const config = { '_src/_scripts/jquery.fitvids.js', '_src/_scripts/ap-components.min.js', '_src/_scripts/main.js' + ], + markupFiles: [ + '_src/**/*.md', + '_src/**/*.html' ] + }, + messages: { + jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build' } }; //Sass to CSS Task gulp.task('css', () => { gulp.src(config.paths.cssFiles) - .pipe(sass()) - .pipe(concat('main.css')) - .pipe(gulp.dest('./_src/assets/css')); + .pipe(sass({ + includePaths: ['node_modules/susy/sass'] + }).on('error', sass.logError)) + .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')); + .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)); - }; +gulp.task('jekyll:build', (done) => { + browserSync.notify(config.messages.jekyllBuild); + const jekyll = child.spawn('jekyll', ['build', '--incremental', '--drafts'], {stdio: 'inherit'}) + .on('close', done); +}); - jekyll.stdout.on('data', jekyllLogger); - jekyll.stderr.on('data', jekyllLogger); +gulp.task('jekyll:rebuild', ['css', 'jekyll:build'], () => { + browserSync.reload(); }); -gulp.task('serve', () => { - browserSync.init({ - files: [config.dist + '/**'], - port: 3000, +gulp.task('browser-sync', ['css', 'jekyll:build'], () => { + browserSync({ server: { - baseDir: config.dist + baseDir: config.dist, + serveStaticOptions: { + extensions: ['html'] + } } - }); - gulp.watch(config.paths.cssFiles, ['css', 'jekyll']); - gulp.watch(config.paths.jsFiles, ['js', 'jekyll']); + }) +}); + +gulp.task('watch', () => { + gulp.watch(config.paths.cssFiles, ['css', 'jekyll:build']); + gulp.watch(config.paths.jsFiles, ['js', 'jekyll:build']); + gulp.watch(config.paths.markupFiles, ['jekyll:build']); }); -gulp.task('default', ['css', 'js', 'jekyll', 'serve']); +gulp.task('default', ['browser-sync', 'watch']) http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/069d53e7/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index a7b55ec..608816b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "gulp-sass": "^2.3.2", "gulp-uglify": "^2.0.0", "gulp-useref": "^3.1.2", - "gulp-util": "^3.0.7" + "gulp-util": "^3.0.7", + "susy": "^2.2.12" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1"
