Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
5,015 additions
and
3,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
npm-debug.log | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
.lanyon | ||
.lanyon/bin | ||
assets/build | ||
env.sh | ||
node_modules | ||
|
||
website/index.md | ||
npm-debug.log | ||
website/_site/ | ||
website/_vendor/ | ||
|
||
website/changelog.md | ||
|
||
website/faq.md | ||
|
||
website/.jekyll-metadata | ||
|
||
env.sh | ||
|
||
website/main.sh | ||
website/assets/build | ||
website/.lanyon | ||
website/.lanyon/vendor/bin | ||
website/.lanyon/bin | ||
assets/build | ||
.lanyon | ||
.lanyon/bin | ||
website/.lanyon/vendor/bin | ||
website/assets/build | ||
website/changelog.md | ||
website/faq.md | ||
website/index.md | ||
website/main.shwebsite/.lanyon | ||
website/main.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const path = require('path') | ||
const _ = require('lodash') | ||
|
||
module.exports.overrideRuntime = function ({ runtime, toolkit }) { | ||
let preBuilds = [] | ||
let postBuilds = [] | ||
|
||
if (!runtime.isDev) { | ||
preBuilds = preBuilds.concat([ | ||
'npm run inject', | ||
]) | ||
postBuilds = postBuilds.concat([ | ||
// 'npm run redirects', | ||
]) | ||
} | ||
|
||
// "lanyon": { | ||
// "projectDir": "website", | ||
// "contentScandir": "../", | ||
// "contentIgnore": [ | ||
// "website/*.md", | ||
// "website/main.sh" | ||
// ] | ||
// }, | ||
|
||
// runtime['npmRoot'] = `${__dirname}` | ||
runtime.projectDir = `${__dirname}/website` | ||
|
||
runtime.cacheDir = path.join(runtime.projectDir, '.lanyon') | ||
runtime.recordsPath = path.join(runtime.cacheDir, 'records.json') | ||
runtime.assetsSourceDir = path.join(runtime.projectDir, 'assets') | ||
runtime.assetsBuildDir = path.join(runtime.assetsSourceDir, 'build') | ||
runtime.contentScandir = path.join(runtime.projectDir, runtime.contentScandir || '.') | ||
runtime.contentBuildDir = path.join(runtime.projectDir, '_site') | ||
|
||
runtime['prebuild:content'] = preBuilds.join(' && ') | ||
runtime['postbuild:content'] = postBuilds.join(' && ') | ||
|
||
return runtime | ||
} | ||
|
||
module.exports.overrideConfig = function ({ config, toolkit }) { | ||
if (config.runtime.isDev) { | ||
config.jekyll.url = 'http://localhost:3000' | ||
} | ||
|
||
config.jekyll.profile = true | ||
config.jekyll.trace = true | ||
|
||
if (config.runtime.isDev) { | ||
config.jekyll.unpublished = true | ||
config.jekyll.future = true | ||
config.jekyll.incremental = true // <-- for clarify; incremental is the default also | ||
} else { | ||
config.jekyll.incremental = false | ||
} | ||
|
||
return config | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
title: BASH3 Boilerplate | ||
|
||
gems: | ||
plugins: | ||
- jekyll-redirect-from |
Oops, something went wrong.