Skip to content

Commit

Permalink
splat: tweak on-line help so that we have topic-specific pages (subse…
Browse files Browse the repository at this point in the history
…ction breaks) and remove the header/footer navigation
  • Loading branch information
pwdraper committed Feb 16, 2015
1 parent 7119d60 commit 109ae2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions splat/src/docs/make_docs
Expand Up @@ -10,9 +10,21 @@ test -d sun243.htx || mkdir sun243.htx
cp gifs/* sun243.htx

# Help system docs, these need to be in a jar file so we can access them from
# javahelp. XXX used to not have navigation at top and bottom of page (not
# needed as we have TOC).
star2html sun243.tex
# javahelp. Split into more sections so that pages are not so long and better
# related to the help-on-window concept.
star2html -splitlevel 3 sun243.tex

# Stop the navigation elements from appearing at the top and bottom of the
# pages (not needed javahelp has a permanently displayed index).
# If javahelp worked with CSS this would be enough:
# cat sun243.htx/sun243.css | sed '/^div\.crosslinks{/N;s/block/none/'
# but it doesn't so we have to process all files with nasty across-line
# character range with greedy issues, so off to perl we go...
for f in sun243.htx/*.html; do
rm -f tmp.html
cat $f | perl -0pe 's/<div\ class="crosslinks".*?>TOC.*?<\/div>//sg' > tmp.html
mv -f tmp.html $f
done

# Edit Map.jhm.in to reference the correct files for our TOC.
rm -f Map.jhm
Expand Down
Binary file modified splat/src/lib/splat_help.jar
Binary file not shown.

0 comments on commit 109ae2d

Please sign in to comment.