Changeset 5


Ignore:
Timestamp:
09/30/15 10:26:55 (9 years ago)
Author:
pinsard
Message:

add some graphics

Location:
trunk/docs/manual
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/manual/source/conf.py

    r2 r5  
    3939    'sphinx.ext.ifconfig', 
    4040    'sphinx.ext.viewcode', 
     41    'sphinx.ext.graphviz', 
     42    'sphinxcontrib.blockdiag', 
    4143] 
    4244 
     45# Enable debug mode of blockdiag. 
     46blockdiag_debug = True 
    4347# Add any paths that contain templates here, relative to this directory. 
    4448templates_path = ['_templates'] 
     
    124128# The theme to use for HTML and HTML Help pages.  See the documentation for 
    125129# a list of builtin themes. 
    126 html_theme = 'alabaster' 
     130html_theme = 'sphinxdoc' 
    127131 
    128132# Theme options are theme-specific and customize the look and feel of a theme 
     
    371375 
    372376# Example configuration for intersphinx: refer to the Python standard library. 
    373 intersphinx_mapping = {'https://docs.python.org/': None} 
     377intersphinx_mapping = {'https://docs.python.org/2': None} 
  • trunk/docs/manual/source/developers/guides/typo.rst

    r3 r5  
    88 
    99They use dictionaries providing natural langages list of words. 
     10 
     11Here is the flow  
     12 
     13.. blockdiag:: typo_blockdiag.dot 
    1014 
    1115Missing words in dictionaries 
     
    8387   done 
    8488   cat ${PROJECT_LOG}/pyigcmg_doc_var.txt >> ${nontypo} 
    85    sort --ignore-case -u ${nontypo} > ${nontypo_uniq} 
     89   sort -u ${nontypo} > ${nontypo_uniq} 
    8690 
    8791Check typo in Python files 
     
    99103   --reports=n \ 
    100104   ${listf} | grep "Wrong spelling" | awk -F: '{print $3}' | \ 
    101    sort --ignore-case -u > ${PROJECT_LOG}/typo 
     105   sort -u > ${PROJECT_LOG}/typo 
    102106 
    103107.. todo:: 
     
    122126.. tip:: 
    123127 
    124    To see the path of existing default dictonaries of :command:`hunspell` : 
     128   To see the path of existing default dictionaries of :command:`hunspell` : 
    125129 
    126130   .. code-block:: bash 
     
    167171      hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
    168172   done 
    169    sort --ignore-case -u ${hunspell_out} > ${hunspell_uniq_out} 
     173   sort -u ${hunspell_out} > ${hunspell_uniq_out} 
    170174 
    171175.. todo:: 
     
    190194 
    191195Until :ref:`tracwiki_migration` is not achieved, we have to check typo in  
    192 HTML files produced by trac on the <http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/>_ 
    193  
    194 To get all wiki Doc* pages URI of http://forge.ipsl.jussieu.fr/igcmg_doc/ : 
    195  
    196 .. code-block:: bash 
    197  
    198    list_uri=$(xsltproc \-\-novalid ${PROJECT}/docs/manual/for_tracwiki/titleindex.xsl http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/TitleIndex | \ 
    199    grep "/igcmg_doc/wiki/Doc" | sort -u | \ 
     196HTML files produced by trac on the `<http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/>`_ 
     197 
     198By convention, it has been decided to start all |igcmg_doc| pages names by ``Doc``. 
     199 
     200To get all wiki Doc* pages URI of `<http://forge.ipsl.jussieu.fr/igcmg_doc/>`_ [#tracoops]_: 
     201 
     202.. code-block:: bash 
     203 
     204   excluded_uri=DocYgraphvizLibigcmprod 
     205   list_uri=$(xsltproc \-\-novalid \ 
     206   ${PROJECT}/docs/manual/for_tracwiki/titleindex.xsl http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/TitleIndex | \ 
     207   grep "/igcmg_doc/wiki/Doc" | grep -v ${excluded_uri} |sort -u | \ 
    200208   sed -e "s@^@http://forge.ipsl.jussieu.fr/@") 
    201209 
    202 To download those URI localy: 
     210.. [#tracoops] we exclude DocYgraphvizLibigcmprod because Trac detected an internal error ... some graphviz trac plugins issue 
     211 
     212To download those URI locally: 
    203213 
    204214.. code-block:: bash 
     
    224234      hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
    225235   done 
    226    sort --ignore-case -u ${hunspell_out} > ${hunspell_uniq_out} 
     236   sort -u ${hunspell_out} > ${hunspell_uniq_out} 
    227237 
    228238To find one of the wrong spelling in downloaded HTML pages: 
  • trunk/docs/manual/source/index.rst

    r2 r5  
    1212   :maxdepth: 2 
    1313 
     14.. graphviz:: ../for_figs/libigcmprod.dot 
     15 
    1416Indices and tables 
    1517================== 
Note: See TracChangeset for help on using the changeset viewer.