mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Generate only a single manual.
Added the ability to pass the .md document template as argument to manning-up.sh which will only generate the single document and rename the .1.html correctly before exiting and thus not building the index and all the docs again. Includes updated documentation.
This commit is contained in:
parent
2dc72a1d3b
commit
f076565a98
|
|
@ -35,6 +35,10 @@ Alternatively you can run the `manning-up.sh` automated shell script included in
|
|||
|
||||
$ ./manning-up.sh
|
||||
|
||||
To only (re)generate a specific .md manual template and have `.1.html` renamed to `.html` yau may also use manning-up.sh.
|
||||
|
||||
$ ./manning-up.sh git-info.md
|
||||
|
||||
## AUTHOR
|
||||
|
||||
Written by Leila Muhtasib <<muhtasib@gmail.com>>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
test "$1" && ronn $1 && mv -f ${1/.md/}.1.html ${1/.md/}.html && exit 0
|
||||
|
||||
echo '# manuals' > index.txt.tmp
|
||||
ln=$(awk '/## COMMANDS/{print NR};' ./git-extras.md)
|
||||
awk "NR <= $ln+1" git-extras.md > git-extras.md.tmp
|
||||
|
|
|
|||
Loading…
Reference in a new issue