Hacker News new | ask | show | jobs
Embedding documentation in shell script (2007) (bahut.alma.ch)
1 points by sdovan1 284 days ago
1 comments

I have a function in .bashrc to read the pod in browser:

  read_pod_html() {
    local html=$(mktemp --suffix '.html')
    pod2html --css='https://www.w3.org/StyleSheets/Core/parser.css?doc=XML&family=7' "$1" > "$html"
    /usr/bin/x-www-browser "$html"
  }