File: Pydoh_T3UMdoc_HOWTO.txt

package info (click to toggle)
python-traitsui 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,292 kB
  • sloc: python: 39,867; makefile: 120; sh: 5
file content (68 lines) | stat: -rw-r--r-- 1,857 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
How to Use Pydoh to Generate HTML from Word for the Traits User Manual
======================================================================

1.  In MS Word, choose File > Save As.

2.  In the file dialog, select "Web Page, Filtered" as the file
    type, and save the file.

3.  Run Pydoh with the generated HTML file as the input file. Use the following
    options:

    --css  Traits3_UM_add.css
    -h     3

4.  Do the following additional clean-up steps:

    a.  Replace non-ASCII characters with HTML entities or ASCII characters:

        =========   ========
        Non-ASCII   Entity
        =========   ========
                   ©
                   ·
                   “
                   ”
                   ‘
                   ’
                   …
                   ``-``
        =========   ========

    b. In Traits3_UM.css, comment out **margin-top** for h1, h2, and h3.

    c. Find the styles that correspond to code examples; then comment out
       **margin-left** for those styles.

    d. In all HTML files, replace::

           <link rel="STYLESHEET" href=".\Traits3_UM.css">

       with::

           <link rel="STYLESHEET" href="Traits3_UM.css">

    e. In Traits3_UM_1.html, delete the Word-generated table of contents, which
       includes everything between::

           <div class=s11>
           <p class=s4>Table of Contents</p>

       and::

           <p class=s14>Index.......................................... 77</p>
           </div>

    f. In the last HTML file (currently Traits3_UM_75.html), delete the
       Word-generated index, which means everything between::

           <p class=s111><a name=Index></a>Index</p>

       and::

           <p class=s115>@on_trait_change decorator, 29</p>

       (in other words, the end of the index)