summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2017-05-03 00:27:42 +0200
committerjao <jao@gnu.org>2017-05-03 00:27:42 +0200
commit987ce1d3cc511234b0ae8faa52f18a6245a8341b (patch)
tree675b817ff240f838f56a973b0957b767de755bc2
parent050dd74299e131047b008b0ec4757316d5fada77 (diff)
downloadxmobar-987ce1d3cc511234b0ae8faa52f18a6245a8341b.tar.gz
xmobar-987ce1d3cc511234b0ae8faa52f18a6245a8341b.tar.bz2
Avoiding travis badget in the web page
-rw-r--r--.gitignore1
-rw-r--r--readme.md2
-rw-r--r--web/Makefile11
3 files changed, 10 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 5acc083..e1bb15b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
.cabal-sandbox
cabal.sandbox.config
.stack-work
+/web/readme.md
diff --git a/readme.md b/readme.md
index d4fe932..758b2bf 100644
--- a/readme.md
+++ b/readme.md
@@ -1,5 +1,3 @@
-% xmobar - a minimalistic status bar
-
[![Build Status](https://travis-ci.org/jaor/xmobar.svg?branch=master)](https://travis-ci.org/jaor/xmobar)
# About
diff --git a/web/Makefile b/web/Makefile
index e0a14ab..cb08fda 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -1,9 +1,16 @@
-index = ../readme.md
+index.src = ../readme.md
+index = readme.md
releases = ../news.md
css = xmobar.css
images = xmobar-sawfish.png xmobar-xmonad.png
remote = community.haskell.org:/srv/projects/xmobar/
htmls = index.html releases.html
+title = % xmobar - a minimalistic status bar
+
+default: index.html
+
+$(index): $(index.src)
+ @sed -E "s/^\\[!\\[Build .+/$(title)/1" $(index.src) > $(index)
index.html: releases.html $(index) $(css)
pandoc -f markdown -t html -c $(css) --toc -N -s \
@@ -22,4 +29,4 @@ upload-pages: $(htmls)
upload: upload-images upload-pages
clean:
- rm -f $(htmls)
+ rm -f $(htmls) $(index)