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

Side by Side Diff: chrome/common/extensions/docs/server2/build_server.py

Issue 133433002: Docserver: Support markdown for HTML content. Request thirdparty submission review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change the version of app & cron.yaml Created 6 years, 11 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script is used to copy all dependencies into the local directory. 6 # This script is used to copy all dependencies into the local directory.
7 # The package of files can then be uploaded to App Engine. 7 # The package of files can then be uploaded to App Engine.
8 import os 8 import os
9 import shutil 9 import shutil
10 import stat 10 import stat
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 try: 51 try:
52 shutil.rmtree(LOCAL_THIRD_PARTY_DIR, False, OnError) 52 shutil.rmtree(LOCAL_THIRD_PARTY_DIR, False, OnError)
53 except OSError: 53 except OSError:
54 print('*-------------------------------------------------------------*\n' 54 print('*-------------------------------------------------------------*\n'
55 '| If you are receiving an upload error, try removing |\n' 55 '| If you are receiving an upload error, try removing |\n'
56 '| chrome/common/extensions/docs/server2/third_party manually. |\n' 56 '| chrome/common/extensions/docs/server2/third_party manually. |\n'
57 '*-------------------------------------------------------------*\n') 57 '*-------------------------------------------------------------*\n')
58 58
59 59
60 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'handlebar'), 'handlebar') 60 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'handlebar'), 'handlebar')
61 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'markdown'), 'markdown',
62 make_init=False)
61 CopyThirdParty(os.path.join(SRC_DIR, 'ppapi', 'generators'), 63 CopyThirdParty(os.path.join(SRC_DIR, 'ppapi', 'generators'),
62 'json_schema_compiler') 64 'json_schema_compiler')
63 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'ply'), 65 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'ply'),
64 os.path.join('json_schema_compiler', 'ply')) 66 os.path.join('json_schema_compiler', 'ply'))
65 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_schema_compiler'), 67 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_schema_compiler'),
66 'json_schema_compiler', 68 'json_schema_compiler',
67 SCHEMA_COMPILER_FILES) 69 SCHEMA_COMPILER_FILES)
68 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'), 70 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'),
69 'json_schema_compiler', 71 'json_schema_compiler',
70 ['json_comment_eater.py']) 72 ['json_comment_eater.py'])
71 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'), 73 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'),
72 os.path.join('json_schema_compiler', 'simplejson'), 74 os.path.join('json_schema_compiler', 'simplejson'),
73 make_init=False) 75 make_init=False)
74 MakeInit(LOCAL_THIRD_PARTY_DIR) 76 MakeInit(LOCAL_THIRD_PARTY_DIR)
75 77
76 # To be able to use the Handlebar class we need this import in __init__.py. 78 # To be able to use the Handlebar class we need this import in __init__.py.
77 with open(os.path.join(LOCAL_THIRD_PARTY_DIR, 79 with open(os.path.join(LOCAL_THIRD_PARTY_DIR,
78 'handlebar', 80 'handlebar',
79 '__init__.py'), 'a') as f: 81 '__init__.py'), 'a') as f:
80 f.write('from handlebar import Handlebar\n') 82 f.write('from handlebar import Handlebar\n')
81 83
82 if __name__ == '__main__': 84 if __name__ == '__main__':
83 main() 85 main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/app.yaml ('k') | chrome/common/extensions/docs/server2/content_provider.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698