Git Product home page Git Product logo

gistmaker's Introduction

GistMaker

Takes code snippets in markdown files and hosts them as GitHub gists. The snippets are then replaced by the gist URLs. Pretty useful for blogging on Medium, where snippets need to be gists to render with syntax highlighting.

Setup

  1. Clone this repo.
  2. Run npm install.
  3. Fill in stuff inside config-example.js located in the project root and rename it to config.js.

Usage

This script organizes gists by grouping them into 'projects'. The script manages projects by maintaining a list of them... on a GitHub gist :)

Run node index.js in the project root, followed by the command to execute.

There are 3 commands:

  1. node index.js get just fetches the master gist list.
  2. node index.js update <projectname> hosts the snippets in the input file as gists and writes the output (with the snippets replaced by the gist URLs) to the output file specified in config.js.
  3. node index.js delete <projectname> removes all the gists in the given project name permanently from GitHub, and also removes them from the master gist list permanently.

gistmaker's People

Contributors

jhurricane96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.