File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,9 @@ def remove_pixels basename_noext
189
189
class ExtractHeaderIds < Asciidoctor ::Extensions ::TreeProcessor
190
190
def initialize ( *args , &block )
191
191
super ( *args , &block )
192
- @db = SQLite3 ::Database . new File . join ( $PROJECT_ROOT, 'out' , 'db.sqlite' )
192
+ db_dir = File . join ( $PROJECT_ROOT, 'out' )
193
+ FileUtils . mkdir_p db_dir
194
+ @db = SQLite3 ::Database . new File . join ( db_dir , 'db.sqlite' )
193
195
@table_name = 'sections'
194
196
# Check if table exists and create it if it doesn't.
195
197
if @db . execute ( "SELECT name FROM sqlite_master WHERE type='table' AND name='#{ @table_name } ';" ) . empty?
Original file line number Diff line number Diff line change 2
2
# https://www.cirosantilli.com#how-to-develop-ciro-santillis-website
3
3
set -eux
4
4
rootdir=" $( pwd) "
5
- outdir=" ${rootdir} /publish"
5
+ outdir=" ${rootdir} /out/ publish"
6
6
mkdir -p " $outdir "
7
7
# We maintain a safety clone in this directory,
8
8
# to avoid leaking .gitignored files through Jekyll.
You can’t perform that action at this time.
0 commit comments