Screencast on publishing M-files to HTML format and how to create sections in the output. Also touches on exporting to LaTeX.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.