Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartnik/middleman-medium_export
A middleman extension to export your blogposts to medium
https://github.com/thesmartnik/middleman-medium_export
medium-app medium-com middleman middleman-blog middleman-extension
Last synced: about 1 month ago
JSON representation
A middleman extension to export your blogposts to medium
- Host: GitHub
- URL: https://github.com/thesmartnik/middleman-medium_export
- Owner: TheSmartnik
- License: mit
- Created: 2018-11-27T19:09:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T14:55:39.000Z (over 5 years ago)
- Last Synced: 2024-10-14T21:10:12.571Z (about 1 month ago)
- Topics: medium-app, medium-com, middleman, middleman-blog, middleman-extension
- Language: Ruby
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 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
```ruby
gem "middleman-medium_export"
```Activate it in your `config.rb`
```ruby
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
```ruby
be middleman medium_export -m interactive
```### Only last article
```ruby
be middleman medium_export
```or
```ruby
be middleman medium_export -m last
```### All articles
```ruby
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](https://github.com/Medium/medium-api-docs#22-self-issued-access-tokens) 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