Shlomi Fish avatar Shlomi Fish committed b59e70a

Made the DocBook 5/XML process more similar to shlomif-homepage.

See:

https://bitbucket.org/shlomif/shlomi-fish-homepage .

Comments (0)

Files changed (3)

 ^lib/tutorials/bad-elements/bad-elements\.docbook5\.xml$
 ^lib/tutorials/bad-elements/bad-elements\.xhtml/index\.html$
 ^lib/tutorials/bad-elements/all-in-one-xhtml/bad-elements/index\.html$
+^lib/docbook/5/essays/bad-elements/all-in-one\.xhtml$
+^lib/docbook/5/rendered/bad-elements\.xhtml$
+^lib/docbook/5/xml/bad-elements\.xml$
 ^p4n\.mak$
 ^rules\.mak$
 ^src/jqui-override\.css$
 $(TARGET)/.htaccess: lib/htaccess.txt
 	cp -f $< $@
 
-BAD_ELEMENTS_DB5 = lib/tutorials/bad-elements/bad-elements.docbook5.xml
 BAD_ELEMENTS_SOURCE_XML = src/tutorials/bad-elements/perl-elements-to-avoid.xml-grammar-vered.xml
 BAD_ELEMENTS_XSLT = src/tutorials/bad-elements/vered-xml-to-docbook.xslt
 BAD_ELEMENTS_XHTML_DIR = lib/tutorials/bad-elements/all-in-one-xhtml/bad-elements
-BAD_ELEMENTS_XHTML = $(BAD_ELEMENTS_XHTML_DIR)/index.html
 
-bad_elements_html: $(BAD_ELEMENTS_XHTML)
+DOCBOOK5_BASE_DIR = lib/docbook/5
+
+DOCBOOK5_SOURCES_DIR := $(DOCBOOK5_BASE_DIR)/xml
+DOCBOOK5_RENDERED_DIR := $(DOCBOOK5_BASE_DIR)/rendered
+DOCBOOK5_ALL_IN_ONE_XHTML_DIR := $(DOCBOOK5_BASE_DIR)/essays
+
+BAD_ELEMENTS_DB5 := $(DOCBOOK5_SOURCES_DIR)/bad-elements.xml
+BAD_ELEMENTS_XHTML := $(DOCBOOK5_ALL_IN_ONE_XHTML_DIR)/bad-elements/all-in-one.xhtml
+BAD_ELEMENTS_RENDERED := $(DOCBOOK5_RENDERED_DIR)/bad-elements.xhtml
+
+bad_elements_html: $(BAD_ELEMENTS_XHTML) $(BAD_ELEMENTS_RENDERED)
 
 DOCBOOK5_RELAXNG = rng/docbook.rng
 DOCBOOK5_XSL_STYLESHEETS_PATH := $(HOME)/Download/unpack/file/docbook/docbook-xsl-ns-snapshot
 	rm -f $@.temp.xml.html
 	perl -lpi -e 's/[ \t]+\z//' $@
 
+$(DOCBOOK5_RENDERED_DIR)/%.xhtml: $(DOCBOOK5_ALL_IN_ONE_XHTML_DIR)/%/all-in-one.xhtml
+	./bin/clean-up-docbook-5-xsl-xhtml-1_1.pl -o $@ $<
+
 %.show:
 	@echo "$* = $($*)"
Add a comment to this file

lib/docbook/5/rendered/PLACEHOLDER

Empty file added.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.