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
 
# -*- makefile -*-
 

	
 
top_srcdir = ..
 
srcdir = .
 

	
 
base_dir=$(shell pwd)
 

	
 
INPUTS =
 
TXTS = 
 
HTML_TXTS = 
 
EXTRA_DIST =
 
CLEANFILES =
 

	
 
TXTS += README.txt
 
TXTS += README-de.txt
 
HTML_TXTS += index.txt
 
HTML_TXTS += README-GFDL.txt
 
HTML_TXTS += README-COPYING.txt
 

	
 
# use cp for Windows
 
LN_S = cp
 
LN_S = ln -s
 

	
 
TXT_PDFS = $(patsubst %.txt,%.pdf,$(TXTS))
 
TXT_HTMLS = $(patsubst %.txt,%.html,$(TXTS)) $(patsubst %.txt,%.html,$(HTML_TXTS))
 
#CLEANFILES += $(TXT_PDFS)
 
#CLEANFILES += $(TXT_HTMLS)
 

	
 
SNIPPETS = ../lib/snippets.pl
 

	
 
DISTFILES =
 
DISTFILES += Makefile
 
DISTFILES += $(TXTS)
 
DISTFILES += $(TXT_PDFS)
 
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)
 

	
 
clean-local:
 
	find . -name '*.pyc' | xargs -r rm 
 

	
 
install_top_dir = ../../wolfmanx.bitbucket.org
 
install_dir = $(install_top_dir)/ws-vacation
 

	
 
install: all
 
	@(						\
 
	test ! -d $(install_top_dir) ||			\
 
	(						\
 
	mkdir -p $(install_dir);			\
 
	list='$(TXT_HTMLS)'; test -z "$$list" ||	\
 
	for file in $$list; do				\
 
	    echo "cp $$file $(install_dir)/";		\
 
	    cp $$file $(install_dir)/;			\
 
	done;						\
 
	)						\
 
	)
 

	
 
dist:
 

	
 
tags-rc:
 
	gen_tags.sh --template
 
tags:
 
	gen_tags.sh --force
 

	
 
README.txt: ../README.txt
 
	rm -f $@
 
	$(LN_S) ../$@ $@
 

	
 
# |:here:|
 
# :ide-menu: Emacs IDE Main Menu - Buffer @BUFFER@
 
# . M-x `eIDE-menu' ()(eIDE-menu "z")
 

	
 
# :ide: COMPILE: tags
 
# . (let ((args "tags")) (compile (concat "make -k " args)))
 

	
 
# :ide: COMPILE: dist
 
# . (let ((args "dist")) (compile (concat "make -k " args)))
 

	
 
# :ide: COMPILE: install
doc/README-de.pdf
Show inline comments
 
@@ -237,97 +237,97 @@ endobj
 
17 0 obj
 
