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

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

Issue 35743002: Make docgen able to generate pkg docs and save the package names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make sure we have an ending newline in index.txt, also write a JSON index, and include packageName … 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/bin/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/bin/dartdoc.py
diff --git a/pkg/docgen/bin/dartdoc.py b/pkg/docgen/bin/dartdoc.py
index 15f0de1b86067850dc458e82c470a237131219e9..7fa875b16c3821930cfd37356c9ded9e0b74d951 100644
--- a/pkg/docgen/bin/dartdoc.py
+++ b/pkg/docgen/bin/dartdoc.py
@@ -51,7 +51,7 @@ def GetOptions():
def main():
options = GetOptions()
docgen = [DART, '--checked', '--package-root=' + PACKAGE_ROOT,
- join(DIRECTORY, 'docgen.dart')]
+ join(DIRECTORY, 'docgen.dart'), '--json', '--package-root=' + PACKAGE_ROOT]
docgen.extend(options.options.split())
ExecuteCommand(docgen)
ExecuteCommand(['git', 'clone', '-b', 'master',
@@ -59,9 +59,7 @@ def main():
ExecuteCommand(['mv', 'docs', 'dartdoc-viewer/client/local'])
os.chdir('dartdoc-viewer/client/')
subprocess.call([PUB, 'install'])
- subprocess.call([DART, 'build.dart'])
- subprocess.call([DART2JS, '-o', 'web/out/index.html_bootstrap.dart.js',
- './web/out/index.html_bootstrap.dart'])
+ subprocess.call([DART, 'deploy.dart'])
server = subprocess.Popen(['python',
join(abspath(join(dirname(__file__), options.gae_sdk)), 'dev_appserver.py'),
'..'])
« no previous file with comments | « no previous file | pkg/docgen/bin/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698