Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Add category header to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrett committed Feb 22, 2019
1 parent a41fb5a commit d0dc575
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script/ddgc_export_help.pl
Expand Up @@ -112,7 +112,13 @@ sub write_markup {
$node->attr( 'src', "/images/$src" );
}

$content = $tree->as_HTML =~ s{</br>}{}mgr;
$content = sprintf(
"---\ntitle: %s\ncategory: %s\norder: %s\n---\n",
$title,
ucfirst($category),
$help->sort // 9999,
);
$content .= $tree->as_HTML =~ s{</br>}{}mgr;

$content > io( catfile( $d, $help->key . '.html' ) );
}
Expand Down

0 comments on commit d0dc575

Please sign in to comment.