xsf-docs: Changes to 'master'
Makefile | 12 +++++++++---
xsf.css | 11 +++++++++++
xsf.png |binary
3 files changed, 20 insertions(+), 3 deletions(-)
New commits:
commit 606f4d2384bd07938c0252ba47811fe6899a329e
Author: Cyril Brulebois <kibi@debian.org>
Date: Wed Jan 19 18:34:35 2011 +0100
css: Dirty hack to use the PNG version of the logo.
Upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=231179
diff --git a/xsf.css b/xsf.css
index 8af2227..1b7aaf6 100644
--- a/xsf.css
+++ b/xsf.css
@@ -7,6 +7,17 @@ body {
font-family: Georgia;
}
+/* Firefox before version 4 don't support SVG in backgrounds, use a
+ ugly workaround to change the background to the PNG version for
+ Mozilla-based browsers:
+ https://bugzilla.mozilla.org/show_bug.cgi?id=231179
+*/
+@-moz-document url-prefix() {
+ body {
+ background-image: url("xsf.png");
+ }
+}
+
h1 {
margin-left: 10px;
color: darkblue;
commit 04b0afc1d0367b337b9f8bb53f6cad345004a8eb
Author: Cyril Brulebois <kibi@debian.org>
Date: Wed Jan 19 18:31:14 2011 +0100
logo: Commit the png version exported through inkscape.
diff --git a/xsf.png b/xsf.png
new file mode 100644
index 0000000..19c1ec2
Binary files /dev/null and b/xsf.png differ
commit 36b74cdb500b31ccada21751501391cf5ee76ad1
Author: Cyril Brulebois <kibi@debian.org>
Date: Wed Jan 19 18:30:29 2011 +0100
makefile: Build a png version of the logo for Firefox.
diff --git a/Makefile b/Makefile
index 12710fc..d58f249 100644
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,9 @@ MDWN_TO_HTML = ./mdwn2html
HTML_TO_PDF = wkhtmltopdf
CSS_FILE = xsf.css
SVG_LOGO = xsf.svg
+PNG_LOGO = xsf.png
-all: html pdf
+all: html pdf $(PNG_LOGO)
html: $(html_pages)
@@ -23,6 +24,11 @@ pdf: $(pdf_files)
%.pdf: %.html $(CSS_FILE) $(SVG_LOGO)
$(HTML_TO_PDF) $< $@
+# We usually don't need to run this one, but it's easier to keep both
+# SVN and PNG logos in sync:
+$(PNG_LOGO): $(SVG_LOGO)
+ inkscape $< -e $@
+
clean:
@echo "Removing all generated html files"
rm -f $(html_pages) $(pdf_files)
commit 1e2012bb1676a51f76d5b3ae4619fd3b45f77bb3
Author: Cyril Brulebois <kibi@debian.org>
Date: Wed Jan 19 18:26:32 2011 +0100
makefile: No-op, rename a variable.
diff --git a/Makefile b/Makefile
index 5dfa59c..12710fc 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ pdf_files = $(patsubst %.mdwn,%.pdf,$(mdwn_pages))
MDWN_TO_HTML = ./mdwn2html
HTML_TO_PDF = wkhtmltopdf
CSS_FILE = xsf.css
-LOGO_FILE = xsf.svg
+SVG_LOGO = xsf.svg
all: html pdf
@@ -20,7 +20,7 @@ pdf: $(pdf_files)
%.html: %.mdwn $(MDWN_TO_HTML)
$(MDWN_TO_HTML) $< $@
-%.pdf: %.html $(CSS_FILE) $(LOGO_FILE)
+%.pdf: %.html $(CSS_FILE) $(SVG_LOGO)
$(HTML_TO_PDF) $< $@
clean:
Reply to: