Code Monkey home page Code Monkey logo

middleman-medium_export's Introduction

Middleman Medium Export

A Middleman extension that adds a cli command to export your articles to medium

Getting Started

Add the gem to your gemfile

gem "middleman-medium_export"

Activate it in your config.rb

activate :medium_export do |export|
  export.api_token = 'your_api_token'

  # export.template_path = 'path_to_template'
  # export.template_position = :top
  # export.publish_status = :draft
end

Options

Extension provides several options

api_token - required, self issued api token to post your articles

template_path - optinal, path to partial to add to your article

template_position - optional. Position of your template. Possible values are: :top and :bottom. Default is :bottom

publish_status - optional. Status of your articles, when they are exported. Possible values are: public, draft, or unlisted. Default is :draft

Export

Interactivly

To chose article to export interactivlt

be middleman medium_export -m interactive

Only last article

be middleman medium_export

or

be middleman medium_export -m last

All articles

be middleman medium_export -m all

Obtaining Api Token

You used to be able to create an api_token yourself, but due to increased spam activity from API, this feature is now restricted. You need to email support with request for an API Token. It usually takes from a couple of hours to a day. Visit official documentaion for more info.

Contribution

Pull requests and issues are very welcome

To create a pull request

  • Clone repo
  • Run tests to see, that all is fine be rake test
  • Implement feature
  • Add tests

middleman-medium_export's People

Contributors

thesmartnik avatar

Stargazers

 avatar

Watchers

 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.