Commits

mcc  committed 4b4ff44

Doxygen: Files contain content

  • Participants
  • Parent commits dc9db35

Comments (0)

Files changed (1)

File package/make_doxygen.py

 		subprocess.call(["mkdir", "-p", obase])
 		ofile = path_for([obase, "index.txt"])
 		print ofile
-		dump(ofile, "CLASS")
+		ostr = ""
+		ostr += "class %s\n" % o.name
+		if o.description:
+			ostr += "%s\n" % o.description
+		if o.methods:
+			ostr += "\nMethods: "
+			first = True
+			for _m in sorted(o.methods.keys()):
+				if first:
+					first = False
+				else:
+					ostr += ", "
+				ostr += "\"%s:%s\"" % (o.name, _m)
+		dump(ofile, ostr)
 		for _m in sorted(o.methods.keys()):
 			m = o.methods[_m]
 			if not m.poison:
 				mfile = path_for([obase, "%s.txt" % m.name])
 				print mfile
-				dump(mfile, "METHOD")
+				mstr = ""
+				mstr += "%s:%s(" % (o.name, _m)
+				mstr += ", ".join(m.args)
+				mstr += ")\n";
+				if m.description:
+					mstr += "%s\n" % m.description
+				if m.args:
+					mstr += "\nArguments:"
+					for arg in m.args:
+						mstr += "\n\t%s" % arg
+						if arg in m.argdesc:
+							mstr += "\n%s" % m.argdesc[arg]
+				dump(mfile, mstr)