Adjusted Makefile and CSS to properly highlight current page
parent
a30bf60d92
commit
9734b883f0
4
Makefile
4
Makefile
|
@ -31,7 +31,9 @@ $(outdir)/images/%.png: images/%.png | $(outdir)
|
|||
cp -r $< $@
|
||||
|
||||
$(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
|
||||
cat $(header) $< $(footer) > $@
|
||||
cat $(header) \
|
||||
| sed 's/\(<body\)/\1 class="$*"/' \
|
||||
| cat - $< $(footer) > $@
|
||||
|
||||
clean:
|
||||
${RM} -r webroot
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li class="selected"><a href="/">About</a></li>
|
||||
<li><a href="manual-select.html">Manual</a></li>
|
||||
<li><a href="https://github.com/mikegerwitz/easejs">Source Code</a></li>
|
||||
<li id="about"><a href="/">About</a></li>
|
||||
<li id="manual"><a href="manual-select.html">Manual</a></li>
|
||||
<li id="source">
|
||||
<a href="https://github.com/mikegerwitz/easejs">Source Code</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue