Commits

shl...@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed f188d0d

Add the style of the Human Hacking Field Guide.

  • Participants
  • Parent commits de97af4

Comments (0)

Files changed (6)

 DOCBOOK_INSTALLED_CSS_DIRS = $(foreach doc,$(DOCBOOK_DOCS),$(T2_DEST)/$(call get,DOCBOOK_DIRS_MAP,$(doc))/docbook-css)
 DOCMAKE_STYLE_CSS = $(DOCMAKE_XSLT_PATH)/style.css
 
-DOCBOOK_RENDERED_DIR = lib/docbook/rendered
-DOCBOOK_ALL_IN_ONE_XHTML_DIR = lib/docbook/essays
+DOCBOOK_BASE_DIR = lib/docbook
+DOCBOOK_RENDERED_DIR = $(DOCBOOK_BASE_DIR)/rendered
+DOCBOOK_ALL_IN_ONE_XHTML_DIR = $(DOCBOOK_BASE_DIR)/essays
 
 SCREENPLAY_XML_BASE_DIR = lib/screenplay-xml
 SCREENPLAY_XML_XML_DIR = $(SCREENPLAY_XML_BASE_DIR)/xml
 
 DOCBOOK_ALL_IN_ONE_XHTMLS = $(patsubst %,$(DOCBOOK_ALL_IN_ONE_XHTML_DIR)/%/all-in-one.html,$(DOCBOOK_DOCS))
 
-DOCBOOK_ALL_IN_ONE_XHTMLS_CSS = $(patsubst %/all-in-one.html,%/style.css,$(DOCBOOK_ALL_IN_ONE_XHTMLS))
+# We have our own style for human-hacking-field-guide so we get rid of it.
+DOCBOOK_ALL_IN_ONE_XHTMLS_CSS = $(patsubst %/all-in-one.html,%/style.css,$(filter-out human-hacking-%,$(DOCBOOK_ALL_IN_ONE_XHTMLS)))
 
 SCREENPLAY_RENDERED_HTMLS = $(patsubst %,$(SCREENPLAY_XML_RENDERED_HTML_DIR)/%.html,$(SCREENPLAY_DOCS))
 
 
 docbook_indiv: $(DOCBOOK_INDIVIDUAL_XHTMLS)
 
-docbook_targets: $(DOCBOOK_TARGETS) $(DOCBOOK_ALL_IN_ONE_XHTMLS) $(DOCBOOK_ALL_IN_ONE_XHTMLS_CSS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS) $(SCREENPLAY_SOURCES_ON_DEST) install_docbook_xmls install_docbook_individual_xhtmls install_docbook_css_dirs
+docbook_targets: $(DOCBOOK_TARGETS) $(DOCBOOK_ALL_IN_ONE_XHTMLS) $(DOCBOOK_ALL_IN_ONE_XHTMLS_CSS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS) $(SCREENPLAY_SOURCES_ON_DEST) install_docbook_xmls install_docbook_individual_xhtmls install_docbook_css_dirs docbook_hhfg_images
 
 $(DOCBOOK_RENDERED_DIR)/%.html: $(DOCBOOK_ALL_IN_ONE_XHTML_DIR)/%/all-in-one.html
 	./bin/clean-up-docbook-xsl-xhtml.pl -o $@ $<
 
 lib/htmls/The-Enemy-English-rev5.html-part: t2/humour/TheEnemy/The-Enemy-English-rev5.xhtml.gz ./bin/extract-xhtml.pl
 	gunzip < $< | perl ./bin/extract-xhtml.pl -o $@ -
+
+DOCBOOK_HHFG_IMAGES_RAW = \
+	background-image.png \
+	background-shlomif.png \
+	bottom-shlomif.png \
+	style.css \
+	top-shlomif.png
+
+DOCBOOK_HHFG_DEST_DIR = $(T2_DEST)/humour/human-hacking/human-hacking-field-guide
+DOCBOOK_HHFG_IMAGES_DEST = $(patsubst %,$(DOCBOOK_HHFG_DEST_DIR)/%,$(DOCBOOK_HHFG_IMAGES_RAW))
+
+docbook_hhfg_images: $(DOCBOOK_HHFG_IMAGES_DEST)
+
+$(DOCBOOK_HHFG_IMAGES_DEST): $(DOCBOOK_HHFG_DEST_DIR)/%: $(DOCBOOK_BASE_DIR)/style/human-hacking-field-guide/%
+	cp -f $< $@

File lib/docbook/style/human-hacking-field-guide/background-image.png

Added
New image

File lib/docbook/style/human-hacking-field-guide/background-shlomif.png

Added
New image

File lib/docbook/style/human-hacking-field-guide/bottom-shlomif.png

Added
New image

File lib/docbook/style/human-hacking-field-guide/style.css

+a:hover { background-color : palegreen; }
+body 
+{ 
+    background:url(background-shlomif.png) #E5F0FA repeat-y top center;
+    color:black;
+    font-family:"times new roman","times","serif";
+    margin:0px;
+    padding:0px;
+}
+.ads_top
+{
+    padding-top: 20px;
+    background: url(top-shlomif.png) #E5F0FA top center;
+    height: 107px;
+}
+.navfooter
+{
+    background: url(bottom-shlomif.png) #E5F0FA top center;
+    height: 127px;
+}
+.navheader hr
+{
+    display: none;
+}
+.itemizedlist ul.centralized 
+{ 
+    text-align: center; 
+    list-style-type : none;
+    font-size: large;
+}
+.section, .toc, .title, .author, table, p, hr
+{
+    margin-left:auto;
+    margin-right:auto;
+    width:30em;
+    width:660px;
+}
+hr
+{
+    margin-top: 1em;
+    margin-bottom: 1em;
+}
+h1, h2
+{
+    margin-bottom: 1em;
+}
+.toc dl
+{
+    margin-top: 0;
+    padding-top: 0;
+    margin-bottom: 0;
+    padding-bottom: 0;
+}
+.center
+{
+    text-align: center;
+    margin-left: auto;
+    margin-right: auto;
+}
+

File lib/docbook/style/human-hacking-field-guide/top-shlomif.png

Added
New image