Mercurial > mplayer.hg
annotate DOCS/xml/README.maintainers @ 11188:6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
author | lumag |
---|---|
date | Mon, 20 Oct 2003 09:56:48 +0000 |
parents | 753395e422d0 |
children | b61680a0b29a |
rev | line source |
---|---|
9674 | 1 The documentation and its translations reside in subdirectories. |
2 When building the documentation, the toplevel Makefile goes into | |
3 the subdirectories listed in the SUBDIRS variable and executes make | |
4 in each of those directories to create the HTML documentation | |
5 in subdirectories of the 'HTML' directory. | |
6 | |
7 IMPORTANT: Do NOT place sensitive files under 'HTML'! | |
8 It is for generated documentation only. | |
9 The whole directory tree is wiped out by the Makefile | |
10 when running 'make distclean' or 'make clean-html'. | |
11 Also, subdirectories are wiped out one by one before | |
12 creating the HTML files. | |
13 | |
14 Each subdirectory must have a Makefile. Its purpose is to include | |
15 the toplevel Makefile.inc file (with the rules to build the docs) | |
16 and add dependency information to the main target, $(HTMLDIR)/index.html. | |
17 The main target usually depends on all the XML and XSL files in the | |
18 subdirectory. (Note that the toplevel *.xsl files are added automatically | |
19 by Makefile.inc, so you do not have to list them.) | |
20 | |
21 | |
22 Adding new translations | |
23 ~~~~~~~~~~~~~~~~~~~~~~~ | |
24 | |
25 1) Create a new subdirectory and copy the XML files there. | |
26 2) Make sure to create a 'Makefile' for the translation -- you can | |
27 use 'en/Makefile' as an example. | |
28 3) Set <book lang="XX"> to your language code if the DocBook XSL | |
29 stylesheets support it. | |
30 4) If you want to use a customized XSL stylesheet, create one and name it | |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
31 'html-common.xsl'. Also create two additional XSL stylesheets ('html.xsl' |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
32 and 'html-chunk.xsl', with such content: |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
33 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
34 html.xsl: |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
35 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
36 <?xml version="1.0" encoding="ISO-8859-1"?> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
37 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
38 version="1.0"> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
39 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
40 <xsl:import href="../html.xsl"/> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
41 <xsl:include href="html-common.xsl"/> |
9674 | 42 |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
43 </xsl:stylesheet> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
44 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
45 html-chunk.xsl: |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
46 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
47 <?xml version="1.0" encoding="ISO-8859-1"?> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
48 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
49 version="1.0"> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
50 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
51 <xsl:import href="../html-chunk.xsl"/> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
52 <xsl:include href="html-common.xsl"/> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
53 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
54 </xsl:stylesheet> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
55 |
11132
550c25c57f34
Document, that chunk.xsl mustn't be included directly.
lumag
parents:
11051
diff
changeset
|
56 |
11145 | 57 Note: You mustn't xsl:include or xsl:import chunk.xsl directly! |
58 Including it can (and will) break building of documentation if chunk.xsl | |
59 is installed at a nonstandard location. | |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
60 5) If you wish to change output encoding of generated files, create |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
61 html-common.xsl as suggested in step 4) and add such strings somewhere |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
62 between <xsl:stylesheet ...> and </xsl:stylesheet> tags |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
63 (please, pay attention to quotes): |
9674 | 64 |
10911 | 65 <xsl:param name="chunker.output.encoding" select="'your_encoding'"/> |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
66 <xsl:output encoding="your_encoding"/> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
67 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
68 Use ru/html-common.xsl as example. |
10911 | 69 6) If you are using your own HTML stylesheet, edit your Makefile and set |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
70 the HTML_STYLESHEET variable to its name. Please, don't give name |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11145
diff
changeset
|
71 'default.css' to your HTML stylesheet. |
10926 | 72 7) In each translated file after the <?xml ... ?> tag you must put a note |
73 like <!-- synced with 1.2 -->, where 1.2 is the revision of corresponding | |
74 English file (see comment at the top of file). | |
11051 | 75 8) While your translation isn't finished, you can change USE_SYMLINKS |
76 to "yes" in your Makefile. This will help you testing your translation: | |
77 english files will be used instead of untranslated ones, when generating | |
78 HTML docs. | |
10926 | 79 |
9674 | 80 That's all, in theory. |