General refactoring of rework
41
Gulpfile.js
@ -44,9 +44,10 @@ var notifier = require('node-notifier');
|
||||
var path = require('path');
|
||||
var plumber = require('gulp-plumber');
|
||||
var postcss = require('gulp-postcss');
|
||||
var replace = require('gulp-replace');
|
||||
var rev = require('gulp-rev');
|
||||
var sass = require('gulp-sass');
|
||||
// var sasslint = require('gulp-sass-lint');
|
||||
var sasslint = require('gulp-sass-lint');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var stream = require('webpack-stream');
|
||||
var uglify = require('gulp-uglify');
|
||||
@ -76,7 +77,13 @@ gulp.src = function() {
|
||||
util.log(util.colors.red(
|
||||
'Error (' + error.plugin + '): ' + error.message
|
||||
));
|
||||
var file = error.relativePath.split('/').pop();
|
||||
|
||||
/* Extract file where error happened, if existent */
|
||||
var file = error.relativePath
|
||||
? error.relativePath.split('/').pop()
|
||||
: '';
|
||||
|
||||
/* Dispatch system-level notification */
|
||||
notifier.notify({
|
||||
title: 'Error (' + error.plugin + '): ' + file,
|
||||
message: error.messageOriginal
|
||||
@ -89,12 +96,24 @@ gulp.src = function() {
|
||||
* Asset pipeline
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Build stylesheets from SASS source.
|
||||
*/
|
||||
gulp.task('assets:lint:stylesheets', function() {
|
||||
return gulp.src('src/assets/stylesheets/*.scss')
|
||||
.pipe(gulpif(args.production,
|
||||
sasslint({
|
||||
configFile: './.sass-lint.yml'
|
||||
})))
|
||||
.pipe(gulpif(args.production, sasslint.format()))
|
||||
.pipe(gulpif(args.production, sasslint.failOnError()));
|
||||
});
|
||||
|
||||
/*
|
||||
* Build stylesheets from SASS source.
|
||||
*/
|
||||
gulp.task('assets:stylesheets', function() {
|
||||
return gulp.src('src/assets/stylesheets/*.scss')
|
||||
// .pipe(gulpif(args.production, sasslint()))
|
||||
.pipe(gulpif(args.sourcemaps, sourcemaps.init()))
|
||||
.pipe(
|
||||
sass({
|
||||
@ -136,11 +155,6 @@ gulp.task('assets:javascripts', function() {
|
||||
},
|
||||
plugins: [
|
||||
new webpack.NoErrorsPlugin(),
|
||||
new webpack.ResolverPlugin(
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin( // TODO: remove?
|
||||
'.bower.json', ['main']
|
||||
)
|
||||
)
|
||||
].concat(
|
||||
args.production ? [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
@ -195,15 +209,14 @@ gulp.task('assets:modernizr', [
|
||||
* Copy static assets like images and webfonts.
|
||||
*/
|
||||
gulp.task('assets:static', function() {
|
||||
return gulp.src('src/assets/{fonts,images}/*.{jpg,png,gif}')
|
||||
return gulp.src('src/assets/images/**/*')
|
||||
.pipe(gulpif(args.production,
|
||||
minimage({
|
||||
optimizationLevel: 5,
|
||||
progressive: true,
|
||||
interlaced: true
|
||||
})))
|
||||
.pipe(addsrc.append('src/assets/{fonts,images}/*.{ico,eot,svg,ttf,woff}'))
|
||||
.pipe(gulp.dest('material/assets'));
|
||||
.pipe(gulp.dest('material/assets/images'));
|
||||
});
|
||||
|
||||
/*
|
||||
@ -214,6 +227,7 @@ gulp.task('assets:views', args.production ? [
|
||||
'assets:revisions:clean',
|
||||
'assets:revisions'
|
||||
] : [], function() {
|
||||
var metadata = require('./package.json');
|
||||
return gulp.src([
|
||||
'src/*.html'
|
||||
]).pipe(
|
||||
@ -221,8 +235,11 @@ gulp.task('assets:views', args.production ? [
|
||||
collapseBooleanAttributes: true,
|
||||
removeComments: true,
|
||||
removeScriptTypeAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true
|
||||
removeStyleLinkTypeAttributes: true,
|
||||
customAttrCollapse: /(content)/
|
||||
}))
|
||||
.pipe(replace('$theme-name$', metadata.name))
|
||||
.pipe(replace('$theme-version$', metadata.version))
|
||||
.pipe(compact())
|
||||
.pipe(gulpif(args.production,
|
||||
addsrc.append([
|
||||
|
@ -5,10 +5,9 @@ urna lobortis consectetur ut vitae urna. Donec eu viverra sapien. Nam
|
||||
tempor auctor lacus et congue. Quisque id congue velit. Lorem ipsum dolor
|
||||
sit amet, consectetur adipiscing elit.
|
||||
|
||||
#### Headline on fourth level
|
||||
## Headline on fourth level
|
||||
|
||||
Footnotes[^1] have a label[^@#$%] and the footnote's content.
|
||||
|
||||
### 2nd Headline on fourth level
|
||||
|
||||
[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at nisl ac
|
||||
|
3
material/assets/images/icons/bitbucket-black.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="352" height="448" viewBox="0 0 352 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M203.75 214.75q2 15.75-12.625 25.25t-27.875 1.5q-9.75-4.25-13.375-14.5t-0.125-20.5 13-14.5q9-4.5 18.125-3t16 8.875 6.875 16.875zM231.5 209.5q-3.5-26.75-28.25-41t-49.25-3.25q-15.75 7-25.125 22.125t-8.625 32.375q1 22.75 19.375 38.75t41.375 14q22.75-2 38-21t12.5-42zM291.25 74q-5-6.75-14-11.125t-14.5-5.5-17.75-3.125q-72.75-11.75-141.5 0.5-10.75 1.75-16.5 3t-13.75 5.5-12.5 10.75q7.5 7 19 11.375t18.375 5.5 21.875 2.875q57 7.25 112 0.25 15.75-2 22.375-3t18.125-5.375 18.75-11.625zM305.5 332.75q-2 6.5-3.875 19.125t-3.5 21-7.125 17.5-14.5 14.125q-21.5 12-47.375 17.875t-50.5 5.5-50.375-4.625q-11.5-2-20.375-4.5t-19.125-6.75-18.25-10.875-13-15.375q-6.25-24-14.25-73l1.5-4 4.5-2.25q55.75 37 126.625 37t126.875-37q5.25 1.5 6 5.75t-1.25 11.25-2 9.25zM350.75 92.5q-6.5 41.75-27.75 163.75-1.25 7.5-6.75 14t-10.875 10-13.625 7.75q-63 31.5-152.5 22-62-6.75-98.5-34.75-3.75-3-6.375-6.625t-4.25-8.75-2.25-8.5-1.5-9.875-1.375-8.75q-2.25-12.5-6.625-37.5t-7-40.375-5.875-36.875-5.5-39.5q0.75-6.5 4.375-12.125t7.875-9.375 11.25-7.5 11.5-5.625 12-4.625q31.25-11.5 78.25-16 94.75-9.25 169 12.5 38.75 11.5 53.75 30.5 4 5 4.125 12.75t-1.375 13.5z" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
3
material/assets/images/icons/bitbucket-white.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="352" height="448" viewBox="0 0 352 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M203.75 214.75q2 15.75-12.625 25.25t-27.875 1.5q-9.75-4.25-13.375-14.5t-0.125-20.5 13-14.5q9-4.5 18.125-3t16 8.875 6.875 16.875zM231.5 209.5q-3.5-26.75-28.25-41t-49.25-3.25q-15.75 7-25.125 22.125t-8.625 32.375q1 22.75 19.375 38.75t41.375 14q22.75-2 38-21t12.5-42zM291.25 74q-5-6.75-14-11.125t-14.5-5.5-17.75-3.125q-72.75-11.75-141.5 0.5-10.75 1.75-16.5 3t-13.75 5.5-12.5 10.75q7.5 7 19 11.375t18.375 5.5 21.875 2.875q57 7.25 112 0.25 15.75-2 22.375-3t18.125-5.375 18.75-11.625zM305.5 332.75q-2 6.5-3.875 19.125t-3.5 21-7.125 17.5-14.5 14.125q-21.5 12-47.375 17.875t-50.5 5.5-50.375-4.625q-11.5-2-20.375-4.5t-19.125-6.75-18.25-10.875-13-15.375q-6.25-24-14.25-73l1.5-4 4.5-2.25q55.75 37 126.625 37t126.875-37q5.25 1.5 6 5.75t-1.25 11.25-2 9.25zM350.75 92.5q-6.5 41.75-27.75 163.75-1.25 7.5-6.75 14t-10.875 10-13.625 7.75q-63 31.5-152.5 22-62-6.75-98.5-34.75-3.75-3-6.375-6.625t-4.25-8.75-2.25-8.5-1.5-9.875-1.375-8.75q-2.25-12.5-6.625-37.5t-7-40.375-5.875-36.875-5.5-39.5q0.75-6.5 4.375-12.125t7.875-9.375 11.25-7.5 11.5-5.625 12-4.625q31.25-11.5 78.25-16 94.75-9.25 169 12.5 38.75 11.5 53.75 30.5 4 5 4.125 12.75t-1.375 13.5z" fill="white" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
3
material/assets/images/icons/github-black.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="384" height="448" viewBox="0 0 384 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M192 32q52.25 0 96.375 25.75t69.875 69.875 25.75 96.375q0 62.75-36.625 112.875t-94.625 69.375q-6.75 1.25-10-1.75t-3.25-7.5q0-0.75 0.125-19.125t0.125-33.625q0-24.25-13-35.5 14.25-1.5 25.625-4.5t23.5-9.75 20.25-16.625 13.25-26.25 5.125-37.625q0-29.75-19.75-51.5 9.25-22.75-2-51-7-2.25-20.25 2.75t-23 11l-9.5 6q-23.25-6.5-48-6.5t-48 6.5q-4-2.75-10.625-6.75t-20.875-9.625-21.25-3.375q-11.25 28.25-2 51-19.75 21.75-19.75 51.5 0 21.25 5.125 37.5t13.125 26.25 20.125 16.75 23.5 9.75 25.625 4.5q-9.75 9-12.25 25.75-5.25 2.5-11.25 3.75t-14.25 1.25-16.375-5.375-13.875-15.625q-4.75-8-12.125-13t-12.375-6l-5-0.75q-5.25 0-7.25 1.125t-1.25 2.875 2.25 3.5 3.25 3l1.75 1.25q5.5 2.5 10.875 9.5t7.875 12.75l2.5 5.75q3.25 9.5 11 15.375t16.75 7.5 17.375 1.75 13.875-0.875l5.75-1q0 9.5 0.125 22.125t0.125 13.625q0 4.5-3.25 7.5t-10 1.75q-58-19.25-94.625-69.375t-36.625-112.875q0-52.25 25.75-96.375t69.875-69.875 96.375-25.75zM72.75 307.75q0.75-1.75-1.75-3-2.5-0.75-3.25 0.5-0.75 1.75 1.75 3 2.25 1.5 3.25-0.5zM80.5 316.25q1.75-1.25-0.5-4-2.5-2.25-4-0.75-1.75 1.25 0.5 4 2.5 2.5 4 0.75zM88 327.5q2.25-1.75 0-4.75-2-3.25-4.25-1.5-2.25 1.25 0 4.5t4.25 1.75zM98.5 338q2-2-1-4.75-3-3-5-0.75-2.25 2 1 4.75 3 3 5 0.75zM112.75 344.25q0.75-2.75-3.25-4-3.75-1-4.75 1.75t3.25 3.75q3.75 1.5 4.75-1.5zM128.5 345.5q0-3.25-4.25-2.75-4 0-4 2.75 0 3.25 4.25 2.75 4 0 4-2.75zM143 343q-0.5-2.75-4.5-2.25-4 0.75-3.5 3.75t4.5 2 3.5-3.5z" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
3
material/assets/images/icons/github-white.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="384" height="448" viewBox="0 0 384 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M192 32q52.25 0 96.375 25.75t69.875 69.875 25.75 96.375q0 62.75-36.625 112.875t-94.625 69.375q-6.75 1.25-10-1.75t-3.25-7.5q0-0.75 0.125-19.125t0.125-33.625q0-24.25-13-35.5 14.25-1.5 25.625-4.5t23.5-9.75 20.25-16.625 13.25-26.25 5.125-37.625q0-29.75-19.75-51.5 9.25-22.75-2-51-7-2.25-20.25 2.75t-23 11l-9.5 6q-23.25-6.5-48-6.5t-48 6.5q-4-2.75-10.625-6.75t-20.875-9.625-21.25-3.375q-11.25 28.25-2 51-19.75 21.75-19.75 51.5 0 21.25 5.125 37.5t13.125 26.25 20.125 16.75 23.5 9.75 25.625 4.5q-9.75 9-12.25 25.75-5.25 2.5-11.25 3.75t-14.25 1.25-16.375-5.375-13.875-15.625q-4.75-8-12.125-13t-12.375-6l-5-0.75q-5.25 0-7.25 1.125t-1.25 2.875 2.25 3.5 3.25 3l1.75 1.25q5.5 2.5 10.875 9.5t7.875 12.75l2.5 5.75q3.25 9.5 11 15.375t16.75 7.5 17.375 1.75 13.875-0.875l5.75-1q0 9.5 0.125 22.125t0.125 13.625q0 4.5-3.25 7.5t-10 1.75q-58-19.25-94.625-69.375t-36.625-112.875q0-52.25 25.75-96.375t69.875-69.875 96.375-25.75zM72.75 307.75q0.75-1.75-1.75-3-2.5-0.75-3.25 0.5-0.75 1.75 1.75 3 2.25 1.5 3.25-0.5zM80.5 316.25q1.75-1.25-0.5-4-2.5-2.25-4-0.75-1.75 1.25 0.5 4 2.5 2.5 4 0.75zM88 327.5q2.25-1.75 0-4.75-2-3.25-4.25-1.5-2.25 1.25 0 4.5t4.25 1.75zM98.5 338q2-2-1-4.75-3-3-5-0.75-2.25 2 1 4.75 3 3 5 0.75zM112.75 344.25q0.75-2.75-3.25-4-3.75-1-4.75 1.75t3.25 3.75q3.75 1.5 4.75-1.5zM128.5 345.5q0-3.25-4.25-2.75-4 0-4 2.75 0 3.25 4.25 2.75 4 0 4-2.75zM143 343q-0.5-2.75-4.5-2.25-4 0.75-3.5 3.75t4.5 2 3.5-3.5z" fill="white" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
@ -1,4 +1,4 @@
|
||||
!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o),a=n(2),s=i(a),c=n(3),l=i(c);document.addEventListener("DOMContentLoaded",function(){Modernizr.addTest("ios",function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}),Modernizr.addTest("standalone",function(){return!!navigator.standalone}),r["default"].attach(document.body);var e=window.matchMedia("(min-width: 1200px)"),t=function(){e.matches?n.listen():n.unlisten()},n=new s["default"](".md-sidebar--primary");t();var i=new s["default"](".md-sidebar--secondary");i.listen();var o=new l["default"](".md-nav--toc .md-nav__item a");o.listen(),window.addEventListener("resize",t);var a=0,c=document.getElementById("md-toggle-search");c.addEventListener("click",function(e){var t=document.body.classList,n=!matchMedia("only screen and (min-width: 960px)").matches;t.contains("md-js__body--locked")?(t.remove("md-js__body--locked"),n&&setTimeout(function(){window.scrollTo(0,a)},100)):(a=window.scrollY,n&&setTimeout(function(){window.scrollTo(0,0)},400),setTimeout(function(){this.checked&&(n&&t.add("md-js__body--locked"),setTimeout(function(){document.getElementById("md-search").focus()},200))}.bind(this),450))})})},function(e,t,n){var i;!function(){"use strict";/**
|
||||
!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o),a=n(2),s=i(a),c=n(3),l=i(c);document.addEventListener("DOMContentLoaded",function(){Modernizr.addTest("ios",function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}),Modernizr.addTest("standalone",function(){return!!navigator.standalone}),r["default"].attach(document.body);var e=window.matchMedia("(min-width: 1200px)"),t=function(){e.matches?n.listen():n.unlisten()},n=new s["default"](".md-sidebar--primary");t();var i=new s["default"](".md-sidebar--secondary");i.listen();var o=new l["default"](".md-nav--toc .md-nav__link");o.listen(),window.addEventListener("resize",t);var a=0,c=document.getElementById("md-toggle-search");c.addEventListener("click",function(e){var t=document.body.classList,n=!matchMedia("only screen and (min-width: 960px)").matches;t.contains("md-js__body--locked")?(t.remove("md-js__body--locked"),n&&setTimeout(function(){window.scrollTo(0,a)},100)):(a=window.scrollY,n&&setTimeout(function(){window.scrollTo(0,0)},400),setTimeout(function(){this.checked&&(n&&t.add("md-js__body--locked"),setTimeout(function(){document.getElementById("md-search").focus()},200))}.bind(this),450))})})},function(e,t,n){var i;!function(){"use strict";/**
|
||||
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
|
||||
*
|
||||
* @codingstandard ftlabs-jsv2
|
@ -1,4 +1,4 @@
|
||||
!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o),a=n(2),s=i(a),c=n(3),l=i(c);document.addEventListener("DOMContentLoaded",function(){Modernizr.addTest("ios",function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}),Modernizr.addTest("standalone",function(){return!!navigator.standalone}),r["default"].attach(document.body);var e=window.matchMedia("(min-width: 1200px)"),t=function(){e.matches?n.listen():n.unlisten()},n=new s["default"](".md-sidebar--primary");t();var i=new s["default"](".md-sidebar--secondary");i.listen();var o=new l["default"](".md-nav--toc .md-nav__item a");o.listen(),window.addEventListener("resize",t);var a=0,c=document.getElementById("md-toggle-search");c.addEventListener("click",function(e){var t=document.body.classList,n=!matchMedia("only screen and (min-width: 960px)").matches;t.contains("md-js__body--locked")?(t.remove("md-js__body--locked"),n&&setTimeout(function(){window.scrollTo(0,a)},100)):(a=window.scrollY,n&&setTimeout(function(){window.scrollTo(0,0)},400),setTimeout(function(){this.checked&&(n&&t.add("md-js__body--locked"),setTimeout(function(){document.getElementById("md-search").focus()},200))}.bind(this),450))})})},function(e,t,n){var i;!function(){"use strict";/**
|
||||
!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o),a=n(2),s=i(a),c=n(3),l=i(c);document.addEventListener("DOMContentLoaded",function(){Modernizr.addTest("ios",function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}),Modernizr.addTest("standalone",function(){return!!navigator.standalone}),r["default"].attach(document.body);var e=window.matchMedia("(min-width: 1200px)"),t=function(){e.matches?n.listen():n.unlisten()},n=new s["default"](".md-sidebar--primary");t();var i=new s["default"](".md-sidebar--secondary");i.listen();var o=new l["default"](".md-nav--toc .md-nav__link");o.listen(),window.addEventListener("resize",t);var a=0,c=document.getElementById("md-toggle-search");c.addEventListener("click",function(e){var t=document.body.classList,n=!matchMedia("only screen and (min-width: 960px)").matches;t.contains("md-js__body--locked")?(t.remove("md-js__body--locked"),n&&setTimeout(function(){window.scrollTo(0,a)},100)):(a=window.scrollY,n&&setTimeout(function(){window.scrollTo(0,0)},400),setTimeout(function(){this.checked&&(n&&t.add("md-js__body--locked"),setTimeout(function(){document.getElementById("md-search").focus()},200))}.bind(this),450))})})},function(e,t,n){var i;!function(){"use strict";/**
|
||||
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
|
||||
*
|
||||
* @codingstandard ftlabs-jsv2
|
||||
|
1
material/assets/javascripts/modernizr-772e114b08.js
Normal file
1
material/assets/stylesheets/application-9be6329335.css
Normal file
@ -1,38 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
|
||||
<!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
|
||||
<!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
|
||||
<!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
|
||||
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<html class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||
{% block htmltitle %}
|
||||
{% if page_title %}
|
||||
<title>{{ page_title }} - {{ site_name }}</title>
|
||||
{% elif page_description %}
|
||||
<title>{{ site_name }} - {{ page_description }}</title>
|
||||
{% else %}
|
||||
<title>{{ site_name }}</title>
|
||||
{% endif %}
|
||||
{% if page_description %}
|
||||
<meta name="description" content="{{ page_description }}">
|
||||
{% endif %}
|
||||
{% if canonical_url %}
|
||||
<link rel="canonical" href="{{ canonical_url }}">
|
||||
{% endif %}
|
||||
{% if site_author %}
|
||||
<meta name="author" content="{{ site_author }}">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-984ab9f73e.css">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,700">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700">
|
||||
{% if page_title %}
|
||||
<title>{{ page_title }} - {{ site_name }}</title>
|
||||
{% elif page_description %}
|
||||
<title>{{ site_name }} - {{ page_description }}</title>
|
||||
{% else %}
|
||||
<title>{{ site_name }}</title>
|
||||
{% endif %}
|
||||
{% if page_description %}
|
||||
<meta name="description" content="{{ page_description }}">
|
||||
{% endif %}
|
||||
{% if canonical_url %}
|
||||
<link rel="canonical" href="{{ canonical_url }}">
|
||||
{% endif %}
|
||||
{% if site_author %}
|
||||
<meta name="author" content="{{ site_author }}">
|
||||
{% endif %}
|
||||
<meta name="generator" content="mkdocs+mkdocs-material#0.2.1">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-9be6329335.css">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:500,700">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
{% for path in extra_css %}
|
||||
<link rel="stylesheet" href="{{ path }}">
|
||||
{% endfor %}
|
||||
<script src="{{ base_url }}/assets/javascripts/modernizr-ca288b1d5b.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/modernizr-772e114b08.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<input class="md-toggle md-toggle--drawer" type="checkbox" id="drawer">
|
||||
@ -77,7 +72,7 @@
|
||||
var base_url = '{{ base_url }}';
|
||||
var repo_url = '{{ repo_url }}';
|
||||
</script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-e9877e2824.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-56219c4975.js"></script>
|
||||
{% for path in extra_javascript %}
|
||||
<script src="{{ path }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -35,6 +35,11 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="md-flex__cell md-flex__cell--shrink md-header-nav__source">
|
||||
<a href="{{ repo_url }}" title="GitHub" class="md-header-nav__link">
|
||||
GitHub <small>135 Stars</small>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<nav class="md-header-search">
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
|
||||
"assets/javascripts/application.js": "assets/javascripts/application-e9877e2824.js",
|
||||
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-ca288b1d5b.js",
|
||||
"assets/stylesheets/application.css": "assets/stylesheets/application-984ab9f73e.css"
|
||||
"assets/javascripts/application.js": "assets/javascripts/application-56219c4975.js",
|
||||
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-772e114b08.js",
|
||||
"assets/stylesheets/application.css": "assets/stylesheets/application-9be6329335.css"
|
||||
}
|
0
material/search.html
Normal file
@ -42,6 +42,7 @@
|
||||
"gulp-plumber": "^1.1.0",
|
||||
"gulp-postcss": "^6.1.0",
|
||||
"gulp-remove-empty-lines": "0.0.2",
|
||||
"gulp-replace": "^0.5.4",
|
||||
"gulp-rev": "^7.0.0",
|
||||
"gulp-rev-collector": "^1.0.2",
|
||||
"gulp-sass": "^2.2.0",
|
||||
|
3
src/assets/images/icons/bitbucket-black.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="352" height="448" viewBox="0 0 352 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M203.75 214.75q2 15.75-12.625 25.25t-27.875 1.5q-9.75-4.25-13.375-14.5t-0.125-20.5 13-14.5q9-4.5 18.125-3t16 8.875 6.875 16.875zM231.5 209.5q-3.5-26.75-28.25-41t-49.25-3.25q-15.75 7-25.125 22.125t-8.625 32.375q1 22.75 19.375 38.75t41.375 14q22.75-2 38-21t12.5-42zM291.25 74q-5-6.75-14-11.125t-14.5-5.5-17.75-3.125q-72.75-11.75-141.5 0.5-10.75 1.75-16.5 3t-13.75 5.5-12.5 10.75q7.5 7 19 11.375t18.375 5.5 21.875 2.875q57 7.25 112 0.25 15.75-2 22.375-3t18.125-5.375 18.75-11.625zM305.5 332.75q-2 6.5-3.875 19.125t-3.5 21-7.125 17.5-14.5 14.125q-21.5 12-47.375 17.875t-50.5 5.5-50.375-4.625q-11.5-2-20.375-4.5t-19.125-6.75-18.25-10.875-13-15.375q-6.25-24-14.25-73l1.5-4 4.5-2.25q55.75 37 126.625 37t126.875-37q5.25 1.5 6 5.75t-1.25 11.25-2 9.25zM350.75 92.5q-6.5 41.75-27.75 163.75-1.25 7.5-6.75 14t-10.875 10-13.625 7.75q-63 31.5-152.5 22-62-6.75-98.5-34.75-3.75-3-6.375-6.625t-4.25-8.75-2.25-8.5-1.5-9.875-1.375-8.75q-2.25-12.5-6.625-37.5t-7-40.375-5.875-36.875-5.5-39.5q0.75-6.5 4.375-12.125t7.875-9.375 11.25-7.5 11.5-5.625 12-4.625q31.25-11.5 78.25-16 94.75-9.25 169 12.5 38.75 11.5 53.75 30.5 4 5 4.125 12.75t-1.375 13.5z" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
3
src/assets/images/icons/bitbucket-white.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="352" height="448" viewBox="0 0 352 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M203.75 214.75q2 15.75-12.625 25.25t-27.875 1.5q-9.75-4.25-13.375-14.5t-0.125-20.5 13-14.5q9-4.5 18.125-3t16 8.875 6.875 16.875zM231.5 209.5q-3.5-26.75-28.25-41t-49.25-3.25q-15.75 7-25.125 22.125t-8.625 32.375q1 22.75 19.375 38.75t41.375 14q22.75-2 38-21t12.5-42zM291.25 74q-5-6.75-14-11.125t-14.5-5.5-17.75-3.125q-72.75-11.75-141.5 0.5-10.75 1.75-16.5 3t-13.75 5.5-12.5 10.75q7.5 7 19 11.375t18.375 5.5 21.875 2.875q57 7.25 112 0.25 15.75-2 22.375-3t18.125-5.375 18.75-11.625zM305.5 332.75q-2 6.5-3.875 19.125t-3.5 21-7.125 17.5-14.5 14.125q-21.5 12-47.375 17.875t-50.5 5.5-50.375-4.625q-11.5-2-20.375-4.5t-19.125-6.75-18.25-10.875-13-15.375q-6.25-24-14.25-73l1.5-4 4.5-2.25q55.75 37 126.625 37t126.875-37q5.25 1.5 6 5.75t-1.25 11.25-2 9.25zM350.75 92.5q-6.5 41.75-27.75 163.75-1.25 7.5-6.75 14t-10.875 10-13.625 7.75q-63 31.5-152.5 22-62-6.75-98.5-34.75-3.75-3-6.375-6.625t-4.25-8.75-2.25-8.5-1.5-9.875-1.375-8.75q-2.25-12.5-6.625-37.5t-7-40.375-5.875-36.875-5.5-39.5q0.75-6.5 4.375-12.125t7.875-9.375 11.25-7.5 11.5-5.625 12-4.625q31.25-11.5 78.25-16 94.75-9.25 169 12.5 38.75 11.5 53.75 30.5 4 5 4.125 12.75t-1.375 13.5z" fill="white" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
3
src/assets/images/icons/github-black.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="384" height="448" viewBox="0 0 384 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M192 32q52.25 0 96.375 25.75t69.875 69.875 25.75 96.375q0 62.75-36.625 112.875t-94.625 69.375q-6.75 1.25-10-1.75t-3.25-7.5q0-0.75 0.125-19.125t0.125-33.625q0-24.25-13-35.5 14.25-1.5 25.625-4.5t23.5-9.75 20.25-16.625 13.25-26.25 5.125-37.625q0-29.75-19.75-51.5 9.25-22.75-2-51-7-2.25-20.25 2.75t-23 11l-9.5 6q-23.25-6.5-48-6.5t-48 6.5q-4-2.75-10.625-6.75t-20.875-9.625-21.25-3.375q-11.25 28.25-2 51-19.75 21.75-19.75 51.5 0 21.25 5.125 37.5t13.125 26.25 20.125 16.75 23.5 9.75 25.625 4.5q-9.75 9-12.25 25.75-5.25 2.5-11.25 3.75t-14.25 1.25-16.375-5.375-13.875-15.625q-4.75-8-12.125-13t-12.375-6l-5-0.75q-5.25 0-7.25 1.125t-1.25 2.875 2.25 3.5 3.25 3l1.75 1.25q5.5 2.5 10.875 9.5t7.875 12.75l2.5 5.75q3.25 9.5 11 15.375t16.75 7.5 17.375 1.75 13.875-0.875l5.75-1q0 9.5 0.125 22.125t0.125 13.625q0 4.5-3.25 7.5t-10 1.75q-58-19.25-94.625-69.375t-36.625-112.875q0-52.25 25.75-96.375t69.875-69.875 96.375-25.75zM72.75 307.75q0.75-1.75-1.75-3-2.5-0.75-3.25 0.5-0.75 1.75 1.75 3 2.25 1.5 3.25-0.5zM80.5 316.25q1.75-1.25-0.5-4-2.5-2.25-4-0.75-1.75 1.25 0.5 4 2.5 2.5 4 0.75zM88 327.5q2.25-1.75 0-4.75-2-3.25-4.25-1.5-2.25 1.25 0 4.5t4.25 1.75zM98.5 338q2-2-1-4.75-3-3-5-0.75-2.25 2 1 4.75 3 3 5 0.75zM112.75 344.25q0.75-2.75-3.25-4-3.75-1-4.75 1.75t3.25 3.75q3.75 1.5 4.75-1.5zM128.5 345.5q0-3.25-4.25-2.75-4 0-4 2.75 0 3.25 4.25 2.75 4 0 4-2.75zM143 343q-0.5-2.75-4.5-2.25-4 0.75-3.5 3.75t4.5 2 3.5-3.5z" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
3
src/assets/images/icons/github-white.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="384" height="448" viewBox="0 0 384 448" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M192 32q52.25 0 96.375 25.75t69.875 69.875 25.75 96.375q0 62.75-36.625 112.875t-94.625 69.375q-6.75 1.25-10-1.75t-3.25-7.5q0-0.75 0.125-19.125t0.125-33.625q0-24.25-13-35.5 14.25-1.5 25.625-4.5t23.5-9.75 20.25-16.625 13.25-26.25 5.125-37.625q0-29.75-19.75-51.5 9.25-22.75-2-51-7-2.25-20.25 2.75t-23 11l-9.5 6q-23.25-6.5-48-6.5t-48 6.5q-4-2.75-10.625-6.75t-20.875-9.625-21.25-3.375q-11.25 28.25-2 51-19.75 21.75-19.75 51.5 0 21.25 5.125 37.5t13.125 26.25 20.125 16.75 23.5 9.75 25.625 4.5q-9.75 9-12.25 25.75-5.25 2.5-11.25 3.75t-14.25 1.25-16.375-5.375-13.875-15.625q-4.75-8-12.125-13t-12.375-6l-5-0.75q-5.25 0-7.25 1.125t-1.25 2.875 2.25 3.5 3.25 3l1.75 1.25q5.5 2.5 10.875 9.5t7.875 12.75l2.5 5.75q3.25 9.5 11 15.375t16.75 7.5 17.375 1.75 13.875-0.875l5.75-1q0 9.5 0.125 22.125t0.125 13.625q0 4.5-3.25 7.5t-10 1.75q-58-19.25-94.625-69.375t-36.625-112.875q0-52.25 25.75-96.375t69.875-69.875 96.375-25.75zM72.75 307.75q0.75-1.75-1.75-3-2.5-0.75-3.25 0.5-0.75 1.75 1.75 3 2.25 1.5 3.25-0.5zM80.5 316.25q1.75-1.25-0.5-4-2.5-2.25-4-0.75-1.75 1.25 0.5 4 2.5 2.5 4 0.75zM88 327.5q2.25-1.75 0-4.75-2-3.25-4.25-1.5-2.25 1.25 0 4.5t4.25 1.75zM98.5 338q2-2-1-4.75-3-3-5-0.75-2.25 2 1 4.75 3 3 5 0.75zM112.75 344.25q0.75-2.75-3.25-4-3.75-1-4.75 1.75t3.25 3.75q3.75 1.5 4.75-1.5zM128.5 345.5q0-3.25-4.25-2.75-4 0-4 2.75 0 3.25 4.25 2.75 4 0 4-2.75zM143 343q-0.5-2.75-4.5-2.25-4 0.75-3.5 3.75t4.5 2 3.5-3.5z" fill="white" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
@ -67,7 +67,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
var toc = new Sidebar('.md-sidebar--secondary');
|
||||
toc.listen();
|
||||
|
||||
var spy = new ScrollSpy('.md-nav--toc .md-nav__item a');
|
||||
var spy = new ScrollSpy('.md-nav--toc .md-nav__link');
|
||||
spy.listen();
|
||||
|
||||
window.addEventListener('resize', handler);
|
||||
|
@ -54,7 +54,7 @@
|
||||
transform: translate3d(5%, 0, 0);
|
||||
transition: transform .3s .15s cubic-bezier(0.1, 0.7, 0.1, 1.0), opacity .15s .15s;
|
||||
|
||||
#md-toggle-search:checked ~ .md-header & {
|
||||
.md-toggle--search:checked ~ .md-header & {
|
||||
transform: translate3d(0, 0, 0);
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
@ -65,4 +65,23 @@
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
.md-icon--github {
|
||||
&::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
background-image: url("../images/icons/github-white.svg"); // TODO: user default source icon otherwise
|
||||
background-size: 2.4rem 2.4rem;
|
||||
background-repeat: no-repeat;
|
||||
// width: 12.4rem;
|
||||
height: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.md-header-nav__source {
|
||||
display: table;
|
||||
white-space: nowrap;
|
||||
|
||||
|
||||
}
|
@ -154,5 +154,3 @@ input {
|
||||
outline: 0;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,6 +45,8 @@ kbd {
|
||||
pre,
|
||||
code {
|
||||
font-family: "Roboto Mono", "Courier New", Courier, monospace;
|
||||
font-weight: 500;
|
||||
font-feature-settings: "kern", "onum", "liga";
|
||||
|
||||
// Use system fonts, if browser doesn't support webfonts
|
||||
.no-fontface & {
|
||||
@ -61,8 +63,11 @@ code {
|
||||
font-size: ms(0);
|
||||
line-height: 1.6;
|
||||
|
||||
// Body copy
|
||||
p {
|
||||
// Default spacing
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
blockquote {
|
||||
margin: 1.25em 0;
|
||||
}
|
||||
|
||||
@ -147,12 +152,17 @@ code {
|
||||
|
||||
// Inline code blocks
|
||||
code {
|
||||
padding: 0.1rem 0.4rem;
|
||||
margin: 0 0.4rem;
|
||||
padding: 0.1rem 0;
|
||||
background: #F7F7F7;
|
||||
color: #37474F;
|
||||
font-size: 85%;
|
||||
font-weight: 400;
|
||||
box-shadow: 0.4rem 0 0 #F7F7F7,
|
||||
-0.4rem 0 0 #F7F7F7;
|
||||
word-break: break-word;
|
||||
|
||||
// Hack: Make FF >= 34 behave correctly
|
||||
box-decoration-break: clone;
|
||||
}
|
||||
|
||||
// Formatted code blocks
|
||||
@ -224,6 +234,7 @@ code {
|
||||
ul,
|
||||
ol {
|
||||
margin-left: 1.0rem;
|
||||
padding: 0;
|
||||
|
||||
// List elements
|
||||
li {
|
||||
|
@ -35,7 +35,6 @@
|
||||
.o { color: inherit; }
|
||||
|
||||
// Generics
|
||||
|
||||
.ge { color: #000000; } // Generic.Emph
|
||||
.gr { color: #AA0000; } // Generic.Error
|
||||
.gh { color: #999999; } // Generic.Heading
|
||||
@ -46,7 +45,6 @@
|
||||
.gt { color: #AA0000; } // Generic.Traceback
|
||||
|
||||
// Keywords
|
||||
|
||||
.k { color: #A71D5D; } // Keyword
|
||||
.kc { color: #A71D5D; } // Keyword.Constant
|
||||
.kd { color: #A71D5D; } // Keyword.Declaration
|
||||
@ -56,7 +54,6 @@
|
||||
.kt { color: #0086B3; } // Keyword.Type
|
||||
|
||||
// Comments
|
||||
|
||||
.c { color: #969896; } // Comment
|
||||
.cm { color: #969896; } // Comment.Multiline
|
||||
.cp { color: #666666; } // Comment.Preproc
|
||||
@ -64,7 +61,6 @@
|
||||
.cs { color: #969896; } // Comment.Special
|
||||
|
||||
// Names
|
||||
|
||||
.na { color: #795DA3; } // Name.Attribute
|
||||
.na { color: #795DA3; } // Name.Attribute
|
||||
.nb { color: #795DA3; } // Name.Builtin
|
||||
@ -85,7 +81,6 @@
|
||||
.ow { color: inherit; } // Operator.Word
|
||||
|
||||
// Numbers
|
||||
|
||||
.m { color: #0086B3; } // Literal.Number
|
||||
.mf { color: #0086B3; } // Literal.Number.Float
|
||||
.mh { color: #0086B3; } // Literal.Number.Hex
|
||||
@ -94,7 +89,6 @@
|
||||
.il { color: #0086B3; } // Literal.Number.Integer.Long
|
||||
|
||||
// Strings
|
||||
|
||||
.s { color: #183691; } // Literal.String
|
||||
.sb { color: #183691; } // Literal.String.Backtick
|
||||
.sc { color: #183691; } // Literal.String.Char
|
||||
|
@ -45,12 +45,18 @@
|
||||
&__link {
|
||||
padding-top: 2.8rem;
|
||||
padding-bottom: 0.8rem;
|
||||
transition: opacity 0.25s;
|
||||
|
||||
// [mobile landscape +]: Set proportional width
|
||||
@include break-from-device(mobile landscape) {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
// Hovered link
|
||||
&:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
// Link to previous page
|
||||
&--prev {
|
||||
width: 25%;
|
||||
@ -80,14 +86,8 @@
|
||||
margin: 0.4rem;
|
||||
padding: 0.8rem;
|
||||
transition: background 0.25s;
|
||||
border-radius: 100%;
|
||||
font-size: 2.4rem;
|
||||
cursor: pointer;
|
||||
|
||||
// Pushed/clicked icon
|
||||
&:active {
|
||||
background: $md-color-white--lightest;
|
||||
}
|
||||
}
|
||||
|
||||
// Link title
|
||||
|
@ -47,15 +47,14 @@
|
||||
position: relative;
|
||||
margin: 0.4rem;
|
||||
padding: 0.8rem;
|
||||
transition: background 0.25s;
|
||||
border-radius: 100%;
|
||||
transition: opacity 0.25s;
|
||||
font-size: 2.4rem;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
|
||||
// Pushed/clicked icon
|
||||
&:active {
|
||||
background: $md-color-white--lightest;
|
||||
&:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
// [tablet +]: Hide the search icon from tablet
|
||||
|
@ -43,7 +43,7 @@
|
||||
transform-origin: center;
|
||||
transition: transform 0.3s 0.1s,
|
||||
opacity 0.2s 0.2s;
|
||||
border-radius: 100%;
|
||||
border-radius: 2.0rem; // TODO: correct?
|
||||
background: #EEEEEE;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
@ -139,6 +139,11 @@
|
||||
color: $md-color-white;
|
||||
}
|
||||
|
||||
// Hovered search field
|
||||
&:hover {
|
||||
background: $md-color-white--lighter;
|
||||
}
|
||||
|
||||
// Active search field
|
||||
&:focus {
|
||||
width: 40.0rem;
|
||||
|
@ -77,7 +77,7 @@
|
||||
display: block;
|
||||
float: right;
|
||||
|
||||
// Hack to align right in case of locked sidebar
|
||||
// Hack: align right in case of locked sidebar
|
||||
&.md-js__sidebar--locked {
|
||||
margin-left: 100%;
|
||||
transform: translate(-100%, 0);
|
||||
|
12
src/assets/stylesheets/themes/_default.scss
Normal file
@ -0,0 +1,12 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// Theme colors
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Headlines
|
||||
// $md-theme-h1-color: $md-color-black--light;
|
||||
// $md-theme-h2-color: $md-color-black;
|
||||
// $md-theme-h3-color: $md-color-black;
|
||||
// $md-theme-h4-color: $md-color-black;
|
||||
// $md-theme-h5-6-color: $md-color-black--light;
|
||||
//
|
||||
// $md-theme-hr-color: $md-color-black--lighter;
|
@ -21,45 +21,40 @@
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
|
||||
<!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
|
||||
<!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
|
||||
<!--[if IE 9 ]> <html class="no-js ie9"> <![endif]-->
|
||||
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<html class="no-js">
|
||||
<head>
|
||||
|
||||
<!-- Charset and viewport -->
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,
|
||||
user-scalable=no, initial-scale=1, maximum-scale=1" />
|
||||
user-scalable=no, initial-scale=1, maximum-scale=1" />
|
||||
|
||||
<!-- General meta tags -->
|
||||
{% block htmltitle %}
|
||||
<!-- Site title -->
|
||||
{% if page_title %}
|
||||
<title>{{ page_title }} - {{ site_name }}</title>
|
||||
{% elif page_description %}
|
||||
<title>{{ site_name }} - {{ page_description }}</title>
|
||||
{% else %}
|
||||
<title>{{ site_name }}</title>
|
||||
{% endif %}
|
||||
|
||||
<!-- Site title -->
|
||||
{% if page_title %}
|
||||
<title>{{ page_title }} - {{ site_name }}</title>
|
||||
{% elif page_description %}
|
||||
<title>{{ site_name }} - {{ page_description }}</title>
|
||||
{% else %}
|
||||
<title>{{ site_name }}</title>
|
||||
{% endif %}
|
||||
<!-- Site description -->
|
||||
{% if page_description %}
|
||||
<meta name="description" content="{{ page_description }}" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Site description -->
|
||||
{% if page_description %}
|
||||
<meta name="description" content="{{ page_description }}" />
|
||||
{% endif %}
|
||||
<!-- Canonical -->
|
||||
{% if canonical_url %}
|
||||
<link rel="canonical" href="{{ canonical_url }}" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Canonical -->
|
||||
{% if canonical_url %}
|
||||
<link rel="canonical" href="{{ canonical_url }}" />
|
||||
{% endif %}
|
||||
<!-- Author -->
|
||||
{% if site_author %}
|
||||
<meta name="author" content="{{ site_author }}" />
|
||||
{% endif %}
|
||||
|
||||
<!-- Author -->
|
||||
{% if site_author %}
|
||||
<meta name="author" content="{{ site_author }}" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<!-- Generator banner -->
|
||||
<meta name="generator" content="mkdocs+$theme-name$#$theme-version$" />
|
||||
|
||||
<!-- Theme-related stylesheets -->
|
||||
<link rel="stylesheet" type="text/css"
|
||||
@ -67,9 +62,9 @@
|
||||
|
||||
<!-- Web fonts -->
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" />
|
||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700" />
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700" />
|
||||
href="https://fonts.googleapis.com/css?family=Roboto+Mono:500,700" />
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
|
||||
|
@ -73,14 +73,18 @@
|
||||
</div>
|
||||
|
||||
<!-- Link to GitHub profile -->
|
||||
<!-- <div class="md-flex__cell md-flex__cell--shrink">
|
||||
<a href="{{ repo_url }}" title="GitHub" class="md-header-nav__source">
|
||||
<i class="md-icon md-icon--github md-header-nav__icon"></i>
|
||||
<div class="md-flex__cell md-flex__cell--shrink md-header-nav__source">
|
||||
<a href="{{ repo_url }}" title="GitHub" class="md-header-nav__link">
|
||||
GitHub <small>135 Stars</small>
|
||||
|
||||
<!-- <i class="md-icon--github md-header-nav__icon">
|
||||
|
||||
</i>
|
||||
<span class="md-header-nav__icon-title">
|
||||
GitHub <small>135 Stars</small>
|
||||
</span>
|
||||
|
||||
</span> -->
|
||||
</a>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
@ -58,6 +58,30 @@
|
||||
class="md-nav__link md-nav__link--active">
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
|
||||
<!-- <nav class="md-nav md-nav--toc"> -->
|
||||
|
||||
<!--
|
||||
The top-level anchor must be skipped if the article contains a h1
|
||||
headline, since it would be redundant to the link to the current page
|
||||
that is located just above the anchor. Therefore we directly continue
|
||||
with the children of the anchor.
|
||||
-->
|
||||
<!-- {% if h1 %}
|
||||
{% set toc = (toc | first).children %}
|
||||
{% endif %} -->
|
||||
|
||||
<!-- Render item list -->
|
||||
<!-- {% if toc and (toc | first) %}
|
||||
<h3 class="md-nav__title">Table of contents</h3>
|
||||
<ul class="md-nav__list">
|
||||
{% for toc_item in toc %}
|
||||
{% include "toc-item.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</nav> -->
|
||||
|
||||
{% else %}
|
||||
<a href="{{ nav_item.url }}" title="{{ nav_item.title }}"
|
||||
class="md-nav__link">
|
||||
|