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

Issue 8515029: Move doc generator out of frog samples. (Closed)

Created:
9 years, 1 month ago by Bob Nystrom
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move doc generator out of frog samples. It's on its way to being a real library now so it isn't a sample anymore. Committed: https://code.google.com/p/dart/source/detail?r=1482

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -1042 lines) Patch
D frog/docs/grid-22.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D frog/docs/interact.dart View 1 chunk +0 lines, -17 lines 0 comments Download
D frog/docs/styles.css View 1 chunk +0 lines, -207 lines 0 comments Download
D frog/samples/classify.dart View 1 chunk +0 lines, -251 lines 0 comments Download
D frog/samples/doc.dart View 1 chunk +0 lines, -542 lines 0 comments Download
A utils/dartdoc/.gitignore View 1 chunk +3 lines, -0 lines 0 comments Download
A utils/dartdoc/README.txt View 1 chunk +14 lines, -0 lines 0 comments Download
A + utils/dartdoc/classify.dart View 1 chunk +0 lines, -1 line 2 comments Download
A + utils/dartdoc/dartdoc.dart View 9 chunks +35 lines, -26 lines 5 comments Download
A + utils/dartdoc/docs/grid-22.png View Binary file 0 comments Download
A + utils/dartdoc/docs/styles.css View 0 chunks +-1 lines, --1 lines 2 comments Download
A + utils/dartdoc/interact.dart View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Bob Nystrom
Moving the doc generator out of frog/samples into its own home now that it's getting ...
9 years, 1 month ago (2011-11-11 02:23:15 UTC) #1
Jennifer Messerly
lgtm http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart File utils/dartdoc/dartdoc.dart (left): http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart#oldcode45 utils/dartdoc/dartdoc.dart:45: // TODO(jimhug): This generates really ugly output with ...
9 years, 1 month ago (2011-11-11 02:29:57 UTC) #2
jimhug
lgtm http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/classify.dart File utils/dartdoc/classify.dart (right): http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/classify.dart#newcode7 utils/dartdoc/classify.dart:7: * fields here will be used as CSS ...
9 years, 1 month ago (2011-11-11 18:02:31 UTC) #3
Bob Nystrom
9 years, 1 month ago (2011-11-11 18:21:28 UTC) #4
Thanks for the review!

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/classify.dart
File utils/dartdoc/classify.dart (right):

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/classify.dart#new...
utils/dartdoc/classify.dart:7: * fields here will be used as CSS class names for
the generated spans.
On 2011/11/11 18:02:31, jimhug wrote:
> Hmm...  I think that this code should find its way back into frog - at least
> over time.  It would be really nice if this could be used here, and in the
> dartboard and in other places.  Don't do anything about this yet, but when you
> or John starts up serious dartboard work, please figure out how to get this in
a
> shared place.

Yeah, I was think of splitting this out into a standalone syntax highlighting
library at some point. I'm not sure if it should be Dart-specific or if we'll
want something closer to a Dart implementation of pygments (which would be handy
since we'll probably want to highlight HTML and CSS at some point, at the very
least).

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart
File utils/dartdoc/dartdoc.dart (left):

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart#oldc...
utils/dartdoc/dartdoc.dart:45: // TODO(jimhug): This generates really ugly
output with lots of holes.
On 2011/11/11 18:02:31, jimhug wrote:
> On 2011/11/11 02:29:58, John Messerly wrote:
> > haha. yes, that TODO is very obsolete :)
> Whoo hoo!

:D

Still need private members, but almost everything else is there now.

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart
File utils/dartdoc/dartdoc.dart (right):

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/dartdoc.dart#newc...
utils/dartdoc/dartdoc.dart:67: '$_totalMembers members in ${elapsed}msec.');
On 2011/11/11 18:02:31, jimhug wrote:
> Nice reporting code.

Thanks! I was using withTiming() before but that doesn't actually output
anything because I'm not enabling info messages. This seemed like a more direct
solution.

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/docs/styles.css
File utils/dartdoc/docs/styles.css (right):

http://codereview.chromium.org/8515029/diff/1/utils/dartdoc/docs/styles.css#n...
utils/dartdoc/docs/styles.css:1: /* Reset */
On 2011/11/11 18:02:31, jimhug wrote:
> Hmm...  The review tool shows no change in this file.  Am I missing something?

I think Reitveld is smart enough to discover file moves. So it's showing no diff
because I just moved this from frog/samples to here but didn't change anything.
I think.

Powered by Google App Engine
This is Rietveld 408576698