Changeset - r16:b02d1f078d98
[Not reviewed]
default
0 5 1
Wolfgang Scherer (ws) - 13 years ago 2012-03-31 00:47:37
wolfgang.scherer@gmx.de
doc/index-template.txt: Add javascript to add a trailing slash, if the URL does not end in `.html' or a `/'.
This is needed for bitbucket.org to make relative links work.
6 files changed with 42 insertions and 10 deletions:
0 comments (0 inline, 0 general)
doc/Makefile
Show inline comments
 
@@ -36,22 +36,26 @@ DISTFILES += $(TXT_HTMLS)
 
DISTFILES += $(EXTRA_DIST)
 

	
 
%: %.in
 
	cat $< | $(SNIPPETS) --process --replace --mode text --key base_dir --value $(base_dir) --cat - >$@
 
	test -s $@ || ( rm -f $@ && test 1 = 0 )
 

	
 
%.html: %.txt
 
%.html: %.txt docutils.conf
 
	cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2html.py --traceback --cloak-email-addresses >$@
 
	test -s $@ || (rm -f $@ && exit 1)
 

	
 
%.pdf: %.txt
 
%.pdf: %.txt docutils.conf
 
	cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2pdf -e ws_docutils.raw_role >$@
 
	test -s $@ || (rm -f $@ && exit 1)
 

	
 
default: all
 

	
 
index.html: index.txt index-template.txt docutils.conf
 
	cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2html.py --template index-template.txt --traceback --cloak-email-addresses >$@
 
	test -s $@ || (rm -f $@ && exit 1)
 

	
 
all: $(DISTFILES) all-local
 

	
 
all-local:
 

	
 
clean: clean-local
 
	test -z '$(CLEANFILES)' || rm -rf $(CLEANFILES)
doc/README-de.pdf
Show inline comments
 
@@ -279,13 +279,13 @@ 19 0 obj
 
 /Pages 25 0 R
 
 /Type /Catalog >>
 
endobj
 
% 'R20': class PDFInfo 
 
20 0 obj
 
<< /Author (Wolfgang Scherer)
 
 /CreationDate (D:20120330020520-01'00')
 
 /CreationDate (D:20120331000242-01'00')
 
 /Creator (\(unspecified\))
 
 /Keywords ()
 
 /Producer (ReportLab PDF Library - www.reportlab.com)
 
 /Subject (\(unspecified\))
 
 /Title (Wiedenmann Vacation) >>
 
endobj
 
@@ -924,13 +924,13 @@ 0000011926 00000 n
 
0000015627 00000 n
 
0000015733 00000 n
 
0000015810 00000 n
 
trailer
 
<< /ID 
 
 % ReportLab generated PDF document -- digest (http://www.reportlab.com) 
 
 [(\302K\277\)\311\307\224\020\005s\024\307G \257\223) (\302K\277\)\311\307\224\020\005s\024\307G \257\223)] 
 
 [(\034<\031 K\317g\331\021v\355\341\332/\035\346) (\034<\031 K\317g\331\021v\355\341\332/\035\346)] 
 
 
 /Info 20 0 R
 
 /Root 19 0 R
 
 /Size 31 >>
 
startxref
 
15857
doc/README.pdf
Show inline comments
 
@@ -279,13 +279,13 @@ 19 0 obj
 
 /Pages 25 0 R
 
 /Type /Catalog >>
 
endobj
 
% 'R20': class PDFInfo 
 
20 0 obj
 
<< /Author (Wolfgang Scherer)
 
 /CreationDate (D:20120330224029-01'00')
 
 /CreationDate (D:20120331000242-01'00')
 
 /Creator (\(unspecified\))
 
 /Keywords ()
 
 /Producer (ReportLab PDF Library - www.reportlab.com)
 
 /Subject (\(unspecified\))
 
 /Title (Wiedenmann Vacation) >>
 
endobj
 
@@ -959,13 +959,13 @@ 0000012489 00000 n
 
0000016391 00000 n
 
0000016497 00000 n
 
0000016574 00000 n
 
trailer
 
<< /ID 
 
 % ReportLab generated PDF document -- digest (http://www.reportlab.com) 
 
 [(\370\353P#\004\326\277AD\372\035\365w\313,\011) (\370\353P#\004\326\277AD\372\035\365w\313,\011)] 
 
 [(\375J\202X\015\3505y}\214\333$\376\033\000\352) (\375J\202X\015\3505y}\214\333$\376\033\000\352)] 
 
 
 /Info 20 0 R
 
 /Root 19 0 R
 
 /Size 31 >>
 
startxref
 
16621
doc/docutils.conf
Show inline comments
 
[html4css1 writer]
 
# Required for docutils-update, the website build system:
 
stylesheet: ../css/basic.css,
 
            ../css/pygments.css,
 
	    ../css/ws-project.css
 
#stylesheet: ../doc/blue_box.css
 
#stylesheet-path: ./html4css1.css
 
embed-stylesheet: no
 
#embed-stylesheet: yes
 
#field-name-limit: 20
 
language_code: de
doc/index-template.txt
Show inline comments
 
new file 100644
 
%(head_prefix)s
 
%(head)s
 
%(stylesheet)s
 
    <script type="text/javascript"><!--
 
      // Add a trailing slash to the URL, if it does not end in `.html' or `/'.
 
      // This is needed for relative links to work on bitbucket.org
 
      my_url = document.location.href;
 
      query = [];
 
      spc_pos = my_url.indexOf('?');
 
      if (spc_pos >= 0) {
 
          query.unshift(my_url.substr(spc_pos));
 
	  my_url = my_url.substr(0, spc_pos);
 
      }
 
      spc_pos = my_url.indexOf('#');
 
      if (spc_pos >= 0) {
 
          query.unshift(my_url.substr(spc_pos));
 
	  my_url = my_url.substr(0, spc_pos);
 
      }
 
      if (my_url.indexOf('.html') < my_url.length - '.html'.length) {
 
          if (my_url.substr(my_url.length - 1) != '/') {
 
	      my_url += '/' + query.join('');
 
	      document.location.href = my_url;
 
          }
 
      }
 
      //--></script>
 
%(body_prefix)s
 
%(body_pre_docinfo)s
 
%(docinfo)s
 
%(body)s
 
%(body_suffix)s
doc/index.txt
Show inline comments
 
@@ -102,14 +102,14 @@ See the `Administrator Manual`_ for inst
 
.. \[#]
 

	
 
.. ==================================================
 
.. :rem:`|||:sec:|||`\ References
 
.. ==================================================
 

	
 
.. |screenshot|  image:: http://bitbucket.org/wolfmanx/ws-vacation/raw/tip/doc/ws-vacation-t.jpg
 
.. _screenshot: http://bitbucket.org/wolfmanx/ws-vacation/raw/tip/doc/ws-vacation.jpg
 
.. |screenshot|  image:: ws-vacation-t.jpg
 
.. _screenshot: ws-vacation.jpg
 

	
 
.. _`Administrator Manual`: README.html
 
.. _`ws-vacation`: https://bitbucket.org/wolfmanx/ws-vacation
 
.. _`full size`: http://bitbucket.org/wolfmanx/ws-vacation/raw/e60cce377e32/doc/ws-vacation.jpg
 

	
 
.. \||<-snap->|| include ^index-footer.snip$
0 comments (0 inline, 0 general)