annotate DOCS/xml/README.maintainers @ 31095:7a2ec1d564ce

Pass a language variable to submakes instead of reading subdirectory Makefiles.
author diego
date Mon, 10 May 2010 23:39:16 +0000
parents 0ad2da052b2e
children c00cb80e3c18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 The documentation and its translations reside in subdirectories.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 When building the documentation, the toplevel Makefile goes into
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 the subdirectories listed in the SUBDIRS variable and executes make
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 in each of those directories to create the HTML documentation
29964
5513e1981e0e - Remove now unnecessary dependency on intermediate directories.
diego
parents: 21627
diff changeset
5 in subdirectories of the 'HTML' directory.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
6
29964
5513e1981e0e - Remove now unnecessary dependency on intermediate directories.
diego
parents: 21627
diff changeset
7 IMPORTANT: Do NOT place sensitive files under 'HTML'!
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29980
diff changeset
8 It is for generated documentation only.
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29980
diff changeset
9 The whole directory tree is wiped out by the Makefile
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 29980
diff changeset
10 when running 'make distclean' or 'make clean'.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
11
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 Each subdirectory must have a Makefile. Its purpose is to include
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 the toplevel Makefile.inc file (with the rules to build the docs)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 and add dependency information to the main target, $(HTMLDIR)/index.html.
29978
253fb126c4ee Drop support for per-language XSL stylesheets.
diego
parents: 29976
diff changeset
15 The main target usually depends on all the XML files in the subdirectory.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
16
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
17
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 Adding new translations
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 ~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
20
18409
0b8825d823dd Add a note about main.xml.
diego
parents: 15778
diff changeset
21 1) Create a new subdirectory and copy the XML files there. main.xml must not be
0b8825d823dd Add a note about main.xml.
diego
parents: 15778
diff changeset
22 copied, it is autogenerated.
11199
b61680a0b29a Add some whitespace for readability + some wording improvements.
diego
parents: 11188
diff changeset
23
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 2) Make sure to create a 'Makefile' for the translation -- you can
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 use 'en/Makefile' as an example.
11199
b61680a0b29a Add some whitespace for readability + some wording improvements.
diego
parents: 11188
diff changeset
26
29978
253fb126c4ee Drop support for per-language XSL stylesheets.
diego
parents: 29976
diff changeset
27 3) In each translated file after the <?xml ... ?> tag you must put a note
21627
5fe4721562ed CVS -> SVN
torinthiel
parents: 21626
diff changeset
28 like <!-- synced with r2 -->, where 2 is the revision of corresponding
10926
f9e8401ec049 Added a note about "synced with ..." comment.
lumag
parents: 10911
diff changeset
29 English file (see comment at the top of file).
11199
b61680a0b29a Add some whitespace for readability + some wording improvements.
diego
parents: 11188
diff changeset
30
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 That's all, in theory.