ryanzim / onessg Goto Github PK
View Code? Open in Web Editor NEWThe Static Site Generator that does only one thing: compile your html and markdown.
License: MIT License
The Static Site Generator that does only one thing: compile your html and markdown.
License: MIT License
Branch | Build failing 🚨 |
---|---|
Dependency | consolidate |
Current Version | 0.14.2 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As consolidate is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing 🚨 |
---|---|
Dependency | js-yaml |
Current Version | 3.10.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
js-yaml is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 5 commits.
f2bb207
3.11.0 released
b7eb2e6
Browser files rebuild
dc2227b
Dumper: fix negative integers in bin/octal/hex formats, close #399
c62fd62
support es6 arrow functions, fixes #389 (#393)
bee7e99
Fix typo in README.md (#373)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
thus it's more convenient for users
Feature requests:
_draft: true
in their frontmatterdraft: true
)Impact:
The default behavior remains the same. The only issue would be if a developer is using _draft: true
for another purpose in their frontmatter.
Patch:
To make these changes, apply the following patch, with the command git apply onessg.patch
(the patch file must have a trailing newline or git apply
will barf):
patch-package
--- a/index.js
+++ b/index.js
@@ -31,12 +31,16 @@ function processFile(filePath) {
.then(middleware)
.then(getDefaults)
.then(data => {
+ if (data._draft && !conf.draft) return;
+
// If _layout, render it:
if (data._layout) return render(data);
// Else, return _body:
else return data._body;
})
.then(html => {
+ if (html === void 0) return;
+
// Get path to write to using path-extra:
var writePath = path.replaceExt(path.join(conf.dist, filePath), '.html');
// Output using fs-extra:
@@ -72,7 +76,7 @@ function middleware(data) {
case '.md':
case '.markdown':
// Render markdown:
- return marked(data._body)
+ return (conf.renderer || marked)(data._body)
.then(res => {
// Overwrite data._body:
data._body = res;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.