Commit Graph

1321 Commits

Author SHA1 Message Date
rnystrom@google.com dc14652319 Fix apidoc to work with latest frog and dartdoc.
Review URL: https://chromiumcodereview.appspot.com//9113094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3631 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 23:19:43 +00:00
jimhug@google.com cd32d6bfbe cleanup from r3556
Review URL: https://chromiumcodereview.appspot.com//9284030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3566 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 20:28:00 +00:00
jimhug@google.com b05356a0b1 update status file for quick fix to r3553
Review URL: https://chromiumcodereview.appspot.com//9285019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3556 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 16:16:06 +00:00
rnystrom@google.com 420b355357 Include subtype information in generated docs.
With this change, dartdoc does a more comprehensive job of letting users
navigate the web of types. For each class, this will show its chain of
superclasses, interfaces it implements, and its immediate subclasses.

For interfaces, it shows superinterfaces, subinterfaces, implementing classes,
and a default class if it has one.

Review URL: https://chromiumcodereview.appspot.com//9271020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3515 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 21:51:53 +00:00
rnystrom@google.com 7e2ea12a4c Add a mode to dartdoc to generate the navigation on the client.
Right now, the generated docs are pretty huge (100MB for all of the main libs). This is mainly
because each generated HTML page includes full navigation for each type in the containing
library. For stuff like dart:html, that's tons of HTML. Even after compression, the docs are
9.2MB. Also, they take a long time to generate (30s on my laptop).

This patch adds a mode you can use called "live-nav" (and makes it the default). With that
mode, pages do not include navigation. Instead, we generate a single nav.json file with the
navigation data. Client-side Dart code does an XHR for that and then renders the navigation
on the fly.

This gets the generated docs down to 13.3MB (2MB after compression) and gets doc generation
up to 6.3s for everything.

The two downsides are:

1. There's a visible flash on page load when it renders the nav since it's asynchronous.
2. You can't browse docs locally just using file://. To be able to XHR the nav.json, you
   either need to enable file access in your browser or run a local server.

Review URL: https://chromiumcodereview.appspot.com//9256002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3445 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-19 20:10:51 +00:00
rnystrom@google.com 0201ba42f6 Fix copying dartdoc static files.
Review URL: https://chromiumcodereview.appspot.com//9249006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3385 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-18 04:35:57 +00:00
lrn@google.com f2ffb9a804 Make SourceString Iterable<int>.
Review URL: http://codereview.chromium.org//9204006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3287 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 13:24:38 +00:00
terry@google.com 007ac937e0 Fixed collision with interface Comment in html and Comment in the CSS tree.
Updated UI test gadget for CSS.

BUG=
TEST=

Review URL: http://codereview.chromium.org//9190066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3263 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 22:17:33 +00:00
ahe@google.com a39d7138e3 Move UTF-8 decoder to utils.
Review URL: http://codereview.chromium.org//9185046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3231 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 11:27:14 +00:00
jimhug@google.com fd09f522c5 fix Library*NegativeTests (and a couple Prefix ones by accident)
In general, this change felt fine to make in frog; however, it felt REALLY ugly to make the required fixes to the dartdoc tests.  I suppose this just raises the priority of our packaging and library story.

Review URL: http://codereview.chromium.org//9107031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3222 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:20:23 +00:00
nweiz@google.com f6c51d1567 Fix various warnings and errors in html_diff and its annotations.
TBR

Review URL: http://codereview.chromium.org//9110046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3221 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:17:52 +00:00
nweiz@google.com 70bbde3ead Add the ability to link to members and constructors of other classes in Dartdoc.
The syntax is [Class.member] and [new Class], respectively.
[new Class.namedConstructor] also works.

