Show
Ignore:
Timestamp:
02/25/07 18:00:36 (18 months ago)
Author:
Tarek Ziad?? <tarek@…>
Message:

added pygments support

Location:
pycommunity
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • pycommunity/etc/pycommunity.conf

    r74 r77  
    2727[options] 
    2828projectname=PyCommunity 
    29 media=/etc/pycommunity/media 
     29media=/etc/pycommunity 
    3030glossary=/etc/pycommunity/glossary.txt 
    3131index=/etc/pycommunity/README.txt 
  • pycommunity/etc/templates/pycommunity.css

    r73 r77  
    9393} 
    9494 
     95/* pygment styles 
     96XXX this should be generated  
     97on the fly, using: 
     98 
     99    >>> from pygments.formatters import HtmlFormatter 
     100    >>> print HtmlFormatter().get_style_defs('.highlight') 
     101*/ 
     102 
     103.highlight { background: #f8f8f8; } 
     104.highlight .c { color: #008800; font-style: italic } /* Comment */ 
     105.highlight .err { border: 1px solid #FF0000 } /* Error */ 
     106.highlight .k { color: #AA22FF; font-weight: bold } /* Keyword */ 
     107.highlight .o { color: #666666 } /* Operator */ 
     108.highlight .cm { color: #008800; font-style: italic } /* Comment.Multiline */ 
     109.highlight .cp { color: #008800 } /* Comment.Preproc */ 
     110.highlight .c1 { color: #008800; font-style: italic } /* Comment.Single */ 
     111.highlight .cs { color: #008800; font-weight: bold } /* Comment.Special */ 
     112.highlight .gd { color: #A00000 } /* Generic.Deleted */ 
     113.highlight .ge { font-style: italic } /* Generic.Emph */ 
     114.highlight .gr { color: #FF0000 } /* Generic.Error */ 
     115.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ 
     116.highlight .gi { color: #00A000 } /* Generic.Inserted */ 
     117.highlight .go { color: #808080 } /* Generic.Output */ 
     118.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ 
     119.highlight .gs { font-weight: bold } /* Generic.Strong */ 
     120.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ 
     121.highlight .gt { color: #0040D0 } /* Generic.Traceback */ 
     122.highlight .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */ 
     123.highlight .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */ 
     124.highlight .kp { color: #AA22FF } /* Keyword.Pseudo */ 
     125.highlight .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */ 
     126.highlight .kt { color: #AA22FF; font-weight: bold } /* Keyword.Type */ 
     127.highlight .m { color: #666666 } /* Literal.Number */ 
     128.highlight .s { color: #BB4444 } /* Literal.String */ 
     129.highlight .na { color: #BB4444 } /* Name.Attribute */ 
     130.highlight .nb { color: #AA22FF } /* Name.Builtin */ 
     131.highlight .nc { color: #0000FF } /* Name.Class */ 
     132.highlight .no { color: #880000 } /* Name.Constant */ 
     133.highlight .nd { color: #AA22FF } /* Name.Decorator */ 
     134.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ 
     135.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ 
     136.highlight .nf { color: #00A000 } /* Name.Function */ 
     137.highlight .nl { color: #A0A000 } /* Name.Label */ 
     138.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ 
     139.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ 
     140.highlight .nv { color: #B8860B } /* Name.Variable */ 
     141.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ 
     142.highlight .mf { color: #666666 } /* Literal.Number.Float */ 
     143.highlight .mh { color: #666666 } /* Literal.Number.Hex */ 
     144.highlight .mi { color: #666666 } /* Literal.Number.Integer */ 
     145.highlight .mo { color: #666666 } /* Literal.Number.Oct */ 
     146.highlight .sb { color: #BB4444 } /* Literal.String.Backtick */ 
     147.highlight .sc { color: #BB4444 } /* Literal.String.Char */ 
     148.highlight .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */ 
     149.highlight .s2 { color: #BB4444 } /* Literal.String.Double */ 
     150.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ 
     151.highlight .sh { color: #BB4444 } /* Literal.String.Heredoc */ 
     152.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ 
     153.highlight .sx { color: #008000 } /* Literal.String.Other */ 
     154.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ 
     155.highlight .s1 { color: #BB4444 } /* Literal.String.Single */ 
     156.highlight .ss { color: #B8860B } /* Literal.String.Symbol */ 
     157.highlight .bp { color: #AA22FF } /* Name.Builtin.Pseudo */ 
     158.highlight .vc { color: #B8860B } /* Name.Variable.Class */ 
     159.highlight .vg { color: #B8860B } /* Name.Variable.Global */ 
     160.highlight .vi { color: #B8860B } /* Name.Variable.Instance */ 
     161.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ 
     162 
  • pycommunity/setup.py

    r76 r77  
    1818# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    1919# $Id: $ 
    20 """ PyCommunity 
     20"""Automatic website builder, using doctests and other reST files. 
    2121 
    2222PyCommunity builds an HTML tree out of Python packages, using reST files 
     
    2929Development Status :: 3 - Alpha 
    3030Intended Audience :: Developers 
    31 License :: OSI Approved :: GPL v2 
     31License :: OSI Approved :: GNU General Public License (GPL) 
    3232Programming Language :: Python 
    3333Topic :: Software Development 
     
    6060        etc_files.append(path) 
    6161     
     62url = "http://programmation-python.org/pycommunity" 
    6263 
    6364setup(name="PyCommunity", 
     
    6566      maintainer="Tarek Ziade", 
    6667      maintainer_email="tarek@ziade.org", 
    67       url = "http://programmation-python.org/pyc", 
     68      url = url, 
     69      download_url = '%s/PyCommunity-0.1a-py2.5.egg' % url, 
    6870      license = "http://www.gnu.org/copyleft/gpl.html", 
    6971      platforms = ["any"], 
     
    7375      scripts = ['pycy'], 
    7476      packages = ['pycommunity'], 
    75       install_requires = ['cheesecake', 'cheetah', 'epydoc'], 
     77      install_requires = ['cheesecake', 'cheetah', 'epydoc' , 'pygments'], 
    7678      data_files = [('/etc/pycommunity', etc_files)]) 
    7779