From 463a1a9e443c346e3d5f7eb1979424775c1d33e5 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Aug 2017 14:49:59 +0200 Subject: [PATCH] make mediakit top level folder --- _src/_layouts/about.html | 12 ++++++------ .../mediakit/logo/logo-bigchaindb-square.png | Bin .../mediakit/logo/logo-bigchaindb-square.svg | 0 .../mediakit/logo/logo-bigchaindb-white.png | Bin .../mediakit/logo/logo-bigchaindb-white.svg | 0 .../mediakit/logo/logo-bigchaindb.png | Bin .../mediakit/logo/logo-bigchaindb.svg | 0 _src/robots.txt | 2 +- docs/mediakit.md | 4 ++-- gulpfile.babel.js | 15 ++++----------- 10 files changed, 13 insertions(+), 20 deletions(-) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb-square.png (100%) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb-square.svg (100%) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb-white.png (100%) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb-white.svg (100%) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb.png (100%) rename _src/{_assets => }/mediakit/logo/logo-bigchaindb.svg (100%) diff --git a/_src/_layouts/about.html b/_src/_layouts/about.html index 9b9f748..627b556 100644 --- a/_src/_layouts/about.html +++ b/_src/_layouts/about.html @@ -43,8 +43,8 @@ layout: base

- SVG - PNG + SVG + PNG

@@ -56,8 +56,8 @@ layout: base

- SVG - PNG + SVG + PNG

@@ -69,8 +69,8 @@ layout: base

- SVG - PNG + SVG + PNG

diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb-square.png b/_src/mediakit/logo/logo-bigchaindb-square.png similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb-square.png rename to _src/mediakit/logo/logo-bigchaindb-square.png diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb-square.svg b/_src/mediakit/logo/logo-bigchaindb-square.svg similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb-square.svg rename to _src/mediakit/logo/logo-bigchaindb-square.svg diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb-white.png b/_src/mediakit/logo/logo-bigchaindb-white.png similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb-white.png rename to _src/mediakit/logo/logo-bigchaindb-white.png diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb-white.svg b/_src/mediakit/logo/logo-bigchaindb-white.svg similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb-white.svg rename to _src/mediakit/logo/logo-bigchaindb-white.svg diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb.png b/_src/mediakit/logo/logo-bigchaindb.png similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb.png rename to _src/mediakit/logo/logo-bigchaindb.png diff --git a/_src/_assets/mediakit/logo/logo-bigchaindb.svg b/_src/mediakit/logo/logo-bigchaindb.svg similarity index 100% rename from _src/_assets/mediakit/logo/logo-bigchaindb.svg rename to _src/mediakit/logo/logo-bigchaindb.svg diff --git a/_src/robots.txt b/_src/robots.txt index b625914..75fde4d 100644 --- a/_src/robots.txt +++ b/_src/robots.txt @@ -4,7 +4,7 @@ User-agent: * Disallow: /usecases/*.pdf$ -Disallow: /assets/mediakit/ +Disallow: /mediakit/ Disallow: /mediakit-bigchaindb.zip Sitemap: {{ site.url }}/sitemap.xml diff --git a/docs/mediakit.md b/docs/mediakit.md index 8cb60d0..f128d09 100644 --- a/docs/mediakit.md +++ b/docs/mediakit.md @@ -2,10 +2,10 @@ ![giphy](https://user-images.githubusercontent.com/90316/29563895-dde966ae-873f-11e7-976b-c2f0fa9578b6.gif) -Media kit lives under [`_src/_assets/mediakit/`](../_src/_assets/mediakit/). The folder structure will be reflected in the final zip file always available under [https://www.bigchaindb.com/mediakit-bigchaindb.zip](https://www.bigchaindb.com/mediakit-bigchaindb.zip). +Media kit lives under [`_src/mediakit/`](../_src/mediakit/). The folder structure will be reflected in the final zip file always available under [https://www.bigchaindb.com/mediakit-bigchaindb.zip](https://www.bigchaindb.com/mediakit-bigchaindb.zip). The zip file will be created automatically upon site build. File names in the `logo` folder should not be changed, those assets are used on the About page for the logo downloads. ## Editing media kit -All contents of the `_src/_assets/mediakit/` folder can be edited on GitHub. Whatever is put in there will be part of the final zip package after the next site build and deployment. +All contents of the `_src/mediakit/` folder can be edited on GitHub. Whatever is put in there will be part of the final zip package after the next site build and deployment. diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 11b5440..a82a5d2 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -239,19 +239,12 @@ export const fonts = () => src(SRC + '_assets/fonts/**/*') .pipe(dest(DIST + 'assets/fonts/')) -// -// Copy mediakit -// -export const mediakit = () => src(SRC + '_assets/mediakit/**/*') - .pipe(dest(DIST + 'assets/mediakit/')) - - // // Zip up media kit // -export const mediakitzip = () => src([ - SRC + '_assets/mediakit/**/*'], - { base: SRC + '_assets/' } +export const mediakit = () => src([ + SRC + 'mediakit/**/*'], + { base: SRC } ) .pipe($.zip('mediakit-bigchaindb.zip')) .pipe(dest(DIST)) @@ -353,7 +346,7 @@ const deployBanner = (done) => { // `gulp build` is the development build // `gulp build --production` is the production build // -export const build = series(buildBanner, clean, jekyll, parallel(html, css, js, images, fonts, svg, mediakit, mediakitzip), rev, revReplace, criticalCss) +export const build = series(buildBanner, clean, jekyll, parallel(html, css, js, images, fonts, svg, mediakit), rev, revReplace, criticalCss) // // Build site, run server, and watch for file changes