Review URL: http://codereview.chromium.org//9146016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3217 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 00:21:27 +00:00
rnystrom@google.com d2ad818cf0 Disable dartdoc tests on chromium.
Review URL: http://codereview.chromium.org//9190020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3209 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 21:56:18 +00:00
rnystrom@google.com 5bf318ec21 Hook up the dartdoc tests to test.py, test.dart, and frog/presubmit.py.
Review URL: http://codereview.chromium.org//9147058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3207 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 21:29:13 +00:00
sigmund@google.com 8139db7ae4 bots: include webdriver tests in bots.
Review URL: http://codereview.chromium.org//9188012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3206 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 20:48:33 +00:00
terry@google.com 28f15786ab Disable CSS test for leg and frogium #directives not supported.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9155013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3150 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:52:06 +00:00
terry@google.com 9a40e87326 Enabled CSS tests, added CSS tests to buildbot, fixed tooling with nodejs, and added more tests.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9168008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3147 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:28:53 +00:00
nweiz@google.com ecc9b0b8e0 Add the dummy test file for the dartdoc tests.
TBR

Review URL: http://codereview.chromium.org//9169002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3127 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 02:24:06 +00:00
rnystrom@google.com e1894718ab Display negate operators correctly in dartdoc.
Review URL: http://codereview.chromium.org//9166002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3126 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 01:53:07 +00:00
nweiz@google.com eb6b2f9fd7 Naming change for code review.
TBR

Review URL: http://codereview.chromium.org//9153010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3121 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 23:15:27 +00:00
nweiz@google.com df490b9c9c Add some tests for dartdoc name reference resolution.
Currently these just test existing behavior, but the goal is to set the stage
for adding more advanced resolution.

TBR

Review URL: http://codereview.chromium.org//9150011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3117 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 22:39:24 +00:00
nweiz@google.com f67c7c44af Get dartdoc running again.
TBR

