Skip to content

Commit

Permalink
Update generate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator authored Jul 4, 2022
1 parent 7b5e086 commit ebfecdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _bin/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function update() {
dest_file="libs/${name}/index.markdown"

mkdir -p "$(dirname $dest_file)"
printf -- "---\ntitle: ${name}\n---\n\n" > $dest_file
printf -- "---\ntitle: ${name}\nhide_title: true\n---\n\n" > $dest_file
sed '/^# *\(include\|define\|undef\|if\|ifdef\|ifndef\|else\|elsif\|endif\|error\|pragma\)/b; s/^#/##/' "$src_file" >> $dest_file
}

Expand Down

0 comments on commit ebfecdc

Please sign in to comment.