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

Issue 10540085: Modify apidoc to prefer handwritten HTML5 docs over those in MDN or generated code. (Closed)

Created:
8 years, 6 months ago by vsm
Modified:
8 years, 6 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org, sra, apdavis, Kathy Walrath, sethladd
Visibility:
Public.

Description

Modify apidoc to prefer handwritten HTML5 docs over those in MDN or generated code. Committed: https://code.google.com/p/dart/source/detail?r=8516

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixes from review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -15 lines) Patch
M lib/dartdoc/dartdoc.dart View 2 chunks +13 lines, -3 lines 0 comments Download
M lib/html/doc/html.dartdoc View 2 chunks +8 lines, -2 lines 0 comments Download
M lib/html/doc/interface/AbstractWorker.dartdoc View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/apidoc/apidoc.dart View 1 4 chunks +147 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vsm
8 years, 6 months ago (2012-06-09 00:18:34 UTC) #1
Bob Nystrom
A couple of minor issues. It's hackish, but works. When dartdoc moves to dart2js, I ...
8 years, 6 months ago (2012-06-11 19:31:19 UTC) #2
vsm
8 years, 6 months ago (2012-06-11 20:51:01 UTC) #3
thanks, landing

https://chromiumcodereview.appspot.com/10540085/diff/1/utils/apidoc/apidoc.dart
File utils/apidoc/apidoc.dart (right):

https://chromiumcodereview.appspot.com/10540085/diff/1/utils/apidoc/apidoc.da...
utils/apidoc/apidoc.dart:113: htmldoc.document();
Thanks - done.

On 2012/06/11 19:31:19, Bob Nystrom wrote:
> This still generates the output files, doesn't it? That will waste a decent
> amount of time.
> 
> The easiest hack to fix this will be to override endFile(), write(), and
> writeln() in Htmldoc to have them do nothing.

https://chromiumcodereview.appspot.com/10540085/diff/1/utils/apidoc/apidoc.da...
utils/apidoc/apidoc.dart:144: * HTML library.
Comment added at the reset above.

On 2012/06/11 19:31:19, Bob Nystrom wrote:
> Hackish, but works.
> 
> I would leave a comment explaining that it works this way because frog is
> relying on global internal state.

https://chromiumcodereview.appspot.com/10540085/diff/1/utils/apidoc/apidoc.da...
utils/apidoc/apidoc.dart:400: // Prefer hand-written Dart comments over stuff
from MDN.
Done.  I used "fileComment" instead of "generatedComment" (and added some
explanation) as not all files are generated.

On 2012/06/11 19:31:19, Bob Nystrom wrote:
> This comment is confusing now. How about changing the params too:
> 
> mdnComment, generatedComment, handWrittenComment
> 
> And then remove this comment?

Powered by Google App Engine
This is Rietveld 408576698