Commit Graph

5 Commits

Author SHA1 Message Date
William Hesse 0cbe042935 Add .gitignore file for utils/dartdoc.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1307903002 .
2015-08-21 13:50:59 +02:00
rnystrom@google.com 458908f549 Get dartdoc in the SDK and working correctly.
Review URL: https://chromiumcodereview.appspot.com//9555013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4905 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 22:28:00 +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 92f55bcfd5 Clean and create output directory when generating docs.
Review URL: http://codereview.chromium.org//8572044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1627 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 20:59:14 +00:00
rnystrom@google.com a1fa8e8245 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.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1482 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 23:41:34 +00:00