top | item 45111682

Embedding documentation in shell script (2007)

1 points| sdovan1 | 6 months ago |bahut.alma.ch

1 comment

order

sdovan1|6 months ago

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