Changes between Version 6 and Version 7 of Submitting/Docs


Ignore:
Timestamp:
10/21/14 05:59:51 (10 years ago)
Author:
neteler
Comment:

expanded

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/Docs

    v6 v7  
    22= Submitting Documentation =
    33
    4 There are two types of documentation
    5  * Libraries programmers docs: we [http://grass.osgeo.org/programming7/ use doxygen and document the functions] directly in the source code. See lib/gis/*.c and lib/gis/gislib.dox for examples
     4There are three types of documentation
     5 * '''Library programmer's manual''': we [http://grass.osgeo.org/programming7/ use doxygen and document the functions] directly in the source code. See lib/gis/*.c and lib/gis/gislib.dox for examples
    66
    7  * User manual: we write it in simple HTML, storing the manual in a file '<module>.html' within the subdirectory of the module. The file contains no header nor footer. The complete HTML file is autogenerated during the compilation process (indeed, it is generated in a virtual session directly after compilation of the module). In this virtual session the module is called internally with --html-description which generates the parameters/flags list in HTML format, along with '<module>.html', HTML header and footer the final HTML manual page is created and stored in the target binaries directory. In a separate process, the MAN format is generated from the complete HTML files.
     7 * '''User manual''': each command ("module") comes with its own page. We write it in simple HTML, storing the manual in a file '<module>.html' within the subdirectory of the module. The file contains no header nor footer. The complete HTML file is autogenerated during the compilation process (indeed, it is generated in a virtual session directly after compilation of the module). In this virtual session the module is called internally with --html-description which generates the parameters/flags list in HTML format, along with '<module>.html', HTML header and footer the final HTML manual page is created and stored in the target binaries directory. In a separate process, the MAN format is generated from the complete HTML files.
    88
    9 See also http://grass.osgeo.org/wiki/Updating_GRASS_Documentation
     9 * '''Python documentation''': written in Markdown which is compiled with Sphinx (see [http://grass.osgeo.org/grass71/manuals/libpython/pygrass_index.html PyGRASS documentation])
     10
     11See also on the main Web site: http://grass.osgeo.org/wiki/Updating_GRASS_Documentation
    1012
    1113== HTML Pages ==
    1214
    13 To avoid insertion of too complicated HTML tags (see also below),
    14 we strongly suggest to use a plain text editor rather than a
    15 HTML editor for editing.
     15To avoid insertion of overly complicated HTML tags (see also below), we strongly suggest to use a plain text editor rather than a HTML editor for editing.
    1616
    1717=== Module Manual Pages ===
     
    4444   R: <h2>AUTHOR</h2>, <h2>AUTHORS</h2>[[br]]
    4545
    46 Note that the parameter information is auto-generated upon
     46Note that the parameter manual section is auto-generated upon
    4747compilation. This is done by running the module in a virtual session
    4848after compilation (see the output of 'make'). To subsequently
     
    5050will be stored with the name of the module.
    5151
    52 Examples (please add some) should be coded like this:
     52Examples (please add some more) should be coded like this:
    5353{{{
    5454<div class="code"><pre>
     
    5757}}}
    5858 
    59 The online WWW man pages are updated every Saturday (from SVN repository).
     59The [http://grass.osgeo.org/grass70/manuals/ online WWW manual pages] are updated every Saturday (from SVN repository).
    6060
    6161=== Supported HTML Tags ===
     
    6969}}}
    7070   
    71 Note that all tags have a closing tag except for <hr/>, <br/> and <p>.
    72 Use lower case forms.
     71 * Note that all tags have a closing tag except for <hr/>, <br/> and <p>.
     72 * Use lower case forms.
     73 * Do not insert <p> after <h2>...</h2> or <h3>...</h3>
    7374
    74 Note that HTML is converted to man pages by [source:grass/trunk/tools/g.html2man/ tools/g.html2man/]
     75Note that HTML is converted to MAN pages by [source:grass/trunk/tools/g.html2man/ tools/g.html2man/]
    7576
    76 === Markup Protocol ===
     77=== Markup style guide ===
    7778
    7879Module names (i.e., v.category) should be emphasized with <em>,
     
    8081names, values, etc. should use <tt>. Emphasized phrases should use
    8182italics <i>. The SEE ALSO section of each page should also be
    82 alphabetized.                   
     83alphabetized.
     84
     85=== Break long lines ===
     86
     87To avoid SVN merge conflicts, please break a line at approximately 70-80 chars.
     88
     89Hints:
     90 * "geany" editor can format a paragraph with CTRL-j
     91 * "kate": activate it in Settings -> Kate -> Editing -> General -> enable static word-wrap, set 72
    8392
    8493== SVN Properties ==
     
    93102
    94103You can also simply use this script:
    95 http://svn.osgeo.org/grass/grass-addons/tools/module_svn_propset.sh
     104http://svn.osgeo.org/grass/grass-addons/tools/module_svn_propset.sh <filename>|*
     105
     106Example:
     107{{{
     108sh grass-addons/tools/module_svn_propset.sh vector/mymodule/*
     109}}}
    96110
    97111== Images ==
     
    110124optipng -o5 file.png
    111125}}}
    112 }}}