Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用dartdoc为 Flutter App 生成文档。为此,我进入 Flutter App 文件夹:
cd path/to/app
之后我在控制台中调用:
dartdoc
控制台中打印的第一个结果告诉我 dartdoc 正在解析我的应用程序的文件,但随后正在尝试解析 Flutter 源文件(如/opt/Flutter/bin...)。有没有办法只解析我的应用程序的文件夹?
/opt/Flutter/bin...
这行代码为我节省了很多时间。
dartdoc --exclude 'dart:ui,dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:math,dart:typed_data,dart:ffi,dart:io,dart:isolate,dart:html,dart:js,dart:js_util'