Create Local Manual
|This page describes how to prepare the local help for Audacity(R).
Manual - Building
These instructions are for Windows, but the basics are the same for any platform. We use a script to pull the manual from the wiki and turn it into static html.
Remove the old manual and make sure you can rebuild a new one:
- Make sure you have Python installed and on your PATH. Use version 2.7.*, not 3.2.*.
- Delete audacity\help\manual if it exists.
- On VS, the manual can be built in audacity\help\manual by building the 'help' project.
- On Windows if you just want to get the manual, go to audacity\scripts\mw2html_audacity, run wiki2htm and wait for it to complete.
- There is also a wiki2htm.sh, which may still work (untested here, feel free to update this comment)
Manual - Testing
Test the unzipped manual using http://linkchecker.sourceforge.net/ or similar, and report errors/warnings as appropriate.
Manual - Zipping and Uploading
For a Release, somebody should follow these instructions just after the 'manual freeze' so that builders have the same manual for all OSs. That person will be agreed as part of the Release Process.
- Zip the result of the above as audacity-manual-<rcX.version>.zip (for example audacity-manual-rc18.104.22.168.zip). When unzipped, it should produce a "help" folder with the "manual" folder inside that.
- Upload the audacity-manual-<version.rcX>.zip onto Google code http://code.google.com/p/audacity for use by the people making installers etc.
- Make sure that people are aware of the upload, and any new ones that are done, including
- People making installers etc.
When the release happens, rename audacity-manual-<rcX.version>.zip as the final version (for example audacity-manual-2.0.1.zip).
(The following step has not been used for recent Win builds, but has been left here for historical reasons.)
A currently optional step, at least for beta builds, is to reduce the size of the manual by reducing the size of the .png files. A way to do this on Windows with ImageMagick installed is shown as a batch script below, started from the image directory:
FOR /R %%a IN (*.png) DO mogrify -posterize 64 %%a FOR /R %%a IN (*.png) DO convert -quality 90 %%a %%a
This reduces the number of colors to 64 and then uses a hint to the .png compressor to be aggressive about compression. The %%a works on Win7. Martyn found that %a was needed instead on his platform (Win XP?). This reduces total images size from about 12Mb to about 5.2Mb. Some of the largest files are already being replaced on the wiki. If we do the whole wiki, then this step can be removed. If someone wants to post the equivalent script for Linux that would be appreciated.