Embedding documentation in shell script (2007)

by sdovan1on 9/3/2025, 2:29 AMwith 1 comments

by sdovan1on 9/3/2025, 2:29 AM

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"
  }