commit
a7a7175459
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
title: About
|
||||
---
|
||||
|
||||
This project is currently in Alpha.
|
|
@ -2,4 +2,5 @@
|
|||
layout: components
|
||||
title: Components
|
||||
bodyclass: components
|
||||
include_prefix: ../
|
||||
---
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
layout: customize
|
||||
title: Customize & Download
|
||||
bodyclass: customize
|
||||
include_prefix: ../
|
||||
---
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: embedded_customizer
|
||||
title: Customizer
|
||||
include_prefix: ../
|
||||
---
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: page
|
||||
title: Getting started
|
||||
include_prefix: ../
|
||||
---
|
||||
|
||||
<nav class="chapter-toc">
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: layout
|
||||
bodyclass: about
|
||||
include_prefix: ./
|
||||
---
|
||||
<!-- TODO: Try to separate markup and content -->
|
||||
<section class="about-panel about-panel--text mdl-cell mdl-cell--12-col">
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
layout: layout
|
||||
title: Styles
|
||||
bodyclass: styles
|
||||
include_prefix: ../
|
||||
---
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
layout: templates
|
||||
title: Templates
|
||||
bodyclass: templates
|
||||
include_prefix: ../
|
||||
templates:
|
||||
- name: text-only
|
||||
title: Text-heavy webpage
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
-->
|
||||
|
||||
<!-- Page styles -->
|
||||
<link rel="stylesheet" href="/material.min.css">
|
||||
<link rel="stylesheet" href="/assets/main.css">
|
||||
<script src="/material.min.js"></script>
|
||||
<link rel="stylesheet" href="{{page.include_prefix}}material.min.css">
|
||||
<link rel="stylesheet" href="{{page.include_prefix}}assets/main.css">
|
||||
<script src="{{page.include_prefix}}material.min.js"></script>
|
||||
</head>
|
||||
<body class="{{page.bodyclass}}">
|
||||
<div class="mdl-layout mdl-js-layout">
|
||||
|
|
|
@ -274,7 +274,7 @@ function applyTemplate() {
|
|||
gulp.task('components', function() {
|
||||
return gulp.src('./src/**/README.md', {base: './src'})
|
||||
// Add basic front matter.
|
||||
.pipe($.header('---\nlayout: component\nbodyclass: components\n---\n\n'))
|
||||
.pipe($.header('---\nlayout: component\nbodyclass: components\ninclude_prefix: ../../\n---\n\n'))
|
||||
.pipe($.frontMatter({property: 'page', remove: true}))
|
||||
.pipe($.marked())
|
||||
.pipe((function () {
|
||||
|
@ -368,7 +368,7 @@ gulp.task('serve', ['default'], function () {
|
|||
gulp.watch(['src/**/*.html'], ['demos', reload]);
|
||||
gulp.watch(['src/**/README.md'], ['components', reload]);
|
||||
gulp.watch(['templates/**/*'], ['templates', reload]);
|
||||
gulp.watch(['docs/**/*', '!docs/out/**/*'], ['pages', 'assets', reload]);
|
||||
gulp.watch(['docs/**/*'], ['pages', 'assets', reload]);
|
||||
});
|
||||
|
||||
gulp.task('publish', ['default', 'templates', 'assets', 'pages', 'demos'], function() {
|
||||
|
|
Loading…
Reference in New Issue