changes files search: « revision 4 (page 1 / 1) »

soho : changes

collapsecollapse all expandexpand all
Rev Summary Committer Date
4 collapse expand * improve help usage message KLEIN Stéphane 30 Aug 23:01   (128 days ago)
description: * improve help usage message
* add new file filter : files begining by dot are ignored
* now soho command can be used with a file name argument to only process one source file
files modified: src/soho/builder.py
src/soho/config.py
src/soho/sohobuild.py
3 collapse expand Set html_head charset KLEIN Stéphane 03 Jul 23:45   (186 days ago)
description: Set html_head charset
files modified: src/soho/builder.py
2 collapse expand Subject: soho patch to add two new feature : enable/disable linenos in pygments ... Stéphane KLEIN 02 Jul 23:34   (187 days ago)
description: Subject: soho patch to add two new feature : enable/disable linenos in pygments and access to full parts data in template

Hi Damien Baty,

I suggest one patch - its purpose is :

* first feature is : enable this pygments rest syntax :

.. sourcecode:: python
    :linenos:
    My code goes here.
    
to enable of disable source code line number. The fix code is like in http://dev.pocoo.org/projects/pygments/browser/external/rst-directive.py pygments rst directive source code.

* second feature is : bind docutils.core.publish_parts result to template. It's name is parts, exemple of main template is :

    <head>
    ...
    <meta tal:replace="structure context/parts/html_head" />
    </head>
    <body>
    <div id="content">
        <h1 tal:content="context/meta/title"></h1>
        <div tal:replace="structure context/parts/docinfo">docinfo</div>
        <tal:content tal:replace="structure context/content"/>
    </div>
    </body>

In this example I use :

* context/parts/html_head to get title and all meta html data
* context/parts/docinfo to get docinfo data

I thinks have access to all parts data it's usefull to use full power of rest format.

Regards,
Stephane
files modified: src/soho/builder.py
1 collapse expand Importation debuit la revision 66 de Stéphane KLEIN 01 Jul 23:58   (188 days ago)
description: Importation debuit la revision 66 de
https://svn.noherring.com/code/soho/trunk/
files added: Makefile
README.txt
TODO.txt
doc/
doc/README.txt
doc/bindings.txt
doc/filters.graffle
doc/filters.png
doc/filters.txt
doc/install.txt
doc/tutorial.txt
doc/usage.txt
setup.py
src/
src/soho/
src/soho/__init__.py
src/soho/bindings.py
src/soho/builder.py
src/soho/checkimages.py
src/soho/config.py
src/soho/filters.py
src/soho/sohobuild.py