Skip to content

Commit 73ea5ff

Browse files
committed
Load Smarty 3 documentation
1 parent a62603c commit 73ea5ff

File tree

1,571 files changed

+156645
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,571 files changed

+156645
-0
lines changed

docs/Makefile-dist

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
STYLESHEETS_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl
2+
PHP = /usr/bin/php
3+
ZIP = /usr/bin/zip
4+
FOP = /usr/bin/fop
5+
XMLTO = /usr/bin/xmlto
6+
XSLTPROC = /usr/bin/xsltproc
7+
WINE = /usr/bin/wine
8+
LANG = en
9+
LANGS_AVAIL = de en es fr it ja pt_BR ru
10+
11+
all: html pdf
12+
13+
allweb: html htmlweb pdf
14+
15+
html: set-current-lang-symlink set-date
16+
rm -rf manual-$(LANG)
17+
$(XMLTO) html \
18+
-o manual-$(LANG) \
19+
--stringparam use.id.as.filename=1 \
20+
--stringparam chunker.output.encoding='UTF-8' \
21+
--stringparam chunker.output.indent='yes' \
22+
-x $(STYLESHEETS_DIR)/html/chunk.xsl \
23+
manual.xml
24+
$(ZIP) -r manual-$(LANG).zip manual-$(LANG)
25+
26+
set-current-lang-symlink:
27+
rm -f current_lang
28+
ln -s $(LANG) current_lang
29+
30+
set-date:
31+
sed "s/{DATE}/`date '+%Y-%m-%d'`/" entities/version.ent.in > entities/version.ent
32+
33+
fo:
34+
$(XSLTPROC) -o manual-$(LANG).fo $(STYLESHEETS_DIR)/fo/docbook.xsl manual.xml
35+
36+
pdf: set-current-lang-symlink set-date fo
37+
$(FOP) \
38+
-c fop/$(LANG).conf \
39+
-pdf manual-$(LANG).pdf \
40+
-fo manual-$(LANG).fo
41+
rm -f manual-$(LANG).fo
42+
43+
htmlweb: set-current-lang-symlink set-date
44+
rm -rf manualweb-$(LANG) htmlweb-$(LANG)
45+
$(XMLTO) html \
46+
-o manualweb-$(LANG) \
47+
--stringparam use.id.as.filename=1 \
48+
--stringparam html.ext='.tpl' \
49+
--stringparam chunker.output.encoding='UTF-8' \
50+
--stringparam chunker.output.indent='yes' \
51+
-x $(STYLESHEETS_DIR)/html/chunk.xsl \
52+
manual.xml
53+
$(PHP) -f scripts/makeweb.php manualweb-$(LANG) htmlweb-$(LANG)
54+
rm -rf manualweb-$(LANG)
55+
56+
chm: set-current-lang-symlink set-date
57+
rm -rf htmlhelp-$(LANG)
58+
$(XSLTPROC) \
59+
-o htmlhelp-$(LANG)/ \
60+
--stringparam htmlhelp.encoding 'UTF-8' \
61+
--stringparam htmlhelp.enhanced.decompilation 1 \
62+
--stringparam htmlhelp.hhc.binary 1 \
63+
--stringparam htmlhelp.autolabel 1 \
64+
--stringparam suppress.navigation 0 \
65+
--stringparam htmlhelp.default.topic 'make_chm_index.html' \
66+
--stringparam htmlhelp.use.hhk 1 \
67+
$(STYLESHEETS_DIR)/htmlhelp/htmlhelp.xsl \
68+
manual.xml
69+
cp $(LANG)/make_chm_index.html htmlhelp-$(LANG)/
70+
$(WINE) regsvr32 tools/hhw/it*.dll
71+
WINEDLLOVERRIDES="itircl,itss=n" wine tools/hhw/hhc.exe htmlhelp-en/htmlhelp.hhp || true
72+
cp htmlhelp-$(LANG)/htmlhelp.chm ./manual-$(LANG).chm
73+
rm -rf htmlhelp-$(LANG)
74+
75+
revcheck:
76+
$(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html
77+
78+
clean:
79+
for x in $(LANGS_AVAIL); do rm -rf manual-$${x} manual-$${x}.fo manual-$${x}.pdf htmlweb-$${x}; done
80+
rm -f revcheck.html

docs/README

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This directory contains the documentation for Smarty. All files are in docbook
2+
format with an .xml extension. Different subdirs contain different available languages.
3+
4+
Programs required:
5+
6+
xmlto
7+
xsltproc
8+
fop
9+
10+
Files required:
11+
12+
Default XSL stylesheets, ship with Ubuntu under:
13+
/usr/share/xml/docbook/stylesheet/docbook-xsl
14+
15+
MAKE:
16+
* make html (make plain html english docs)
17+
* make pdf (make pdf english docs)
18+
* make LANG=de html (make plain html german docs)
19+
* make LANG=de pdf (make pdf german docs)
20+
21+
CHM files (todo)
22+
23+
Revision Tracking (for translations):
24+
* make LANG=de revcheck (this will create revcheck.html)

docs/current_lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
en

docs/de/appendixes/bugs.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
3+
<!-- $Revision: 2972 $ -->
4+
<chapter id="bugs">
5+
<title>BUGS</title>
6+
<para>
7+
Bitte konsultieren Sie die Datei <filename>BUGS</filename> welche mit Smarty ausgeliefert wird,
8+
oder die Webseite.
9+
</para>
10+
</chapter>
11+
<!-- Keep this comment at the end of the file
12+
Local variables:
13+
mode: sgml
14+
sgml-omittag:t
15+
sgml-shorttag:t
16+
sgml-minimize-attributes:nil
17+
sgml-always-quote-attributes:t
18+
sgml-indent-step:1
19+
sgml-indent-data:t
20+
indent-tabs-mode:nil
21+
sgml-parent-document:nil
22+
sgml-default-dtd-file:"../../../../manual.ced"
23+
sgml-exposed-tags:nil
24+
sgml-local-catalogs:nil
25+
sgml-local-ecat-files:nil
26+
End:
27+
vim600: syn=xml fen fdm=syntax fdl=2 si
28+
vim: et tw=78 syn=sgml
29+
vi: ts=1 sw=1
30+
-->

docs/de/appendixes/resources.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- $Revision: 2978 $ -->
3+
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
4+
<chapter id="resources">
5+
<title>Weiterf&uuml;hrende Informationen</title>
6+
<para>
7+
Smarty's Homepage erreicht man unter <ulink
8+
url="&url.smarty;">&url.smarty;</ulink>. Sie k&ouml;nnen der Smarty
9+
Mailingliste beitreten in dem sie ein E-mail an
10+
&ml.general.sub;. Das Archiv der Liste ist hier <ulink
11+
url="&url.ml.archive;">&url.ml.archive;</ulink> einsehbar.
12+
</para>
13+
</chapter>
14+
<!-- Keep this comment at the end of the file
15+
Local variables:
16+
mode: sgml
17+
sgml-omittag:t
18+
sgml-shorttag:t
19+
sgml-minimize-attributes:nil
20+
sgml-always-quote-attributes:t
21+
sgml-indent-step:1
22+
sgml-indent-data:t
23+
indent-tabs-mode:nil
24+
sgml-parent-document:nil
25+
sgml-default-dtd-file:"../../../../manual.ced"
26+
sgml-exposed-tags:nil
27+
sgml-local-catalogs:nil
28+
sgml-local-ecat-files:nil
29+
End:
30+
vim600: syn=xml fen fdm=syntax fdl=2 si
31+
vim: et tw=78 syn=sgml
32+
vi: ts=1 sw=1
33+
-->

0 commit comments

Comments
 (0)