Skip to content

Commit 92ef462

Browse files
committed
Born again
1 parent e78eeda commit 92ef462

File tree

94 files changed

+260
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+260
-24
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
_site
2-
Gemfile.lock
1+
_old/_site
2+
tmp/

Gemfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem 'jekyll', '~> 1.4.3'
4-
gem 'kramdown', '~> 1.2'
5-
gem 'rouge', '~> 1.3.3'
3+
gem 'persie', path: '~/Projects/persie'
4+
gem 'rake'

Gemfile.lock

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
PATH
2+
remote: ~/Projects/persie
3+
specs:
4+
persie (0.0.2.beta.1)
5+
asciidoctor (= 1.5.3)
6+
colorize (= 0.7.7)
7+
gepub (= 0.6.9.2)
8+
liquid (= 3.0.6)
9+
nokogiri (= 1.6.6.2)
10+
rouge (= 2.0.2)
11+
thor (= 0.19.1)
12+
thread_safe (= 0.3.5)
13+
uuid (= 2.3.8)
14+
15+
GEM
16+
remote: https://rubygems.org/
17+
specs:
18+
asciidoctor (1.5.3)
19+
colorize (0.7.7)
20+
gepub (0.6.9.2)
21+
nokogiri (~> 1.6.1)
22+
rubyzip (>= 1.1.1)
23+
liquid (3.0.6)
24+
macaddr (1.7.1)
25+
systemu (~> 2.6.2)
26+
mini_portile (0.6.2)
27+
nokogiri (1.6.6.2)
28+
mini_portile (~> 0.6.0)
29+
rake (11.3.0)
30+
rouge (2.0.2)
31+
rubyzip (1.2.0)
32+
systemu (2.6.5)
33+
thor (0.19.1)
34+
thread_safe (0.3.5)
35+
uuid (2.3.8)
36+
macaddr (~> 1.0)
37+
38+
PLATFORMS
39+
ruby
40+
41+
DEPENDENCIES
42+
persie!
43+
rake
44+
45+
BUNDLED WITH
46+
1.12.3

Rakefile

+23-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
desc "Push to github"
2-
task :push do
3-
puts "Pushing to `master' branch:"
4-
system "git push origin master"
5-
puts "`master' branch updated."
6-
puts
1+
desc 'Build pdf format'
2+
task :pdf do
3+
system 'bundle exec persie build pdf'
4+
end
5+
6+
desc 'Build pdf sample'
7+
task :sample do
8+
system 'bundle exec persie build pdf -s'
9+
end
710

8-
puts "Building site...."
9-
system "bundle exec jekyll build"
10-
puts "Site updated."
11-
puts
11+
desc 'Build epub format'
12+
task :epub do
13+
system 'bundle exec persie build epub -c'
14+
end
15+
16+
desc 'Build mobi format'
17+
task :mobi do
18+
system 'bundle exec persie build mobi'
19+
end
1220

13-
cd '_site' do
14-
puts "Pushing to `gh-pages' branch:"
15-
system "git add -A"
16-
system "git commit -m 'update at #{Time.now.utc}'"
17-
system "git push origin gh-pages"
18-
puts "`gh-pages' branch updated."
19-
end
21+
desc 'Build site format'
22+
task :site do
23+
system 'bundle exec persie build html -m'
2024
end
2125

22-
desc "Launch local preview"
26+
desc 'Preview site'
2327
task :preview do
24-
system "bundle exec jekyll server --watch --baseurl=''"
28+
system 'bundle exec persie preview multiple'
2529
end

_old/Gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'jekyll', '~> 1.4.3'
4+
gem 'kramdown', '~> 1.2'
5+
gem 'rouge', '~> 1.3.3'

_old/Rakefile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
desc "Push to github"
2+
task :push do
3+
puts "Pushing to `master' branch:"
4+
system "git push origin master"
5+
puts "`master' branch updated."
6+
puts
7+
8+
puts "Building site...."
9+
system "bundle exec jekyll build"
10+
puts "Site updated."
11+
puts
12+
13+
cd '_site' do
14+
puts "Pushing to `gh-pages' branch:"
15+
system "git add -A"
16+
system "git commit -m 'update at #{Time.now.utc}'"
17+
system "git push origin gh-pages"
18+
puts "`gh-pages' branch updated."
19+
end
20+
end
21+
22+
desc "Launch local preview"
23+
task :preview do
24+
system "bundle exec jekyll server --watch --baseurl=''"
25+
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.md renamed to _old/index.md

book.adoc

+113

builds/html/multiple/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Write stylesheets here. */

builds/html/single/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Write stylesheets here. */

manuscript/action_cable_overview.adoc

+1

manuscript/action_mailer_basics.adoc

+1

manuscript/action_view_overview.adoc

+1

manuscript/active_job_basics.adoc

+1

manuscript/active_model_basics.adoc

+1

manuscript/active_record_basics.adoc

+1
+1
+1
+1

manuscript/api_app.adoc

+1

manuscript/asset_pipeline.adoc

+1

manuscript/association_basics.adoc

+1

manuscript/caching_with_rails.adoc

+1

manuscript/command_line.adoc

+1

manuscript/configuring.adoc

+1

manuscript/controllers.adoc

+1

manuscript/digging_depper.adoc

+1

manuscript/engines.adoc

+1

manuscript/extending_rails.adoc

+1

manuscript/form_helpers.adoc

+1

manuscript/generators.adoc

+1

manuscript/getting_started.adoc

manuscript/i18n.adoc

+1

manuscript/initialization.adoc

+1

manuscript/layouts_and_rendering.adoc

+1

manuscript/models.adoc

+1

manuscript/plugins.adoc

+1

manuscript/profiling.adoc

+1

manuscript/rails_on_rack.adoc

+1

manuscript/routing.adoc

+1

manuscript/security.adoc

+1

manuscript/start_here.adoc

+1

manuscript/testing.adoc

+1

manuscript/views.adoc

+1

themes/epub/epub.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Write ePub stylesheets here. */

themes/pdf/pdf.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Write PDF stylesheets here. */

0 commit comments

Comments
 (0)