Skip to content

Commit

Permalink
Updated to use eLyxer for HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
dchenbecker committed Dec 8, 2010
1 parent f926865 commit eadce36
Show file tree
Hide file tree
Showing 8 changed files with 4,632 additions and 2,910 deletions.
8 changes: 4 additions & 4 deletions Makefile
@@ -1,4 +1,4 @@
RSYNCFLAGS = "-rv --delete"
RSYNCFLAGS = -rv --delete

all : master.pdf

Expand All @@ -9,7 +9,7 @@ html : master.lyx
rm -rf master/
mkdir master/
cp -R templates/* master/
python elyxer.py --splitpart 1 master.lyx master/index.html
python elyxer.py --splitpart 1 --css "css/lyx.css" --defaultbrush "scala" --userheader htmlheader.txt --userfooter htmlfooter.txt master.lyx master/index.html
tar cvzf master.html.tgz master/

pdf : master.pdf
Expand All @@ -32,5 +32,5 @@ clean:
rm -rf master/

install: pdf html
rsync $(RSYNC_FLAGS) master.pdf master.html.tgz lion.harpoon.me:/home/scalatools/hudson/www/exploring/downloads/
rsync $(RSYNC_FLAGS) master/ lion.harpoon.me:/home/scalatools/hudson/www/exploring/master/
rsync $(RSYNCFLAGS) master.pdf master.html.tgz lion.harpoon.me:/home/scalatools/hudson/www/exploring/downloads/
rsync $(RSYNCFLAGS) master/ lion.harpoon.me:/home/scalatools/hudson/www/exploring/master/
6 changes: 3 additions & 3 deletions chap-JPA.lyx
Expand Up @@ -1204,7 +1204,7 @@ LocalEMF

\begin_layout Standard
\begin_inset listings
lstparams "breaklines=true,firstline=1,lastline=8,numbers=left,numberstyle={\tiny}"
lstparams "breaklines=true,firstline=1,lastline=8"
inline false
status open

Expand Down Expand Up @@ -1488,7 +1488,7 @@ If you'll be deploying into a JEE container, such as JBoss or GlassFish,

\begin_layout Standard
\begin_inset listings
lstparams "breaklines=true,language=XML,numbers=left,numberstyle={\tiny}"
lstparams "breaklines=true,language=XML"
inline false
status open

Expand Down Expand Up @@ -3173,7 +3173,7 @@ EnumvType

\begin_layout Standard
\begin_inset listings
lstparams "breaklines=true,firstline=3,numbers=left,numberstyle={\tiny}"
lstparams "breaklines=true,firstline=3"
inline false
status open

Expand Down
2 changes: 1 addition & 1 deletion chap-lift_architecture.lyx
Expand Up @@ -145,7 +145,7 @@ reference "lst:LiftFilter-setup-in-web.xml"

\begin_layout Standard
\begin_inset listings
lstparams "language=XML,numbers=left,numberstyle={\tiny}"
lstparams "language=XML"
inline false
status open

Expand Down
8 changes: 6 additions & 2 deletions chap-template_xhtml.lyx
@@ -1,4 +1,4 @@
#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
Expand Down Expand Up @@ -1984,6 +1984,7 @@ reference "lst:A-Non-Conforming-XML"

\begin_layout Standard
\begin_inset listings
lstparams "language=XML"
inline false
status open

Expand Down Expand Up @@ -2178,7 +2179,7 @@ reference "cha:AJAX-and-COMET"

\begin_layout Standard
\begin_inset listings
lstparams "basicstyle={\footnotesize},language=Java,numbers=left,numberstyle={\tiny}"
lstparams "language=XML"
inline false
status open

Expand Down Expand Up @@ -2695,6 +2696,7 @@ name "lst:Surrounding-your-page"

\begin_layout Standard
\begin_inset listings
lstparams "language=XML"
inline false
status open

Expand Down Expand Up @@ -2807,6 +2809,7 @@ admin.

\begin_layout Standard
\begin_inset listings
lstparams "language=XML"
inline false
status open

Expand Down Expand Up @@ -2980,6 +2983,7 @@ surround

\begin_layout Standard
\begin_inset listings
lstparams "language=XML"
inline false
status open

Expand Down
7,505 changes: 4,606 additions & 2,899 deletions elyxer.py 100644 → 100755

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions htmlfooter.txt
@@ -0,0 +1,2 @@
<script type="text/javascript">SyntaxHighlighter.all()</script>

9 changes: 9 additions & 0 deletions htmlheader.txt
@@ -0,0 +1,9 @@
<!-- scripts for highlighter -->
<script type="text/javascript" src="scripts/shCore.js"></script>
<script type="text/javascript" src="scripts/shBrushXml.js"></script>
<script type="text/javascript" src="scripts/shBrushScala.js"></script>
<script type="text/javascript" src="scripts/shBrushBash.js"></script>
<!-- CSS for highlighter -->
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />

2 changes: 1 addition & 1 deletion templates/scripts/shBrushXml.js
Expand Up @@ -60,7 +60,7 @@
};

Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['xml', 'xhtml', 'xslt', 'html', 'XML'];
Brush.aliases = ['xml', 'xhtml', 'xslt', 'html'];

SyntaxHighlighter.brushes.Xml = Brush;

Expand Down

0 comments on commit eadce36

Please sign in to comment.