Skip to content

Commit

Permalink
make default build include only final chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
clauswilke committed Jan 28, 2018
1 parent 4d97fa1 commit d53a014
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions _bookdown.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
new_session: yes
output_dir: "_book"
output_dir: "_book_final"
delete_merged_file: true

rmd_files: [
Expand All @@ -9,7 +9,7 @@ rmd_files: [

# Part I
"aesthetic_mapping.Rmd", # completed
"coordinate_systems_axes.Rmd",
"coordinate_systems_axes.Rmd", # completed
"color_basics.Rmd", # completed
"directory_of_visualizations.Rmd",
##"visualizing_amounts.Rmd",
Expand All @@ -22,7 +22,7 @@ rmd_files: [

"small_axis_labels.Rmd", # completed

"maximize_data_signal.Rmd",
##"maximize_data_signal.Rmd",
"proportional_ink.Rmd", # completed
"overlapping_points.Rmd", # completed
"avoid_line_drawings.Rmd", # completed
Expand All @@ -35,7 +35,7 @@ rmd_files: [
"outline.Rmd",
"technical_notes.Rmd",

"notes.Rmd",
#"notes.Rmd",

"references.Rmd"
]
8 changes: 4 additions & 4 deletions _bookdown_final.yml → _bookdown_draft.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
new_session: yes
output_dir: "_book_final"
output_dir: "_book"
delete_merged_file: true

rmd_files: [
Expand All @@ -9,7 +9,7 @@ rmd_files: [

# Part I
"aesthetic_mapping.Rmd", # completed
"coordinate_systems_axes.Rmd", # completed
"coordinate_systems_axes.Rmd",
"color_basics.Rmd", # completed
"directory_of_visualizations.Rmd",
##"visualizing_amounts.Rmd",
Expand All @@ -22,7 +22,7 @@ rmd_files: [

"small_axis_labels.Rmd", # completed

##"maximize_data_signal.Rmd",
"maximize_data_signal.Rmd",
"proportional_ink.Rmd", # completed
"overlapping_points.Rmd", # completed
"avoid_line_drawings.Rmd", # completed
Expand All @@ -35,7 +35,7 @@ rmd_files: [
"outline.Rmd",
"technical_notes.Rmd",

#"notes.Rmd",
"notes.Rmd",

"references.Rmd"
]
3 changes: 0 additions & 3 deletions _build.sh

This file was deleted.

3 changes: 3 additions & 0 deletions _build_draft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

Rscript -e "bookdown::render_book(input = 'index.Rmd', output_format = 'bookdown::gitbook', config_file = '_bookdown_draft.yml')"
2 changes: 1 addition & 1 deletion _build_final.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

rm -rf ./book_final/
Rscript -e "bookdown::render_book(input = 'index.Rmd', output_format = 'bookdown::gitbook', config_file = '_bookdown_final.yml')"
Rscript -e "bookdown::render_book(input = 'index.Rmd', output_format = 'bookdown::gitbook', config_file = '_bookdown.yml')"

0 comments on commit d53a014

Please sign in to comment.