Skip to content

Improve html manual #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,28 @@ haskell-mode.info: haskell-mode.texi
@rm haskell-mode-menu-order.txt haskell-mode-content-order.txt

# Processing proper
$(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $<
LANG=en_US.UTF-8 $(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $<

haskell-mode.html: haskell-mode.texi haskell-mode.css
LANG=en_US.UTF-8 $(MAKEINFO) $(MAKEINFO_FLAGS) --html --css-include=haskell-mode.css --no-split -o $@ $<

html/index.html : haskell-mode.texi
if [ -e html ]; then rm -r html; fi
LANG=en_US.UTF-8 $(MAKEINFO) $(MAKEINFO_FLAGS) --html \
--css-ref=haskell-mode.css \
-c AFTER_BODY_OPEN="<div class='background'> </div>" \
-c SHOW_TITLE=0 \
-o html $<

html/haskell-mode.css : haskell-mode.css html/index.html
cp $< $@

html/images/haskell-mode.svg : images/haskell-mode.svg html/index.html
mkdir -p html/images
cp $< $@

html : html/index.html html/haskell-mode.css html/images/haskell-mode.svg

haskell-mode.html: haskell-mode.texi
$(MAKEINFO) $(MAKEINFO_FLAGS) --html --no-split -o $@ $<

$(AUTOLOADS): $(ELFILES) haskell-mode.elc
$(BATCH) \
Expand Down
33 changes: 33 additions & 0 deletions haskell-mode.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@charset "UTF-8";
@import url("http://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic&subset=latin,latin-ext");
@import url("http://fonts.googleapis.com/css?family=Source Code Pro");

body {font-family: Lato, Arial, sans-serif; font-feature-settings: "kern", "liga", "clig", "calt"; font-size: 14pt; line-height: 1.35; }
body {width: 800px; margin: 0 auto;}
table.menu {width: 700px; margin-left: 50px; }
/* makeinfo 5.2 */
div.header p {margin: 0; text-align: right;}
div.header {background-color: #9a98bd; background: linear-gradient(#CDCCDE,#A9A7CD);}
/* makeinfo 4.8 */
div.node {background-color: #9a98bd; background: linear-gradient(#CDCCDE,#A9A7CD);}
div.node p {margin: 0; text-align: right;}
div.node hr {margin: 0;}

div.footnote h3 {display: inline; font-size: normal;}
/* makeinfo up to 5.2 cannot pass on unicode characters without messing them up */
a[rel="up"]:before {content: " \2191 "; /* ↑ */}
a[rel="prev"]:before {content: " \2190 "; /* ← */}
a[rel="next"]:before {content: " \2192 "; /* → */}
code, kbd, samp, pre { font-family: "Source Code Pro", Menlo, Inconsolata, monospace;}
kbd {font-style:normal}
div.background {
position: fixed;
right: 30px;
bottom: 0px;
width: 256px;
height: 256px;
opacity: 0.3;
background-image: url("images/haskell-mode.svg");
background-repeat: no-repeat;
background-size: 256px 256px;
}
14 changes: 5 additions & 9 deletions haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@ Front-Cover Texts and no Back-Cover Texts.
@contents
@end iftex

@ifhtml
@titlepage
@title Haskell Mode
@subtitle Haskell Development Environment for Emacs

@end titlepage
@insertcopying
@end ifhtml

@ifnottex
@node Top
@top Haskell Mode
Expand Down Expand Up @@ -74,6 +65,11 @@ interpreter (e.g. GHCi).
* Variable index::
@end menu

@ifhtml
@insertcopying
@end ifhtml


@node Introduction
@chapter Introduction

Expand Down