Giter VIP home page Giter VIP logo

onessg's People

Contributors

greenkeeper[bot] avatar greenkeeperio-bot avatar ryanzim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

onessg's Issues

An in-range update of consolidate is breaking the build 🚨

Version 0.14.3 of consolidate just got published.

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 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

  • coverage/coveralls First build on greenkeeper/consolidate-0.14.3 at 100.0% Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of js-yaml is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 3.11.0 of js-yaml was just published.

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.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
  • coverage/coveralls First build on greenkeeper/js-yaml-3.11.0 at 100.0% Details

Commits

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

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add configurable renderer and drafts

Feature requests:

  • Allow configuration of the renderer
  • Allow pages to be specified as draft
    • Draft pages should have _draft: true in their frontmatter
    • Draft pages will not be rendered unless configured (draft: 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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.