Permalink
Browse files

Minor tweaks to "manh" script.

  • Loading branch information...
1 parent 93e5af2 commit cb39e05bf5d5888ccfaeecfe4cc456a3b1186f13 @cowboy committed Jul 11, 2012
Showing with 4 additions and 8 deletions.
  1. +2 −2 bin/manh
  2. +2 −6 conf/manhtml.css
View
@@ -29,12 +29,12 @@ file="$cache_dir/${2:+$2.}$1.html"
[[ -e "$cache_dir" ]] || mkdir -p "$cache_dir"
# Create HTML if it doesn't exist.
-[[ -e "$file" ]] || cat > "$file" <<EOF
+[[ ! -e "$file" ]] && man "$@" >/dev/null && cat > "$file" <<EOF
<!doctype html>
<html>
<link rel="stylesheet" href="../../conf/manhtml.css">
<body>
-$(man "$@" | man2html -nodepage)
+$(man "$@" 2>/dev/null | man2html -bare -nodepage)
</body>
</html>
EOF
View
@@ -4,8 +4,8 @@
body {
color: #839496;
background: #002b36;
- margin-left: 1.5em;
- margin-bottom: 2.5em;
+ padding: 0;
+ margin: 0 0 3em 1.5em;
}
h2 {
@@ -31,10 +31,6 @@ pre {
margin: -0.5em 0 -1.5em;
}
-body > pre:first-child {
- margin-bottom: -5em;
-}
-
body > hr,
body > address {
display: none;

0 comments on commit cb39e05

Please sign in to comment.