webhacks.cfg 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. \Preamble{xhtml}
  2. \begin{document}
  3. %% Note: if you install locally, you'll be missing some of the files, marked
  4. %% below as ``on copyleft.org, not here''. That's because they're part of the
  5. %% copyleft.org wiki when we install HTML. You're still going to be able to
  6. %% view the HTML, but it won't look as ``pretty'' and won't have fully
  7. %% branding with copyleft.org stuff (which is probably as it should be). The
  8. %% main thing that will probably annoy is is footnotes won't work.
  9. %% Begin: on copyleft.org, not here.
  10. \Configure{@HEAD}{\HCode{<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> }}
  11. \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="/bootstrap.css" /> \Hnewline}}
  12. \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="/local.css" /> \Hnewline}}
  13. %% End: on copyleft.org, not here.
  14. \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="css/footnote-hack.css" /> \Hnewline}}
  15. \Configure{@HEAD}{\HCode{<link rel="stylesheet" type="text/css" href="css/guide.css" /> \Hnewline}}
  16. %% Begin: on copyleft.org, not here.
  17. \Configure{@HEAD}{\HCode{<script type="text/javascript" src="/bootstrap.js"></script>\Hnewline}}
  18. \Configure{@HEAD}{\HCode{<script type="text/javascript" src="/jquery-1.10.2.js"></script>\Hnewline}}
  19. \Configure{@HEAD}{\HCode{<script type="text/javascript" src="/jquery-ui-1.11.2.js"></script>\Hnewline}}
  20. %% End: on copyleft.org, not here.
  21. \Configure{@HEAD}{\HCode{<script type="text/javascript" src="js/comprehensive-gpl-guide-js.js"></script>\Hnewline}}
  22. \Configure{@HEAD}{\HCode{<script type="text/javascript" src="js/tex4ht-footnote-hack.js"></script>\Hnewline}}
  23. %% This stuff below uses bootstrap to get a navigation bar.
  24. % This SVG should replace <img> below, but users complained. :-/
  25. % <svg width="245" height="50" style="margin-bottom: 5px; margin-top: 5px; margin-left: 5px; margin-right: 50px"><image xlink:href="/copyleftorg-green-stylized.svg" src="/copyleftorg-green-stylized.png" width="245" height="50"></image></svg>\Hnewline
  26. \Configure{@BODY}{\HCode{<header class="navbar navbar-default navbar-fixed-top copyleft-navbar">\Hnewline
  27. <div class="container">\Hnewline
  28. <div class="navbar-header">\Hnewline
  29. <button class="navbar-toggle" data-target=".copyleft-navbar-collapse" data-toggle="collapse" type="button">\Hnewline
  30. <span class="sr-only">Toggle navigation</span>\Hnewline
  31. <span class="icon-bar"></span>\Hnewline
  32. <span class="icon-bar"></span>\Hnewline
  33. <span class="icon-bar"></span>\Hnewline
  34. </button>\Hnewline
  35. <a href="/"><img style="margin-bottom: 5px; margin-top: 5px; margin-left: 5px; margin-right: 50px" alt="copyleft.org" src="/copyleftorg-green-stylized.png" width="245" height="50"></img></a>\Hnewline
  36. </div>\Hnewline
  37. <nav class="collapse navbar-collapse copyleft-navbar-collapse" role="navigation"><ul class="nav navbar-nav">\Hnewline}}
  38. \Configure{@BODY}{\selectpropermenuitem\HCode{<li><a href="/guide/comprehensive-gpl-guide.pdf">PDF</a></li>\Hnewline
  39. <li><a href="/guide/comprehensive-gpl-guide.ps">Postscript</a></li></ul>\Hnewline
  40. <ul class="nav navbar-nav navbar-right">\Hnewline
  41. <li><a href="/">Wiki</a></li>\Hnewline
  42. <li class="active"><a href="/guide/">Tutorial and Guide</a></li>\Hnewline
  43. </ul></nav></div></header>\Hnewline}}
  44. \monolith
  45. \Configure{crosslinks}{\HCode{<li>}}{\HCode{</li>}}{next}{prev-top}{prev-end}{this-top}{this-end}{up}
  46. \Configure{crosslinks+}
  47. {\HCode{<nav class="collapse navbar-collapse copyleft-navbar-collapse" role="navigation">\Hnewline
  48. <ul class="nav navbar-nav">}}
  49. {\HCode{</ul></nav>}}
  50. {\footermenu\HCode{<nav class="collapse navbar-collapse copyleft-navbar-collapse" role="navigation">\Hnewline
  51. <ul class="nav navbar-nav navbar-right">\Hnewline}}
  52. {\HCode{</ul></nav></div></footer>}}
  53. \Tag{TITLE+}{Copyleft and the GNU General Public License: A Comprehensive Tutorial and Guide}
  54. \EndPreamble