From: Nick Fitzgerald Date: Thu, 8 Jul 2010 16:59:49 +0000 (-0700) Subject: Renaming Pocco to Pycco X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=45eb989f4283210e8abe11d8bd1ccc425284acba;p=pycco.git Renaming Pocco to Pycco --- diff --git a/README b/README index cf69a98..0ee0935 100644 --- a/README +++ b/README @@ -1,17 +1,20 @@ -8888888b. +888888b. 888 Y88b 888 888 -888 d88P .d88b. .d8888b .d8888b .d88b. -8888888P" d88""88b d88P" d88P" d88""88b -888 888 888 888 888 888 888 -888 Y88..88P Y88b. Y88b. Y88..88P -888 "Y88P" "Y8888P "Y8888P "Y88P" +888 d88P 888 888 .d8888b .d8888b .d88b. +8888888P" 888 888 d88P" d88P" d88""88b +888 888 888 888 888 888 888 +888 Y88b 888 Y88b. Y88b. Y88..88P +888 "Y88888 "Y8888P "Y8888P "Y88P" + 888 + Y8b d88P + "Y88P" -Pocco is a Python port of Docco: the original quick-and-dirty, +Pycco is a Python port of Docco: the original quick-and-dirty, hundred-line-long, literate-programming-style documentation generator. For more information, see: -http://fitzgen.github.com/pocco/ +http://fitzgen.github.com/pycco/ Others: diff --git a/pocco b/pycco similarity index 88% rename from pocco rename to pycco index 67a7a7f..bc1ce3f 100755 --- a/pocco +++ b/pycco @@ -1,21 +1,21 @@ #!/usr/bin/env python -# **Pocco** is a Python port of [Docco](http://jashkenas.github.com/docco/ ): +# **Pycco** is a Python port of [Docco](http://jashkenas.github.com/docco/ ): # the original quick-and-dirty, hundred-line-long, literate-programming-style # documentation generator. It produces HTML that displays your comments # alongside your code. Comments are passed through # [Markdown](http://daringfireball.net/projects/markdown/syntax), and code is # passed through [Pygments](http://pygments.org/) syntax highlighting. This -# page is the result of running Pocco against its own source file. +# page is the result of running Pycco against its own source file. # -# If you install Pocco, you can run it from the command-line: +# If you install Pycco, you can run it from the command-line: # -# pocco src/*.py +# pycco src/*.py # # ...will generate linked HTML documentation for the named source files, saving # it into a `docs` folder. # -# To install Pocco, simply +# To install Pycco, simply # # sudo setup.py install # @@ -92,18 +92,18 @@ def highlight(source, sections): # Once all of the code is finished highlighting, we can generate the HTML file # and write out the documentation. Pass the completed sections into the template -# found in `resources/pocco.html` +# found in `resources/pycco.html` def generate_html(source, sections): title = path.basename(source) dest = destination(source) - html = pocco_template({ + html = pycco_template({ "title": title, "sections": sections, "sources": sources, "path": path, "destination": destination }) - print "pocco = %s -> %s" % (source, dest) + print "pycco = %s -> %s" % (source, dest) fh = open(dest, "w") fh.write(html) fh.close() @@ -120,9 +120,9 @@ from os import path from pygments import lexers, formatters from subprocess import Popen, PIPE -# A list of the languages that Pocco supports, mapping the file extension to +# A list of the languages that Pycco supports, mapping the file extension to # the name of the Pygments lexer and the symbol that indicates a comment. To -# add another language to Pocco's repertoire, add it here. +# add another language to Pycco's repertoire, add it here. languages = { ".coffee": { "name": "coffee-script", "symbol": "#" }, ".js": { "name": "javascript", "symbol": "//" }, @@ -187,13 +187,13 @@ def ensure_directory(): def template(source): return lambda context: pystache.render(source, context) -# Create the template that we will use to generate the Pocco HTML page. -pocco_template = template(open(path.join(path.dirname(__file__), - "resources/pocco.html")).read()) +# Create the template that we will use to generate the Pycco HTML page. +pycco_template = template(open(path.join(path.dirname(__file__), + "resources/pycco.html")).read()) # The CSS styles we"d like to apply to the documentation. -pocco_styles = open(path.join(path.dirname(__file__), - "resources/pocco.css")).read() +pycco_styles = open(path.join(path.dirname(__file__), + "resources/pycco.css")).read() # The start of each Pygments highlight block. highlight_start = "
"
@@ -208,8 +208,8 @@ if __name__ == "__main__":
     sources.sort()
     if sources:
         ensure_directory()
-        css = open("docs/pocco.css", "w")
-        css.write(pocco_styles)
+        css = open("docs/pycco.css", "w")
+        css.write(pycco_styles)
         css.close()
 
         def next_file():
diff --git a/resources/pocco.css b/resources/pycco.css
similarity index 100%
rename from resources/pocco.css
rename to resources/pycco.css
diff --git a/resources/pocco.html b/resources/pycco.html
similarity index 100%
rename from resources/pocco.html
rename to resources/pycco.html
diff --git a/setup.py b/setup.py
index f359b6d..135657f 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,10 @@
 from setuptools import setup
 
-setup(name="Pocco",
+setup(name="Pycco",
       version="0.1",
       description="""A Python port of Docco: the original quick-and-dirty, hundred-line-long,
       literate-programming-style documentation generator.""",
       author="Nick Fitzgerald",
       author_email="fitzgen@gmail.com",
       url="http://fitzgen.github.com/pocco",
-      scripts=["pocco"])
+      scripts=["pycco"])