Skip to content

hhariri/leanpub-plugin

Repository files navigation

Leanpub Plugin

Build Status

Allows requesting preview and publishing of Leanpub books directly from inside IntelliJ IDEA, WebStorm or other IntelliJ-based IDE's.

Installation

You can install the plugin from the Plugin Repository.

You can also download the latest binary from the TeamCity server and install from disk.

Building from source

Download and run

gradle build

It uses the Gradle IntelliJ Plugin to build plugins which does all the heavyweight lifting. Note, this is not the Gradle plugin for IntelliJ IDEA (which already ships with the IDE) but a Gradle plugin for plugin development. Inception?

Setup

The plugin requires two configuration parameters:

  • API
  • Book Slug

Config

The API can be generated from your Author Dashboard on Leanpub. The book slug corresponds to the URL of your book without the domain name. For instance, if your Leanpub book is at:

https://leanpub.com/myfirstbook

the slug would be:

myfirstbook

Generating previews and publishing

The plugin installs two menu entries under Tools | Leanpub. The first one generates a complete preview of the book whereas the Publish publishes the book.

Menu

If the operation is successful, you'll get notified with a balloon message and shortly afterwards your book will be available in the Dropbox folder your Leanpub account is linked to.

Success

If an error occurs, you'll also be notified.

Error

Settings are per project so you can use different API/Slugs for different projects.

License

Licensed under MIT

(C) Copyright 2016 Hadi Hariri

About

A plugin for IntelliJ Platform to interact with Leanpub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published