Review URL: http://codereview.chromium.org//9152013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3116 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 22:33:48 +00:00
jmesserly@google.com b08fcc744b Small performance improvement: avoid looking up builtin types too much by tracking them, particularly ones in coreimpl like NumImplementation.
I also did a few refactorings:
* Tried to tame the "nativeName" stuff to keep the code paths from forking too much
* Removed the bad code duplication between needsConversion and convertTo  in Value (they had gone out of sync again!)
* Simplified the function wrapping code & made it clear it's about isolates. The code still checks for DOM, but conceptually it's part of our isolate impl. If we had a different way to tag native function types (e.g. perhaps the "native" keyword, if it's allowed in that position?) we could remove the DOM check there.

Review URL: http://codereview.chromium.org//9110027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3057 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 21:36:59 +00:00
rnystrom@google.com c5dcf9f658 Don't fix up paths that are already absolute.
Fixes the broken api.dartlang.org link the API docs.

Review URL: http://codereview.chromium.org//8958017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2789 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 21:56:12 +00:00
rnystrom@google.com a258c29303 Fix typo in dartdoc README.
Review URL: http://codereview.chromium.org//8958013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2779 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 19:51:58 +00:00
rnystrom@google.com e66f5a3e6c Hook up favicon, link to main page, and fix process bug.
Review URL: http://codereview.chromium.org//9020028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2735 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 23:35:24 +00:00
rnystrom@google.com a2e2ab6d23 Tweak dartdoc look to match dartlang.org a bit more.
Also prepare for adding search box.

Review URL: http://codereview.chromium.org//9019001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2715 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 18:46:12 +00:00
terry@google.com 59a6cf921a New tree objects to match CSS BNF.
Fairly complete CSS syntax

BUG=
TEST=

Review URL: http://codereview.chromium.org//8937017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2675 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 22:51:16 +00:00
rnystrom@google.com f8fbe4dda3 Syntax highlighting on the client.
Instead of having dartdoc bake the syntax highlighting into the generated
HTML, this does that transformation client-side. This makes interact.js
bigger, but reduces the size of the generated HTML.

Contributed by michael.haubenwallner@gmail.com.

Review URL: http://codereview.chromium.org//9004030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2658 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 19:46:53 +00:00
rnystrom@google.com 91218f5967 Move markdown library.
This moves markdown into two places:

- The one under samples/ is intended to be a "real" markdown parser.
  Eventually, it will probably live as a third-party library outside of our
  standard lib but still easily accessible.
- The one inside dartdoc will change to become the parser used to parse
  Gilad's forthcoming dartdoc comment syntax.

Review URL: http://codereview.chromium.org//8953042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2606 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 01:36:07 +00:00
rnystrom@google.com 4354008724 Fix use of now-reserved word "class".
Review URL: http://codereview.chromium.org//9003001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2602 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 00:11:28 +00:00
mattsh@google.com 07bab791d0 moved matrix class from utils to samples
BUG=
TEST=

Review URL: http://codereview.chromium.org//8966010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2499 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 01:14:18 +00:00
rnystrom@google.com 036681063c Move Nathan's HTML scripts over and rename to apidoc.
Review URL: http://codereview.chromium.org//8973004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2494 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 00:06:58 +00:00
rnystrom@google.com c188a720ee Document static members separately from instance ones.
Review URL: http://codereview.chromium.org//8963006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2493 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:25:22 +00:00
nweiz@google.com 543f2283bc Support SVG files in toss.
TBR

Review URL: http://codereview.chromium.org//8963007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2488 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:09:56 +00:00
rnystrom@google.com 93324b5405 Refactor dartdoc into a class. Use method overriding to extend.
Review URL: http://codereview.chromium.org//8947005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2477 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 21:24:18 +00:00
rnystrom@google.com ce4f2b0d16 Include JSON in generated docs.
Review URL: http://codereview.chromium.org//8912015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2413 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 02:30:11 +00:00
sigmund@google.com cd10dad521 frogium: fix all status file to reflect frogium current status.
Review URL: http://codereview.chromium.org//8930024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2407 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 00:57:56 +00:00
jmesserly@google.com 20c88fd220 Fix path in tip
I broke this when I moved to utils... fortunately an easy fix!

Review URL: http://codereview.chromium.org//8930015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2396 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 20:48:15 +00:00
nweiz@google.com 9586f917db Don't depend on dart:dom in file_system_memory.dart.
TBR

Review URL: http://codereview.chromium.org//8931001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2372 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 02:25:50 +00:00
mattsh@google.com b18cd70666 beginning of matrix class
BUG=
TEST=

Review URL: http://codereview.chromium.org//8872007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2360 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-12 23:14:03 +00:00
jmesserly@google.com 527c321449 move tip to utils so it can be picked up in the SDK
Review URL: http://codereview.chromium.org//8889031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2284 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 22:06:59 +00:00
dgrove@google.com 69d06de47f Update toss.dart's imports after moving it.
Review URL: http://codereview.chromium.org//8873030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2274 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:52:15 +00:00
dgrove@google.com c8e0e93d9a Move frog/server to toss.dart .
Review URL: http://codereview.chromium.org//8879030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2273 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:49:25 +00:00
ager@google.com 64ca753193 Split File into File and RandomAccessFile.
Update all users of the API.

R=sgjesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8883017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2272 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:37:17 +00:00
ngeoffray@google.com ab24606c5a Fix frog presubmit.
Review URL: http://codereview.chromium.org//8888007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2230 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 08:58:51 +00:00
rnystrom@google.com 430a969207 In the navigation, list exception types after other types.
Review URL: http://codereview.chromium.org//8885005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2223 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 03:31:41 +00:00
rnystrom@google.com 5168cde79f Fix displaying generic types.
Review URL: http://codereview.chromium.org//8888002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2219 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:22:55 +00:00
rnystrom@google.com 1b58511a2c Fix broken dartdoc.
Review URL: http://codereview.chromium.org//8879004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2216 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:08:20 +00:00
nweiz@google.com a811209d78 Add a script to generate HTML and DOM docs with cross-links to one another.
This entails adding callbacks to dartdoc for injecting additional
comments, as well as adding somewhat deeper support for hashing and
equality testing of Frog objects.

The next step is to inject the annotations into the HTML and DOM library source itself.

Review URL: http://codereview.chromium.org//8771054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2199 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:15:12 +00:00