Changeset 4574

Show
Ignore:
Timestamp:
05/13/08 10:27:51 (6 months ago)
Author:
carndt
Message:

Fix typos in docs/index.rst; improve instructions in docs/README.txt; add missing CSS and image to docs/_static

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/index.rst

    r4557 r4574  
    33========================== 
    44 
    5 TurboGears 2 is a reinvention of the TurboGears project to take advantage of new components, and to provide a fully custmizable WSGI (Web Server Gateway Interface) stack.  From the begining TurboGears was designed to be a Full Stack framework built from best of breed components.   As time has gone on new components have been released which improved on the ones in the origornal TG stack, and the Python web world has been increasingly designed around WSGI.  This has enabled a whole new world of component reuse, and TG2 is designed to take advantage of that in order to make framework which is both flexible, and productive.  
     5TurboGears 2 is a reinvention of the TurboGears project to take advantage of new components, and to provide a fully customizable WSGI (Web Server Gateway Interface) stack.  From the begining TurboGears was designed to be a Full Stack framework built from best of breed components.   As time has gone on new components have been released which improved on the ones in the original TG stack, and the Python web world has been increasingly designed around WSGI.  This has enabled a whole new world of component reuse, and TG2 is designed to take advantage of this fact in order to make a framework which is both flexible, and productive. 
    66 
    7 TurboGears 2 is still in rapid development, and should only be used by those who are willing to put up with a little bit of API instability, but because it is well tested, and based on well tested, and known stable components it is already being used by some people in production environments.  
     7TurboGears 2 is still in rapid development, and should only be used by those who are willing to put up with a little bit of API instability, but because it is well tested, and based on well tested, and known stable components it is already being used by some people in production environments. 
    88 
    99Getting Started with TurboGears 
    1010================================== 
    1111 
    12 Get TurboGears 2 installed, learn how to create a new TurboGears project in a single command, and of course explore the obligatory "Hello World" example, with a few fun treats thrown in.  
     12Get TurboGears 2 installed, learn how to create a new TurboGears project in a single command, and of course explore the obligatory "Hello World" example, with a few fun treats thrown in. 
    1313 
    1414.. toctree:: 
    1515   :maxdepth: 2 
    16     
     16 
    1717   2.0/DownloadInstall 
    1818   2.0/QuickStart 
     
    2727.. toctree:: 
    2828   :maxdepth: 1 
    29        
     29 
    3030   2.0/Wiki20/wiki20 
    3131   2.0/ToscaWidgets/forms 
     
    3636.. toctree:: 
    3737   :maxdepth: 2 
    38     
    39    2.0/WhatsNew       
     38 
     39   2.0/WhatsNew 
    4040 
    4141General Reference for MVC Components 
     
    5454.. toctree:: 
    5555   :maxdepth: 2 
    56     
     56 
    5757   2.0/FormBasics 
    5858   2.0/Validation 
     
    7878.. toctree:: 
    7979   :maxdepth: 1 
    80     
     80 
    8181   2.0/ToolBox 
    8282   2.0/CommandLine 
    8383   2.0/Profile 
    84     
     84 
    8585   2.0/RoughDocs/CreateDatabase 
    8686   2.0/RoughDocs/BootStrap 
     
    116116.. toctree:: 
    117117   :maxdepth: 1 
    118     
     118 
    119119   2.0/TG2Philosophy 
    120120   2.0/DevStatus 
  • trunk/docs/README.txt

    r4309 r4574  
    33 
    44DOC Generation 
    5 --------------- 
     5-------------- 
    66 
    7 You need to install sphinx first to generate the TurboGears 
    8 documentation from the docs.turbogears.org
     7Make sure that you have followed the instructions in top-level ``INSTALL.txt`` 
     8file to install TurboGears 2
    99 
    10 First, run 'get_tgdoc.py' script to fetch rst docs from turbogears wiki:: 
     10You also need to install Sphinx_ to generate the TurboGears documentation from 
     11docs.turbogears.org:: 
     12 
     13    $ easy_install Sphinx 
     14 
     15For the following, change to the ``docs`` directory below the top-level 
     16TurboGears 2 source directory. 
     17 
     18Then run ``get_tgdoc.py`` script to fetch rest docs from TurboGears wiki:: 
    1119 
    1220    $ python get_tgdoc.py 
    1321 
    14 Then run 'make <builder>' to generate docs:: 
     22Finally, run ``make <builder>`` to generate docs:: 
    1523 
    1624    $ make html 
    1725 
     26.. _sphinx: http://sphinx.pocoo.org/ 
     27 
    1828 
    1929API Generation 
    20 --------------- 
     30-------------- 
    2131 
    22 You need to install epydoc_ 3 first to generate the TurboGears API  
     32You need to install epydoc_ 3 first to generate the TurboGears API 
    2333documentation from the source code. 
    2434 
     
    3545 
    3646Checking for missing doc strings 
    37 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     47~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3848 
    39 To check which docs need to be written, use the following command in the  
     49To check which docs need to be written, use the following command in the 
    4050top directory of the TurboGears trunk source:: 
    4151 
    4252    $ epydoc --check tg 
    4353 
    44 The command will check that every module, class, method, and function has a description; 
    45 That every parameter has a description and a type; and that every variable has a type. 
    46 It will list those that don't meet these requirements. 
     54The command will check that every module, class, method, and function has a 
     55description; that every parameter has a description and a type; and that every 
     56variable has a type. It will list those that don't meet these requirements. 
    4757 
    4858 
    4959Generating HTML docs 
    50 ~~~~~~~~~~~~~~~~~~~~~~ 
     60~~~~~~~~~~~~~~~~~~~~ 
    5161 
    5262Use this command in the top directory:: 
     
    5666to generate the TurboGears 2 API documentation in the ``apidocs`` folder. 
    5767 
    58 You can change the settings in the file ``setup.cfg`` in the main folder  
     68You can change the settings in the file ``setup.cfg`` in the main folder 
    5969to customize the output. 
    6070 
    6171 
    6272Writing docs 
    63 ~~~~~~~~~~~~~~ 
     73~~~~~~~~~~~~ 
    6474 
    6575.. note:: The TurboGears project uses reStructuredText_ format for doc strings. 
     
    7484 
    7585Debugging docs 
    76 ~~~~~~~~~~~~~~~ 
     86~~~~~~~~~~~~~~ 
    7787 
    7888If you get a formatting error and want to locate the position in the source 
     
    8595.. _sourceforge: http://sourceforge.net/project/showfiles.php?group_id=32455 
    8696.. _reStructuredText: http://docutils.sourceforge.net/rst.html 
     97