Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: documentation/build_docs.py

Issue 174401: changes the js docs from js_0_1_ to js_1_0_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python2.4 1 #!/usr/bin/python2.4
2 # Copyright 2009, Google Inc. 2 # Copyright 2009, Google Inc.
3 # All rights reserved. 3 # All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 os.unlink(filename) 222 os.unlink(filename)
223 RunNixysa(idl_files, 'jsheader', output_dir, ['--no-return-docs']) 223 RunNixysa(idl_files, 'jsheader', output_dir, ['--no-return-docs'])
224 224
225 225
226 def BuildO3DDocsFromJavaScript(js_files, ezt_output_dir, html_output_dir): 226 def BuildO3DDocsFromJavaScript(js_files, ezt_output_dir, html_output_dir):
227 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 227 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir,
228 'classo3d_1_1_', 'o3d', '', '', '') 228 'classo3d_1_1_', 'o3d', '', '', '')
229 229
230 230
231 def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir, exports_file): 231 def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir, exports_file):
232 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'o3djs', 232 RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_1_0_', 'o3djs',
233 'jsdocs', '..', exports_file) 233 'jsdocs', '..', exports_file)
234 234
235 235
236 def BuildO3DExternsFile(js_files_dir, extra_externs_file, externs_file): 236 def BuildO3DExternsFile(js_files_dir, extra_externs_file, externs_file):
237 outfile = open(externs_file, 'w') 237 outfile = open(externs_file, 'w')
238 filenames = (glob.glob(os.path.join(js_files_dir, '*.js')) + 238 filenames = (glob.glob(os.path.join(js_files_dir, '*.js')) +
239 [extra_externs_file]) 239 [extra_externs_file])
240 for filename in filenames: 240 for filename in filenames:
241 print "-----", filename 241 print "-----", filename
242 infile = open(filename, 'r') 242 infile = open(filename, 'r')
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 o3djs_docs_html_outpath, o3djs_exports_path) 369 o3djs_docs_html_outpath, o3djs_exports_path)
370 CopyStaticFiles(o3d_docs_ezt_outpath, o3d_docs_html_outpath) 370 CopyStaticFiles(o3d_docs_ezt_outpath, o3d_docs_html_outpath)
371 BuildCompiledO3DJS(o3djs_files + [o3djs_exports_path], 371 BuildCompiledO3DJS(o3djs_files + [o3djs_exports_path],
372 externs_path, 372 externs_path,
373 o3d_externs_path, 373 o3d_externs_path,
374 compiled_o3djs_outpath) 374 compiled_o3djs_outpath)
375 375
376 376
377 if __name__ == '__main__': 377 if __name__ == '__main__':
378 main(sys.argv[1:]) 378 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698