asciibook 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.adoc +122 -0
- data/book_template/asciibook.yml +5 -0
- data/book_template/book.adoc +3 -0
- data/exe/asciibook +7 -0
- data/lib/asciibook.rb +19 -1
- data/lib/asciibook/asciidoctor_ext/abstract_node.rb +5 -0
- data/lib/asciibook/book.rb +153 -0
- data/lib/asciibook/builders/base_builder.rb +24 -0
- data/lib/asciibook/builders/epub_builder.rb +84 -0
- data/lib/asciibook/builders/html_builder.rb +45 -0
- data/lib/asciibook/builders/mobi_builder.rb +21 -0
- data/lib/asciibook/builders/pdf_builder.rb +154 -0
- data/lib/asciibook/command.rb +85 -0
- data/lib/asciibook/converter.rb +303 -0
- data/lib/asciibook/page.rb +30 -0
- data/lib/asciibook/version.rb +1 -1
- data/templates/admonition.html +4 -0
- data/templates/audio.html +7 -0
- data/templates/colist.html +7 -0
- data/templates/dlist.html +12 -0
- data/templates/document.html +29 -0
- data/templates/embedded.html +20 -0
- data/templates/example.html +4 -0
- data/templates/footnotes.html +7 -0
- data/templates/image.html +11 -0
- data/templates/index.html +40 -0
- data/templates/inline_anchor.html +12 -0
- data/templates/inline_callout.html +1 -0
- data/templates/inline_footnote.html +1 -0
- data/templates/inline_image.html +3 -0
- data/templates/inline_indexterm.html +5 -0
- data/templates/inline_quoted.html +24 -0
- data/templates/listing.html +4 -0
- data/templates/literal.html +1 -0
- data/templates/olist.html +8 -0
- data/templates/page_break.html +1 -0
- data/templates/paragraph.html +1 -0
- data/templates/pass.html +1 -0
- data/templates/preamble.html +3 -0
- data/templates/quote.html +9 -0
- data/templates/section.html +4 -0
- data/templates/sidebar.html +6 -0
- data/templates/stem.html +9 -0
- data/templates/table.html +41 -0
- data/templates/thematic_break.html +1 -0
- data/templates/ulist.html +8 -0
- data/templates/verse.html +9 -0
- data/templates/video.html +10 -0
- data/theme/epub/epub.css +6 -0
- data/theme/epub/layout.html +14 -0
- data/theme/html/html.css +190 -0
- data/theme/html/html.js +29 -0
- data/theme/html/layout.html +91 -0
- data/theme/mobi/layout.html +13 -0
- data/theme/mobi/mobi.css +2 -0
- data/theme/pdf/config.yml +6 -0
- data/theme/pdf/footer.html +11 -0
- data/theme/pdf/header.html +3 -0
- data/theme/pdf/layout.html +14 -0
- data/theme/pdf/pdf.css +3 -0
- data/theme/pdf/toc.xsl +81 -0
- data/theme/share/default.css +174 -0
- data/theme/share/highlight.css +216 -0
- data/theme/share/normalize.css +349 -0
- metadata +119 -21
- data/.gitignore +0 -9
- data/.travis.yml +0 -4
- data/Gemfile +0 -4
- data/README.md +0 -41
- data/Rakefile +0 -10
- data/asciibook.gemspec +0 -25
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Asciibook
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/asciibook`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'asciibook'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install asciibook
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/asciibook.
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/Rakefile
DELETED
data/asciibook.gemspec
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'asciibook/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "asciibook"
|
8
|
-
spec.version = Asciibook::VERSION
|
9
|
-
spec.authors = ["Rei"]
|
10
|
-
spec.email = ["chloerei@gmail.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{}
|
13
|
-
spec.description = %q{}
|
14
|
-
spec.homepage = ""
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir = "exe"
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.10"
|
23
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
-
spec.add_development_dependency "minitest"
|
25
|
-
end
|