Skip to content

Commit

Permalink
Merge pull request #1067 from mdboom/doc_multi_version
Browse files Browse the repository at this point in the history
Support multi-version documentation on the website
  • Loading branch information
mdboom committed Aug 17, 2012
2 parents c9c108e + fe2e95d commit 1057eed
Show file tree
Hide file tree
Showing 18 changed files with 557 additions and 1,548 deletions.
11 changes: 10 additions & 1 deletion boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_fmtplot = """\
# This function was autogenerated by boilerplate.py. Do not edit as
# changes will be lost
@autogen_docstring(Axes.%(func)s)
@_autogen_docstring(Axes.%(func)s)
def %(func)s(%(argspec)s):
%(ax)s = gca()
# allow callers to override the hold state by passing hold=True|False
Expand Down Expand Up @@ -246,3 +246,12 @@ def %(name)s():
for name in cmaps:
print _fmtcmap%locals()

print "# This function was autogenerated by boilerplate.py"
print "def _colormaps():"
print " return ["
for name in cmaps:
print " %r," % name
print " ]"

print
print "_setup_pyplot_info_docstrings()"
Loading

0 comments on commit 1057eed

Please sign in to comment.