Skip to content

Commit

Permalink
changed chapter extensions to md
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek-galezowski committed Jul 31, 2014
1 parent 8dd98c8 commit 1a628f2
Show file tree
Hide file tree
Showing 36 changed files with 26 additions and 2,090 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ task :clone_manuscript => 'diagrams:regenerate' do
cp_r $MANUSCRIPT_DIR, $PD_MANUSCRIPT_DIR

# remove leanpub code language markers
puts sh("cd #{$PD_MANUSCRIPT_DIR.to_s.shellescape} && sed -ri '/\\{lang=/d' *.txt")
puts sh("cd #{$PD_MANUSCRIPT_DIR.to_s.shellescape} && sed -ri '/\\{lang=/d' *.md")
# replace leanpub parts with chapters
puts sh("cd #{$PD_MANUSCRIPT_DIR.to_s.shellescape} && sed -ri 's/^-# /# /' *.txt")
puts sh("cd #{$PD_MANUSCRIPT_DIR.to_s.shellescape} && sed -ri 's/^-# /# /' *.md")
end

namespace :formats do
Expand Down
Binary file modified Test-Driven Development - Extensive Tutorial.epub
Binary file not shown.
2 changes: 1 addition & 1 deletion custom_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def generate_html(subdir, filename)
$pandoc_highlight_opts,
"--standalone",
"-t html",
"./Cover.txt"
"./Cover.md"
]
generate_format subdir, filename, options
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
164 changes: 0 additions & 164 deletions manuscript/050_Its_Not_a_Test.txt~

This file was deleted.

Loading

0 comments on commit 1a628f2

Please sign in to comment.