# HG changeset patch # User Oleksandr Gavenko # Date 1320415940 -7200 # Node ID f4091233387526efadc9339fe42511a41a97fcc6 # Parent d07c0496cdfe84e57059a6b4d341c22125725de2 Generate index.html without "target=article" so links open in current browser tab. diff -r d07c0496cdfe -r f40912333875 Makefile --- a/Makefile Fri Nov 04 15:58:36 2011 +0200 +++ b/Makefile Fri Nov 04 16:12:20 2011 +0200 @@ -35,7 +35,8 @@ HTML_DIR := tips-html RST_HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES)) -HTML_FILES := $(RST_HTML_FILES) $(HTML_DIR)/index.html $(HTML_DIR)/index-frame.html +HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES)) \ + $(HTML_DIR)/index.html $(HTML_DIR)/frame.html $(HTML_DIR)/frame-index.html TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES)) CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp) @@ -54,8 +55,11 @@ $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR) $(RST2HTML) --stylesheet=rst.css $*.rst $@ +$(HTML_DIR)/frame-index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) + ./index.sh frame >$@ + $(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) - ./index.sh frame >$@ + ./index.sh html >$@ $(HTML_DIR)/%.html: %.html | $(HTML_DIR) cp $< $@ @@ -77,7 +81,7 @@ ./chm-hhc.sh >$@ $(HTML_DIR)/index-chm.html: index.sh | $(HTML_DIR) - ./index.sh chm >$@ + ./index.sh html >$@ ################################################################ # Init targets.