1. Tuk Bredsdorff
  2. Moai.tmbundle

Commits

Tuk Bredsdorff  committed 8072179

Made moai_helper.py support just receiving the path to the html docs folder.

  • Participants
  • Parent commits 5eee9cd
  • Branches default

Comments (0)

Files changed (1)

File Support/moai_helper.py

View file
 	VERSION = '0.1'
 	DESCRIPTION = 'Generates completions in .tmPreferences format for TextMate.'
 	
-	def main(self, filename):
-		class_names = find_classnames(filename)
+	def main(self, html_docs_dir):
+		classes_file = 'classes.html'
+		classes_path = '{0}/{1}'.format(html_docs_dir, classes_file)
+		
+		class_names = find_class_names(classes_path)
 		tmpreferences = generate_tmpreferences(class_names)
 		print tmpreferences