Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit f076565a981b28e95d8b443319dbb5c5b8037593 1 parent 2dc72a1
Nick Lombard nickl- authored
Showing with 6 additions and 0 deletions.
  1. +4 −0 man/Readme.md
  2. +2 −0  man/manning-up.sh
4 man/Readme.md
View
@@ -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 &lt;<muhtasib@gmail.com>&gt;
2  man/manning-up.sh
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.