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

Issue 8725007: Lots of stuff hooking up markdown to dartdoc. (Closed)

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

Description

Lots of stuff hooking up markdown to dartdoc. - Add support for [foo] implicit links to markdown. - Add hook so that outside code can define what markup a [foo] link creates. - Make dartdoc look up [foo] names to resolve the identifier. - Fix unmatched tag unwinding bug. - Add [:...:] code support to dartdoc. - Fix text and URLs for generic types in docs. - Sort classes by name. - Don't generate docs for private types. - Fix generated docs for inheritance chain. - Make source code in generated docs optional. - Fix showing base class in docs. - Implement insertRange() for List in frog. - Add dartdoc shell script. Committed: https://code.google.com/p/dart/source/detail?r=1886

Patch Set 1 #

Patch Set 2 : Implement removeRange() on List in frog. #

Total comments: 68

Patch Set 3 : Respond to awesome reviews. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -174 lines) Patch
M frog/lib/corelib_impl.dart View 1 2 1 chunk +13 lines, -2 lines 0 comments Download
M utils/dartdoc/README.txt View 1 chunk +68 lines, -10 lines 0 comments Download
M utils/dartdoc/classify.dart View 2 chunks +1 line, -7 lines 0 comments Download
A utils/dartdoc/dartdoc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M utils/dartdoc/dartdoc.dart View 1 2 19 chunks +235 lines, -93 lines 0 comments Download
M utils/dartdoc/static/styles.css View 1 chunk +22 lines, -0 lines 0 comments Download
M utils/markdown/block_parser.dart View 8 chunks +19 lines, -16 lines 0 comments Download
M utils/markdown/inline_parser.dart View 1 2 14 chunks +84 lines, -38 lines 0 comments Download
M utils/markdown/lib.dart View 3 chunks +11 lines, -7 lines 0 comments Download
M utils/markdown/markdown.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/markdown/test/markdown_tests.dart View 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
Sorry for the slew of changes in one patch. I did most of this over ...
9 years ago (2011-11-28 21:08:05 UTC) #1
nweiz
http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart File frog/lib/corelib_impl.dart (right): http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart#newcode79 frog/lib/corelib_impl.dart:79: for (var i = 0; i < length; i++) ...
9 years ago (2011-11-28 22:50:45 UTC) #2
Jennifer Messerly
lgtm http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart File frog/lib/corelib_impl.dart (right): http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart#newcode79 frog/lib/corelib_impl.dart:79: for (var i = 0; i < length; ...
9 years ago (2011-11-28 23:08:13 UTC) #3
Bob Nystrom
Best reviews ever. Thanks! http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart File frog/lib/corelib_impl.dart (right): http://codereview.chromium.org/8725007/diff/2001/frog/lib/corelib_impl.dart#newcode79 frog/lib/corelib_impl.dart:79: for (var i = 0; ...
9 years ago (2011-11-29 02:44:08 UTC) #4
nweiz
9 years ago (2011-11-29 19:57:19 UTC) #5
http://codereview.chromium.org/8725007/diff/2001/utils/dartdoc/dartdoc.dart
File utils/dartdoc/dartdoc.dart (right):

http://codereview.chromium.org/8725007/diff/2001/utils/dartdoc/dartdoc.dart#n...
utils/dartdoc/dartdoc.dart:493: if (name == null) return '';
On 2011/11/29 02:44:08, Bob Nystrom wrote:
> On 2011/11/28 22:50:45, nweiz wrote:
> > Why not return "_top" or something like that?
> 
> That could be an actual type name. An empty string actually works for now at
> least, but something better would be nice.

But an empty string won't actually provide an anchor for the top type. What
about "-top"? That's not a legal type name.

http://codereview.chromium.org/8725007/diff/2001/utils/dartdoc/dartdoc.dart#n...
utils/dartdoc/dartdoc.dart:561: if (member != null) {
On 2011/11/29 02:44:08, Bob Nystrom wrote:
> On 2011/11/28 22:50:45, nweiz wrote:
> > if (member == null) continue;
> > 
> > Indentation is bad ;)
> 
> Continue in an if? ;)

Oh ha, I'm good at reading code.

http://codereview.chromium.org/8725007/diff/2001/utils/dartdoc/dartdoc.dart#n...
utils/dartdoc/dartdoc.dart:590: return new md.Element.text('code', name);
On 2011/11/29 02:44:08, Bob Nystrom wrote:
> On 2011/11/28 22:50:45, nweiz wrote:
> > At some point, this should probably warn to protect from typos.
> 
> Yeah, I'm not sure what the best path for this is. I consider linking to a
type
> to be bonus, so I'm OK with it failing to resolve a link and then just
> defaulting to styling it a bit differently.

It seems like you want it to be a warning to mitigate doc decay. Not only does
it help with typos, it also makes it easier to update docs after renaming or
removing a member. Since people will only use [] when they expect a link to be
generated, I think it makes sense to warn if it can't be.

Powered by Google App Engine
This is Rietveld 408576698