Changeset 33782
- Timestamp:
- 2019-12-10T11:35:52+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/README.html
r25468 r33782 18 18 <a name="requirements"> 19 19 </a> 20 <h2> <a name="requirements">Requirements</a></h2>21 <a name="requirements">To use this package to re-generate the20 <h2>Requirements</h2> 21 To use this package to re-generate the 22 22 Greenstone tutorial HTML, or generate a workshop, you need to have the 23 23 following: 24 </a> 24 25 25 <ul> 26 <li> <a name="requirements">Greenstone version 2.85 installed</a></li>27 <li> <a name="requirements">A Java runtime system</a></li>26 <li>Greenstone version 2.87/3.09 installed</li> 27 <li>A Java runtime system</li> 28 28 </ul> 29 29 <a name="contents"> 30 30 </a> 31 <h2> <a name="contents">Contents of this package</a></h2>31 <h2>Contents of this package</h2> 32 32 <dl> 33 <dt><b>README.html</b></dt><dd>This file</dd> 34 <dt><b>xml-source</b></dt><dd>The raw XML files for the tutorials 35 <ul> 36 <li><b>tutorial_en.xml</b> The main tutorial XML file, in English. Valid for 2.85</li> 33 <dt><b>README.html</b></dt><dd>This file</dd> 34 <dt><b>generate-html.sh/bat</b></dt><dd>Scripts for generating all the HTML</dd> 35 <dt><b>generate-workshop.sh/bat</b></dt><dd>Scripts for generating a workshop</dd> 36 <dt><b>xml-source</b></dt><dd>The raw XML files for the tutorials 37 <ul> 38 <li><b>tutorial_en.xml</b> The main tutorial XML file, in English. Valid for 2.87/3.09</li> 37 39 <li><b>tutorial_[fr|ru|es].xml</b> Translations (of an old version) of tutorial_en.xml. Valid for 2.70</li> 38 40 </ul> … … 59 61 <a name="generate-html"> 60 62 </a> 61 <h2><a name="generate-html">Generating HTML files</a></h2> 62 <ol> 63 <li><a name="generate-html">Run <tt>source setup.bash</tt> in the 63 <h2>Generating HTML files</h2> 64 <h3>The easy way</h3> 65 <ol> 66 <li>Run <tt>source setup.bash/source gs3-setup.sh</tt> in the 64 67 top level directory of your Greenstone installation</a></li> 68 <li>Run <tt>./generate-html.sh [2 or 3]</tt> in this tutorials directory, where 2/3 is which Greenstone version you want to generate tutorials for. </li> 69 </ol> 70 Windows versions of these commands are like the 71 following: 72 <ol> 73 <li><tt>setup.bat/gs3-setup.bat</tt> in the top level directory of your gs2 or gs3 installation</li> 74 <li><tt>generate-html [2 or 3]</tt> in this tutorials directory</li> 75 </ol> 76 77 These commands will make an html folder, with en subfolder containing all the English pages, plus index.html and wiki-index.txt. 78 79 This is currently set up to only generate the English version of the HTML. The French, Spanish and Russion translations are for 2.70 and haven't been updated, so we don't need to do them each time. But if they did get translated, and you want to generate the other languages, do the following: 80 <ol> 81 <li>Edit generate-html.sh, and add all the language codes to langs (langs="en fr es ru")</li> 82 <li>Edit xml-to-top-index.xsl, set the value of all-langs variable to 1</li> 83 <li>Re-run the generate-html.sh/bat script</li> 84 </ol> 85 86 <h3>The old complicated way</h3> 87 <ol> 88 <li>Run <tt>source setup.bash</tt> in the 89 top level directory of your Greenstone installation</li> 65 90 <li><a name="generate-html">Create a subdirectory in gsdl-tutorials 66 91 for your output files. If you are using multiple languages and want to
Note:
See TracChangeset
for help on using the changeset viewer.