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

Unified Diff: pkg/docgen/bin/upload_docgen.py

Issue 47603014: Further fixes for including package information in docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also make the upload script upload the additional data Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/bin/upload_docgen.py
diff --git a/pkg/docgen/bin/upload_docgen.py b/pkg/docgen/bin/upload_docgen.py
index 9e2d335b6c4587037cf29cca1317f1f5c605abd5..fb39513923a5dabef7d627fb35aa56f06b3b5598 100644
--- a/pkg/docgen/bin/upload_docgen.py
+++ b/pkg/docgen/bin/upload_docgen.py
@@ -67,9 +67,7 @@ def main():
SetGsutil()
# Execute Docgen.dart on the SDK.
- ExecuteCommand([DART, '--checked', '--package-root=' + PACKAGE_ROOT,
- abspath(join(dirname(__file__), 'docgen.dart')),
- '--parse-sdk', '--json'])
+ ExecuteCommand(['sh', './generate_all_docs.sh'])
# Use SVN Revision to get the revision number.
revision = utils.GetSVNRevision()
@@ -87,7 +85,12 @@ def main():
# Upload the all files in Docs into a folder based off Revision number on
# Cloud Storage.
- Upload('./docs/*', GS_SITE + '/' + revision + '/')
+ # TODO(alanknight): If we give it ./docs/* it fails to upload files in the
+ # subdirectory, probably due to escaping. Work around it by changing dir.
+ # Better, generalize this to be less dependent on the working directory.
+ os.chdir('docs')
+ Upload('.', GS_SITE + '/' + revision + '/')
terry 2013/10/30 18:11:31 Would this work then you wouldn't have to chdir to
Alan Knight 2013/10/30 18:31:33 That works, but then uploads into a subdirectory c
+ os.chdir('..')
# Update VERSION file in Cloud Storage.
with open('VERSION', 'w') as version_file:
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698