-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
_extract/ | ||
_output/ | ||
kindlegen | ||
tmp/ | ||
bin/ | ||
vendor/ | ||
.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: ruby | ||
cache: | ||
bundler: true | ||
install: | ||
- bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} | ||
- mkdir -p bin tmp/kindlegen | ||
- curl http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz > tmp/kindlegen.tar.gz | ||
- tar zxvf tmp/kindlegen.tar.gz -C tmp/kindlegen | ||
- mv tmp/kindlegen/kindlegen bin/ | ||
script: | ||
- bundle exec rake build | ||
git: | ||
depth: 6 | ||
rvm: | ||
- 2.1.2 | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: b5qYl10xNFZ689L6PVzyi0zw9zMK6hV+boB9tS+XLJ6+e4X9DNr4cUdfE8mTeYcuBmZTZZn8biYhy9L0dzkQgfubqFIPS15zO7RaXZDoMEf9jRnKEbtFE90NJIqYbCwwLlFDAsevul2EeVQFsk8Mgp3b96QrxNQaDdU/bJu/dzftgoGq3F03/coXPj42uOArRt0YA5eEpIQVChBEZRy03iYlwCu5BaI7WKEcs/PDvwlOm+jf3gIZuC7l/wi6e3Ixnh7eXX/FfF4WJCIVZC5eGhCfkOvYbf6u8tk9HrW296r4JjgvBR5VjtrRA8QXRGzjA7Q+A5hkj7/WCUwUIhzYOHnb5/73sNUHzo94k0P+uFBeJO0U1STPChdWNSVDX4hmkEvCpEuGcj+qaSkH7L8JuoCHeh/fZWB7dS1Xxb+sLzQnvG8V1m/og447RGmSVBpwh3f90XreHrmf+kKCJehBVmSAS7JsTo4HjzdWODSWZ9YG3PkSxPBxBOeu8uheiqUuwMonxfz6YoKZJCCEZ96WhCMc/FDpWUQdgAgYteacWDhZy3lptrQtzZuUbeQPADkwGiQUOZAMxnNxssjjp3Yym6vkbl0We6Qqx2ymU8KvEuv74v4RuD7CNKSnvedglc9Zq/8LvvaTE0gyMcV58q/KAIMdxEt9hyRjs31UoxfKFKM= | ||
file: | ||
- _output/gotdict.mobi | ||
- _output/dic.html | ||
on: | ||
tags: true | ||
repo: wjdp/gotdict | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ source 'https://rubygems.org' | |
|
||
gem 'rake' | ||
gem 'jekyll' | ||
gem 'kindlegen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
require 'kindlegen' | ||
|
||
task :build do | ||
sh "bundle exec jekyll build" | ||
sh "./kindlegen _output/dic.opf -c2 -verbose -dont_append_source -o gotdict.mobi" | ||
sh "xdg-open _output/gotdict.mobi" | ||
# Kindlegen.run("dic.opf", "-c2", "-verbose", "-dont_append_source", "-o", "dic-test.mobi") | ||
end | ||
|
||
task :test do | ||
# sh "bundle exec jekyll build --profile" | ||
Kindlegen.run("dic.opf", "-o", "dic-test.mobi") | ||
sh "bin/kindlegen _output/dic.opf -c2 -verbose -dont_append_source -o gotdict.mobi" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ markdown: kramdown | |
excerpt_separator: "" | ||
|
||
exclude: | ||
- vendor | ||
- Gemfile | ||
- Gemfile.lock | ||
- Rakefile | ||
|