# HG changeset patch # User Oleksandr Gavenko # Date 1341937518 -10800 # Node ID 407f2a82ef265e0609fa9ce7a7dcc40c54a07a6b # Parent 004fd4c6564c9168bce44cf179a22d7589915c99 Include common header for quick links. Exclude unnecessary .html files from build. diff -r 004fd4c6564c -r 407f2a82ef26 AUTHORS.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. diff -r 004fd4c6564c -r 407f2a82ef26 CHANGES.rst --- 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. diff -r 004fd4c6564c -r 407f2a82ef26 HACKING.rst --- 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. ======================= diff -r 004fd4c6564c -r 407f2a82ef26 LICENSE.rst --- 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. diff -r 004fd4c6564c -r 407f2a82ef26 Makefile --- 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 '============================'; \ diff -r 004fd4c6564c -r 407f2a82ef26 README.rst --- 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. ====================== diff -r 004fd4c6564c -r 407f2a82ef26 en-punctuation_en.rst --- 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. ============================ diff -r 004fd4c6564c -r 407f2a82ef26 en-spelling_ru.rst --- 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. =================== diff -r 004fd4c6564c -r 407f2a82ef26 header.rst --- /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_ ] + diff -r 004fd4c6564c -r 407f2a82ef26 index.rst --- 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.