Changeset 4561

Show
Ignore:
Timestamp:
05/06/08 10:26:43 (3 months ago)
Author:
alberto
Message:

tw.forms docs+widget_browser experiments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/ToscaWidgetsForms/trunk/docs/conf.py

    r4540 r4561  
    2828# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 
    2929extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] 
     30 
     31# If building docs for the TW website append its extensions 
     32if os.environ.get('TW_WEBSITE', "false").lower() == "true": 
     33    extensions.extend(['twwebsite.lib.tw_sphinx']) 
     34    widgetbrowser_path = os.environ.get('TW_WEBSITE_BROWSER_BASE', '/') 
    3035 
    3136# Add any paths that contain templates here, relative to this directory. 
  • projects/ToscaWidgetsForms/trunk/docs/container_widgets.rst

    r4540 r4561  
    3535.. literalinclude:: ../tw/forms/templates/table_form.mak 
    3636   :language: mako 
     37 
     38.. widgetbrowser:: tw.forms.samples.AddUserForm 
     39   :tabs: demo, template, source 
     40 
    3741 
    3842:class:`ListForm` 
  • projects/ToscaWidgetsForms/trunk/docs/index.rst

    r4540 r4561  
    1414   intro 
    1515   widgets 
    16    modules/module_index 
    17    tutorials/tutorial_index 
     16   modules/index 
     17   tutorials/index 
    1818 
    1919Indices and tables