Skip to content

Commit

Permalink
Create site with documentation #164
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Mar 6, 2024
1 parent c0a822e commit 5d879fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mdbooker.awk
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ match($0, /^#+/) { handleTitle(RLENGTH); next }
function handleTitle(h, md,indent,dir,i,path) {
if (Title) {
for (i = 2; i < H; i++)
dir = dir (dir ? "/" : "") fname(PathElements[i])
print "generating: " (path = dir (dir ? "/" : "") (md = fname(Title) ".md")) "..."
if (dir)
system("mkdir -p '" BOOK dir "'")
dir = dir (dir ? "-" : "") fname(PathElements[i])
print "generating: " (path = dir (dir ? "-" : "") (md = fname(Title) ".md")) "..."
print Content > BOOK path
if ((indent = H - 2) < 0)
indent = 0
Expand Down

0 comments on commit 5d879fc

Please sign in to comment.