Include common header for quick links. Exclude unnecessary .html files from build.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 10 Jul 2012 19:25:18 +0300
changeset 206 407f2a82ef26
parent 205 004fd4c6564c
child 207 3c96103ced32
Include common header for quick links. Exclude unnecessary .html files from build.
AUTHORS.rst
CHANGES.rst
HACKING.rst
LICENSE.rst
Makefile
README.rst
en-punctuation_en.rst
en-spelling_ru.rst
header.rst
index.rst
--- a/AUTHORS.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/AUTHORS.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,3 +1,4 @@
+.. include:: header.rst
 
 ===============
  AUTHORS list.
--- a/CHANGES.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/CHANGES.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,3 +1,4 @@
+.. include:: header.rst
 
 ====================
  CHANGES for jdone.
--- a/HACKING.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/HACKING.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,5 +1,7 @@
 .. -*- fill-column: 78 -*-
 
+.. include:: header.rst
+
 =======================
  gadict HACKING guide.
 =======================
--- a/LICENSE.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/LICENSE.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,3 +1,4 @@
+.. include:: header.rst
 
 =================
  gadict LICENSE.
--- a/Makefile	Tue Jul 10 19:14:31 2012 +0300
+++ b/Makefile	Tue Jul 10 19:25:18 2012 +0300
@@ -128,7 +128,7 @@
 INDEX_FILES := $(C5_FILES:.dict-c5=.index)
 
 RST_FILES := $(sort $(wildcard *.rst) STAT.rst VERSION.rst)
-HTML_FILES := $(RST_FILES:.rst=.html)
+HTML_FILES := $(filter-out VERSION.html header.html,$(RST_FILES:.rst=.html))
 
 pkgname = gadict
 fullpkgname = $(pkgname)-$(vmajor).$(vminor)
@@ -275,7 +275,7 @@
 .PHONY: html
 html: $(HTML_FILES)
 
-$(HTML_FILES): %.html: %.rst rst.css VERSION.rst $(BUILD_SCRIPTS)
+$(HTML_FILES): %.html: %.rst header.rst rst.css VERSION.rst $(BUILD_SCRIPTS)
 	$(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@
 
 VERSION.rst: VERSION $(BUILD_SCRIPTS)
@@ -320,8 +320,10 @@
 .PHONY: stat
 stat: STAT.rst
 
-STAT.rst: $(C5_FILES) VERSION.rst $(BUILD_SCRIPTS)
+STAT.rst: $(C5_FILES) header.rst VERSION.rst $(BUILD_SCRIPTS)
 	{ \
+echo '.. include:: header.rst'; \
+echo; \
 echo '============================'; \
 echo ' gadict project statistics.'; \
 echo '============================'; \
--- a/README.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/README.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,5 +1,7 @@
 .. -*- fill-column: 78 -*-
 
+.. include:: header.rst
+
 ======================
  gadict dictionaries.
 ======================
--- a/en-punctuation_en.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/en-punctuation_en.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,5 +1,7 @@
 .. -*- coding: utf-8 -*-
 
+.. include:: header.rst
+
 ============================
  English Punctuation Guide.
 ============================
--- a/en-spelling_ru.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/en-spelling_ru.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,5 +1,7 @@
 .. -*- coding: utf-8 -*-
 
+.. include:: header.rst
+
 ===================
  English spelling.
 ===================
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/header.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -0,0 +1,11 @@
+
+.. _Home: http://gadict.sourceforge.net/
+.. _UP: .
+.. _CHANGES: CHANGES.html
+.. _Changes: CHANGES.html
+.. _README: README.html
+.. _About: README.html
+.. _Statistics: STAT.html
+
+[ Home_ | Changes_ | Statistics_ | About_ ]
+
--- a/index.rst	Tue Jul 10 19:14:31 2012 +0300
+++ b/index.rst	Tue Jul 10 19:25:18 2012 +0300
@@ -1,3 +1,4 @@
+.. include:: header.rst
 
 ===========================
  gadict project home page.