mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 01:36:55 +01:00
parent
843e065adb
commit
2bb6ac8da0
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,5 +3,4 @@ Gemfile.lock
|
|||||||
.jekyll-metadata
|
.jekyll-metadata
|
||||||
_dist
|
_dist
|
||||||
.awspublish*
|
.awspublish*
|
||||||
.sass-cache
|
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
12
README.md
12
README.md
@ -94,15 +94,3 @@ gulp build --production
|
|||||||
# deploy contents of /_dist to live
|
# deploy contents of /_dist to live
|
||||||
gulp deploy --live
|
gulp deploy --live
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## `_assets` & `assets`, WTF?
|
|
||||||
|
|
||||||
Basically:
|
|
||||||
|
|
||||||
- `_assets`: its content won't be copied over to generated site but handled by Gulp during build process.
|
|
||||||
- `assets`: its content is copied over to generated site and processed by Jekyll's assets pipeline
|
|
||||||
|
|
||||||
The site avoids using Jekyll's builtin assets pipeline for various reasons and all assets are handled and compiled by Gulp during the build process.
|
|
||||||
|
|
||||||
This has one important drawback: it limits the use of 3rd-party tools providing a UI for Jekyll-based sites cause all of those tools depend on a simple `jekyll serve` to show a preview of edited content. To work around that, the `assets` folder holds all assets which are merely copied, rather than processed (`fonts` & `videos`). As for the styles, the `css/` folder holds a collection file importing all our main styles. This file then gets processed by Jekyll's assets pipeline so at least styles work when doing a `jekyll serve`. Additionally, this `assets` folder holds a precompiled sprite sheet of the interface assets.
|
|
||||||
|
@ -59,9 +59,6 @@ redcarpet:
|
|||||||
source: ./_src
|
source: ./_src
|
||||||
destination: ./_dist
|
destination: ./_dist
|
||||||
|
|
||||||
sass:
|
|
||||||
sass_dir: _assets/styles
|
|
||||||
|
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
# --------------------
|
# --------------------
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
// bigchain.io
|
// bigchain.io
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// Normalize all the things
|
||||||
|
@import '../../../node_modules/normalize-css/normalize';
|
||||||
|
@import '../../../node_modules/normalize-opentype.css/normalize-opentype.scss';
|
||||||
|
|
||||||
// Variables & Mixins
|
// Variables & Mixins
|
||||||
@import 'bigchain/_variables';
|
@import 'bigchain/_variables';
|
||||||
@import 'bigchain/_mixins';
|
@import 'bigchain/_mixins';
|
||||||
|
@ -34,6 +34,9 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-moz-font-feature-settings: 'liga', 'kern';
|
-moz-font-feature-settings: 'liga', 'kern';
|
||||||
|
|
||||||
|
// remove old style numerals
|
||||||
|
font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 0, "lnum" 0, "dlig" 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset fonts for relevant elements
|
// Reset fonts for relevant elements
|
||||||
|
@ -1,33 +1,36 @@
|
|||||||
---
|
---
|
||||||
main:
|
main:
|
||||||
- title: How it works
|
- title: How it works
|
||||||
url: "/features/"
|
url: "/features/"
|
||||||
- title: Whitepaper
|
- title: Whitepaper
|
||||||
url: "/whitepaper/"
|
url: "/whitepaper/"
|
||||||
- title: Community
|
- title: Community
|
||||||
url: "/community/"
|
url: "/community/"
|
||||||
- title: Docs
|
- title: Docs
|
||||||
url: https://docs.bigchaindb.com/
|
url: https://docs.bigchaindb.com/
|
||||||
|
|
||||||
secondary:
|
secondary:
|
||||||
- title: About
|
- title: About
|
||||||
url: "/about/"
|
url: "/about/"
|
||||||
- title: Contact
|
- title: Contact
|
||||||
url: "/contact/"
|
url: "/contact/"
|
||||||
- title: Blog
|
- title: Blog
|
||||||
url: https://blog.bigchaindb.com
|
url: https://blog.bigchaindb.com
|
||||||
|
|
||||||
community:
|
community:
|
||||||
- title: GitHub
|
- title: GitHub
|
||||||
url: https://github.com/bigchaindb
|
url: https://github.com/bigchaindb
|
||||||
- title: Twitter
|
- title: Twitter
|
||||||
url: https://twitter.com/BigchainDB
|
url: https://twitter.com/BigchainDB
|
||||||
- title: Gitter
|
- title: Gitter
|
||||||
url: https://gitter.im/bigchaindb/bigchaindb
|
url: https://gitter.im/bigchaindb/bigchaindb
|
||||||
|
|
||||||
legal:
|
legal:
|
||||||
- title: Terms
|
- title: Terms
|
||||||
url: "/terms/"
|
url: "/terms/"
|
||||||
- title: Privacy
|
- title: Privacy
|
||||||
url: "/privacy/"
|
url: "/privacy/"
|
||||||
- title: Contributor Agreement
|
- title: Contributor Agreement
|
||||||
url: "/cla/"
|
url: "/cla/"
|
||||||
- title: Imprint
|
- title: Imprint
|
||||||
url: "/imprint/"
|
url: "/imprint/"
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
|
|
||||||
@import "bigchain";
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 169 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 169 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB |
24
gulpfile.js
24
gulpfile.js
@ -212,6 +212,25 @@ gulp.task('images', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Copy Fonts
|
||||||
|
//
|
||||||
|
gulp.task('fonts', function() {
|
||||||
|
return gulp.src(SRC + '_assets/fonts/**/*')
|
||||||
|
.pipe($.rename({dirname: ''}))
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/fonts/'));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Copy Videos
|
||||||
|
//
|
||||||
|
gulp.task('videos', function() {
|
||||||
|
return gulp.src(SRC + '_assets/videos/**/*')
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/videos/'));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Revision static assets
|
// Revision static assets
|
||||||
//
|
//
|
||||||
@ -269,6 +288,7 @@ gulp.task('default', ['build', 'server'], function() {
|
|||||||
gulp.watch([SRC + '_assets/javascripts/**/*.js'], ['js', browser.reload]);
|
gulp.watch([SRC + '_assets/javascripts/**/*.js'], ['js', browser.reload]);
|
||||||
gulp.watch([SRC + '_assets/images/**/*.{png,jpg,jpeg,gif,webp}'], ['images', browser.reload]);
|
gulp.watch([SRC + '_assets/images/**/*.{png,jpg,jpeg,gif,webp}'], ['images', browser.reload]);
|
||||||
gulp.watch([SRC + '_assets/images/**/*.{svg}'], ['svg', browser.reload]);
|
gulp.watch([SRC + '_assets/images/**/*.{svg}'], ['svg', browser.reload]);
|
||||||
|
gulp.watch([SRC + '_assets/videos/**/*.{mp4,webm}'], ['videos', browser.reload]);
|
||||||
gulp.watch([SRC + '**/*.{html,xml,json,txt,md,yml}', './_config.yml', SRC + '_includes/svg/*'], ['build', browser.reload]);
|
gulp.watch([SRC + '**/*.{html,xml,json,txt,md,yml}', './_config.yml', SRC + '_includes/svg/*'], ['build', browser.reload]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -288,7 +308,7 @@ gulp.task('build', function(done) {
|
|||||||
runSequence(
|
runSequence(
|
||||||
'clean',
|
'clean',
|
||||||
'jekyll',
|
'jekyll',
|
||||||
['html', 'css', 'js', 'images', 'svg'],
|
['html', 'css', 'js', 'images', 'fonts', 'videos', 'svg'],
|
||||||
'rev',
|
'rev',
|
||||||
'rev:replace',
|
'rev:replace',
|
||||||
done
|
done
|
||||||
@ -355,7 +375,7 @@ gulp.task('deploy', function() {
|
|||||||
cacheTime: 0,
|
cacheTime: 0,
|
||||||
gzip: true
|
gzip: true
|
||||||
},
|
},
|
||||||
|
|
||||||
// all pdf files, not cached
|
// all pdf files, not cached
|
||||||
'^.+\\.pdf': {
|
'^.+\\.pdf': {
|
||||||
cacheTime: 0
|
cacheTime: 0
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "^2.1.4",
|
"jquery": "^2.1.4",
|
||||||
|
"normalize-css": ">=2.3.1",
|
||||||
|
"normalize-opentype.css": ">=0.2.4",
|
||||||
"parsleyjs": "^2.0.7",
|
"parsleyjs": "^2.0.7",
|
||||||
"svg4everybody": "^2.0.0",
|
"svg4everybody": "^2.0.0",
|
||||||
"vivus": "^0.2.2",
|
"vivus": "^0.2.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user