Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

makefile to make stuff happen and hiding buggy api info

  • Loading branch information...
commit 890e385ab69c39e9319939b0a3f2c38658a3cf41 1 parent ba8f760
@phiggins42 authored
Showing with 47 additions and 31 deletions.
  1. +12 −4 export/Makefile
  2. +35 −27 src/dojo.py
View
16 export/Makefile
@@ -11,7 +11,7 @@ BUILDDIR = build
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
-DOJOVERSIONS = 1.7.0
+DOJOVERSION = 1.7.0
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest dojo all deploy moindata
@@ -32,13 +32,21 @@ help:
@echo " all to run a clean Dojo build and clean html export"
@echo " deploy to make a tar ball"
-deploy: clean js data html package
+deploy: clean dojo data html package
@echo "Packaging dojo-release-$(DOJOVERSION)-docs"
- @$(PACKAGEDOJO) $(DOJOVERSION)
+
+package:
+ @echo "archiving tree"
+ @mkdir dojo-release-$(DOJOVERSION)
+ @mv $(BUILDDIR)/html dojo-release-$(DOJOVERSION)
+ @mv dojo-release-$(DOJOVERSION)/html dojo-release-$(DOJOVERSION)/reference-guide
+ @tar -czvf dojo-release-$(DOJOVERSION)-docs.tar.gz dojo-release-$(DOJOVERSION)/
clean:
@echo "Cleaning"
-rm -rf $(BUILDDIR)/*
+ -rm -rf dojo-release-$(DOJOVERSION)
+ -rm -rf source && git checkout -- source
dojo:
@echo "Installing a Dojo in _static/js"
@@ -49,7 +57,7 @@ data:
@echo "Copying dojodocs"
@cp -r ../dojodocs/* source
-all: dojo html
+all: deploy
@echo "Creating the world. Cross your fingers."
js:
View
62 src/dojo.py
@@ -132,6 +132,7 @@ def run(self):
print "not found. caching", target_url
data = urllib.urlopen(target_url).read()
dojo_api_inline_cache[target_url] = json.loads(data)
+ print data
info = dojo_api_inline_cache[target_url]
@@ -220,33 +221,40 @@ def run(self):
out += "\n"
- if showproperties and "properties" in info:
- if ":showproperties:" in arguments:
- only = arguments[":showproperties:"]
- print only
-
- if showtitles:
- """
- out += "Properties\n----------\n\n"
- """
-
- for prop in info["properties"]:
- """"""
- print "%s \n %s \n" % (prop, info["properties"][prop])
-
-
- if showmethods and "methods" in info:
-
- if showtitles:
- """
- out += "Methods\n-------\n\n"
- """
-
- for method in info["methods"]:
- """"""
- print "%s \n %s \n" % (method, info["methods"][method])
-
-
+# if showproperties and "properties" in info:
+# if ":showproperties:" in arguments:
+# only = arguments[":showproperties:"]
+# print only
+#
+# if showtitles:
+# out += "Properties\n----------\n\n"
+#
+# for prop in info["properties"]:
+# """"""
+# propinfo = info["properties"][prop]
+# defines = propinfo.get("defines", [])
+#
+# print "property: %s - %s \n" % (prop, propinfo)
+# if apidotted in defines:
+# print "displaying"
+# out += ":%s:\t%s\n\n" % (prop, propinfo.get("summary", ""))
+#
+# out += "\n"
+#
+# if showmethods and "methods" in info:
+#
+# if showtitles:
+# out += "Methods\n-------\n\n"
+#
+# for method in info["methods"]:
+# """"""
+# infos = info["methods"][method]
+# if apidotted in infos.get("defines", []):
+# print "methods: %s \n %s \n" % (method, infos)
+# out += ":**%s**:\t%s\n\n" % (method, infos.get("summary", ""))
+#
+# out += "\n"
+#
#out += "</pre>"
#print out;
Please sign in to comment.
Something went wrong with that request. Please try again.