<< /A << /S /URI
 
 /Type /Action
 
 /URI (http://www.wiedenmannseile.de) >>
 
 /Border [ 0
 
 0
 
 0 ]
 
 /Rect [ 62.69291
 
 478.6161
 
 91.58291
 
 490.6161 ]
 
 /Subtype /Link
 
 /Type /Annot >>
 
endobj
 
% 'Page2': class PDFPage 
 
18 0 obj
 
% Page dictionary
 
<< /Annots [ 15 0 R
 
 16 0 R
 
 17 0 R ]
 
 /Contents 27 0 R
 
 /MediaBox [ 0
 
 0
 
 595.2756
 
 841.8898 ]
 
 /Parent 25 0 R
 
 /Resources << /Font 1 0 R
 
 /ProcSet [ /PDF
 
 /Text
 
 /ImageB
 
 /ImageC
 
 /ImageI ] >>
 
 /Rotate 0
 
 /Trans <<  >>
 
 /Type /Page >>
 
endobj
 
% 'R19': class PDFCatalog 
 
19 0 obj
 
% Document Root
 
<< /Outlines 21 0 R
 
 /PageLabels 28 0 R
 
 /PageMode /UseNone
 
 /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
 
% 'R21': class PDFOutlines 
 
21 0 obj
 
<< /Count 3
 
 /First 22 0 R
 
 /Last 24 0 R
 
 /Type /Outlines >>
 
endobj
 
% 'Outline.0': class OutlineEntryObject 
 
22 0 obj
 
<< /Dest [ 13 0 R
 
 /XYZ
 
 62.69291
 
 581.0236
 
 0 ]
 
 /Next 23 0 R
 
 /Parent 21 0 R
 
 /Title (Installation) >>
 
endobj
 
% 'Outline.1': class OutlineEntryObject 
 
23 0 obj
 
<< /Dest [ 13 0 R
 
 /XYZ
 
 62.69291
 
 219.2236
 
 0 ]
 
 /Next 24 0 R
 
 /Parent 21 0 R
 
 /Prev 22 0 R
 
 /Title (Benutzerverwaltung) >>
 
endobj
 
% 'Outline.2': class OutlineEntryObject 
 
24 0 obj
 
<< /Dest [ 18 0 R
 
 /XYZ
 
 62.69291
 
 660.8661
 
 0 ]
 
 /Parent 21 0 R
 
 /Prev 23 0 R
 
 /Title (Anpassung) >>
 
endobj
 
% 'R25': class PDFPages 
 
@@ -882,56 +882,56 @@ endobj
 
% 'R29': class PDFPageLabel 
 
29 0 obj
 
% None
 
<< /S /D
 
 /St 1 >>
 
endobj
 
% 'R30': class PDFPageLabel 
 
30 0 obj
 
% None
 
<< /S /D
 
 /St 2 >>
 
endobj
 
xref
 
0 31
 
0000000000 65535 f
 
0000000113 00000 n
 
0000000260 00000 n
 
0000000425 00000 n
 
0000000612 00000 n
 
0000000860 00000 n
 
0000001101 00000 n
 
0000001342 00000 n
 
0000001583 00000 n
 
0000001824 00000 n
 
0000002065 00000 n
 
0000002294 00000 n
 
0000002476 00000 n
 
0000002636 00000 n
 
0000002987 00000 n
 
0000003189 00000 n
 
0000003437 00000 n
 
0000003685 00000 n
 
0000003919 00000 n
 
0000004239 00000 n
 
0000004398 00000 n
 
0000004681 00000 n
 
0000004806 00000 n
 
0000004979 00000 n
 
0000005173 00000 n
 
0000005327 00000 n
 
0000005444 00000 n
 
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
 
%%EOF
doc/README.pdf
Show inline comments
 
@@ -237,97 +237,97 @@ endobj
 
17 0 obj
 
<< /A << /S /URI
 
 /Type /Action
 
 /URI (http://www.wiedenmannseile.de) >>
 
 /Border [ 0
 
 0
 
 0 ]
 
 /Rect [ 62.69291
 
 457.7736
 
 91.58291
 
 469.7736 ]
 
 /Subtype /Link
 
 /Type /Annot >>
 
endobj
 
% 'Page2': class PDFPage 
 
18 0 obj
 
% Page dictionary
 
<< /Annots [ 15 0 R
 
 16 0 R
 
 17 0 R ]
 
 /Contents 27 0 R
 
 /MediaBox [ 0
 
 0
 
 595.2756
 
 841.8898 ]
 
 /Parent 25 0 R
 
 /Resources << /Font 1 0 R
 
 /ProcSet [ /PDF
 
 /Text
 
 /ImageB
 
 /ImageC
 
 /ImageI ] >>
 
 /Rotate 0
 
 /Trans <<  >>
 
 /Type /Page >>
 
endobj
 
% 'R19': class PDFCatalog 
 
19 0 obj
 
% Document Root
 
<< /Outlines 21 0 R
 
 /PageLabels 28 0 R
 
 /PageMode /UseNone
 
 /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
 
% 'R21': class PDFOutlines 
 
21 0 obj
 
<< /Count 3
 
 /First 22 0 R
 
 /Last 24 0 R
 
 /Type /Outlines >>
 
endobj
 
% 'Outline.0': class OutlineEntryObject 
 
22 0 obj
 
<< /Dest [ 13 0 R
 
 /XYZ
 
 62.69291
 
 581.0236
 
 0 ]
 
 /Next 23 0 R
 
 /Parent 21 0 R
 
 /Title (Installation) >>
 
endobj
 
% 'Outline.1': class OutlineEntryObject 
 
23 0 obj
 
<< /Dest [ 13 0 R
 
 /XYZ
 
 62.69291
 
 201.2236
 
 0 ]
 
 /Next 24 0 R
 
 /Parent 21 0 R
 
 /Prev 22 0 R
 
 /Title (User Management) >>
 
endobj
 
% 'Outline.2': class OutlineEntryObject 
 
24 0 obj
 
<< /Dest [ 18 0 R
 
 /XYZ
 
 62.69291
 
 670.0236
 
 0 ]
 
 /Parent 21 0 R
 
 /Prev 23 0 R
 
 /Title (Configuration) >>
 
endobj
 
% 'R25': class PDFPages 
 
@@ -917,56 +917,56 @@ endobj
 
% 'R29': class PDFPageLabel 
 
29 0 obj
 
% None
 
<< /S /D
 
 /St 1 >>
 
endobj
 
% 'R30': class PDFPageLabel 
 
30 0 obj
 
% None
 
<< /S /D
 
 /St 2 >>
 
endobj
 
xref
 
0 31
 
0000000000 65535 f
 
0000000113 00000 n
 
0000000260 00000 n
 
0000000425 00000 n
 
0000000612 00000 n
 
0000000860 00000 n
 
0000001101 00000 n
 
0000001342 00000 n
 
0000001583 00000 n
 
0000001824 00000 n
 
0000002065 00000 n
 
0000002294 00000 n
 
0000002476 00000 n
 
0000002636 00000 n
 
0000002987 00000 n
 
0000003189 00000 n
 
0000003437 00000 n
 
0000003685 00000 n
 
0000003919 00000 n
 
0000004239 00000 n
 
0000004398 00000 n
 
0000004681 00000 n
 
0000004806 00000 n
 
0000004979 00000 n
 
0000005170 00000 n
 
0000005328 00000 n
 
0000005445 00000 n
 
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
 
%%EOF
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
 
@@ -60,98 +60,98 @@ deleted.
 

	
 
|screenshot|_
 

	
 
==================================================
 
:rem:`|||:sec:|||`\ Features
 
==================================================
 

	
 
The edited message is converted to a message file using
 

	
 
- Content-Type: text/plain; charset="utf-8"
 
- Content-Transfer-Encoding: quoted-printable
 

	
 
Therefore international characters do not pose a problem.
 

	
 
If the filter is activated, file $HOME/.forward is created from the
 
settings, otherwise the .forward file is deleted.
 

	
 
The program comes with a preconfigured sudoers(5) configuration file,
 
which allows the www server user to execute the vacation(1) command on
 
behalf of a system user.
 

	
 
There is also an apache2(8) configuration file included.
 

	
 
==================================================
 
:rem:`|||:sec:|||`\ Source Code and Installation
 
==================================================
 

	
 
The source code is available in a mercurial repository at
 
`ws-vacation`_.
 

	
 
Clone the repository with::
 

	
 
    $ hg clone https://bitbucket.org/wolfmanx/ws-vacation
 

	
 
See the `Administrator Manual`_ for installation instructions.
 

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

	
 
:html:`<hr>`
 

	
 
.. \[#]
 

	
 
.. ==================================================
 
.. :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$
 

	
 
:rem:`|||:sec:|||`\ **Copyright**
 

	
 
Copyright (C) 2012, Wolfgang Scherer, <sw@wiedenmann-seile.de>.
 
Sponsored by `Wiedenmann-Seile GmbH`_.
 

	
 
.. div::
 
   :format: html
 

	
 
   See section |GFDL| for license conditions for the documentation.
 

	
 
   See section |GPL| for license conditions for the program.
 

	
 
.. div::
 
   :format: !html
 

	
 
   See *GNU Free Documentation License* in file `GFDL.txt` for license
 
   conditions for the documentation.
 

	
 
   See *GNU General Public License* in file `COPYING` for license
 
   conditions for the program.
 

	
 
.. |GFDL| replace:: `GNU Free Documentation License`_
 
.. |GPL| replace:: `GNU General Public License`_
 

	
 
.. _`GNU Free Documentation License`: README-GFDL.html
 
.. _`GNU General Public License`: README-COPYING.html
 
.. _`Wiedenmann-Seile GmbH`: http://www.wiedenmannseile.de
 
.. _`Wolfgang Scherer`: sw@wiedenmann-seile.de
 

	
 
.. \||<-snip->|| stop
 

	
 
.. ==================================================
 
.. :rem:`|||:sec:|||`\ END
 
.. ==================================================
 
.. 
 
.. :ide-menu: Emacs IDE Main Menu - Buffer @BUFFER@
 
.. . M-x `eIDE-menu' ()(eIDE-menu "z")
 

	
 
.. :ide: DELIM: SNIPPETS (ABOUT)       |q|<- SYM ->||,   ||<- SYM ->||,  @| SYM @
 
.. . (let nil (symbol-tag-normalize-delimiter (cons (cons nil "||<-") (cons "->||" nil)) t) (symbol-tag-switch-delimiter-sets) (symbol-tag-normalize-delimiter (cons (cons nil "||<-") (cons "->||" nil)) t) (setq symbol-tag-match-rx "sn[i]p") (setq symbol-tag-enclose-delimiter-set (symbol-tag-normalize-delimiter (cons (cons nil "@|") (cons "@" nil)))))
 

	
0 comments (0 inline, 0 general)