]> khamidou — GitHub mirrors - pycco.git/commitdiff
Renaming Pocco to Pycco
authorNick Fitzgerald <fitzgen@gmail.com>
Thu, 8 Jul 2010 16:59:49 +0000 (09:59 -0700)
committerNick Fitzgerald <fitzgen@gmail.com>
Thu, 8 Jul 2010 17:56:09 +0000 (10:56 -0700)
README
pycco [moved from pocco with 88% similarity]
resources/pycco.css [moved from resources/pocco.css with 100% similarity]
resources/pycco.html [moved from resources/pocco.html with 100% similarity]
setup.py

diff --git a/README b/README
index cf69a98e1bd84df1b4bac4ebf4f998c6d8818537..0ee0935873beeafebeb58ad92b347b4df5e7a46f 100644 (file)
--- 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 67a7a7f3c6f7070b755f15e451e2d2bd0e4865c0..bc1ce3f8aa533dfc59890b7577cd57263568d085 100755 (executable)
--- 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 = "<div class=\"highlight\"><pre>"
@@ -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():
similarity index 100%
rename from resources/pocco.css
rename to resources/pycco.css
similarity index 100%
rename from resources/pocco.html
rename to resources/pycco.html
index f359b6de2f30f51156f44b7c8db618d917eececc..135657f88ef516930e3b1031101fda3d4c2e7e10 100644 (file)
--- 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"])