Support multi-version documentation on the website #1067

merged 7 commits into from Aug 17, 2012
@@ -20,7 +20,7 @@
_fmtplot = """\
# This function was autogenerated by Do not edit as
# changes will be lost
def %(func)s(%(argspec)s):
%(ax)s = gca()
# allow callers to override the hold state by passing hold=True|False
@@ -246,3 +246,12 @@ def %(name)s():
for name in cmaps:
print _fmtcmap%locals()
+print "# This function was autogenerated by"

pelson Aug 17, 2012


This is going to conflict with my changes to boilerplate which were put on master a month or so ago. Is there a reason for basing this against v1.1.x? Can this particular change be avoided to the v1.1.x line?


mdboom Aug 17, 2012


It might conflict and require a different solution on master -- but it needs to be here so the plotting command list can be autogenerated and moved off of the front page of the docs.

+print "def _colormaps():"
+print " return ["
+for name in cmaps:
+ print " %r," % name
+print " ]"
+print "_setup_pyplot_info_docstrings()"
Oops, something went wrong.